This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why my RM57L843 can't be erased by clearly?

Other Parts Discussed in Thread: RM57L843, SEGGER

My chip is RM57L843. I used SEGGER J-Flash tool to erase entire flash. But after I successfully executed to erase flash, I read entire flash data by J-flash or CCS,

I found it isn't all flash unit as 0xFF. Some of element isn't 0xFF.  I don't know why? Do I need to set some configuration?

Please refer to attachment.

 

  • Actually your flash probably is totally erased. The RM57L843 has flash ECC which is always enabled. The ECC is calculated using the data and the address, so the proper ECC value for data = 0xFFFFFFFF FFFFFFFF is different for different locations. The ECC bits are also erased. At some locations the ECC value 0xFF equates to a single bit error that is corrected by the ARM R5 CPU before the data is displayed. Other locations equate to uncorrectable errors and can change multiple bits in the display. Go ahead and program your code with the proper ECC and you should see it properly displayed in the debugger memory window.
  • Is there any method to shut off flash ECC mechanism? like uncheck "VIM RAM ECC enable" in VIM RAM table of HALCodeGen tool to shut off RAM ECC.
    From debugger memory window, I still saw that some bits aren't 0xFF. But, if I know that flash ECC don't effect actual stored data in flash, I will relax it.
  • No, there is no way to disable the ECC checking on the flash in the main memory.