Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/31/08 06:10
Modified:
  05/31/08 06:36

Read: times


 
#155313 - Erase the FLASH First?
Responding to: ???'s previous message
Gary:

Have you taken the step to erase the FLASH block before writing (programming) it?

In general FLASH erases to all ones. You then write a field of zeros over that to get your bit pattern into the memory. If you are omitting the erase step the content you are writing may appear "random" because you are writing more and more zeros over the field of bits that have already been written.

Michael Karas

Edit: I see from the 'C51RC2 data sheet that supposedly the FLASH can be byte programmed which includes a "self erase". But maybe still you could try a block erase of the region first to see if there is any difference in behavior.

Edit: Have you checked all the SFR addresses that the assembler puts into the object code based upon what it thinks the various symbolic names represent? In particular are you sure that the AUXR1 register is being properly addressed at 0A2H?



List of 9 messages in thread
TopicAuthorDate
Atmel 89C51RC2-UM and IAP            01/01/70 00:00      
   Check the datasheet of 89c51rc2-um            01/01/70 00:00      
   Erase the FLASH First?            01/01/70 00:00      
      take a note of            01/01/70 00:00      
         there's a difference between Atmel and Philips...            01/01/70 00:00      
            add that one to webster :)            01/01/70 00:00      
   looks good            01/01/70 00:00      
      Duh! I confused RAM and XRAM!            01/01/70 00:00      
         Now I can't get Erase Block working            01/01/70 00:00      

Back to Subject List