WRITECODE or not????


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Nah, I missed that part

    Hi,

    I forgot to erase the code first.

    It is allowed to write either 64 BYTES or 32 WORDS, I went for writig words


    /me

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default One more thing...

    When using ERASECODE don't forget this (a part from an e-mail from Melab support)
    The erase blocks of 64 bytes do, in fact, have specific start/end
    addresses that are arranged starting at address 0. The datasheet
    refers to these blocks as "rows".

    Each block (0-63, 64-127, etc.) will be erased in its entirety when
    you use ERASECODE at any address within the block.

    If you want to preserve part of the data in a block, use READCODE to
    save the information before you erase, then WRITECODE to restore the
    block with modified data afterward.

    The best way is to learn from other's misstakes :-)

    /me

Similar Threads

  1. Bootloader For 18F4520
    By isaac in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 24th March 2010, 18:56
  2. WRITECODE, ERASECODE, and interrupts
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th March 2010, 03:46
  3. WRITECODE stores wrong 14-bit word values in FlashMEM
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th June 2009, 05:35
  4. Can anyone help me to use Writecode for pic18f458 ?
    By dip1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2006, 23:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts