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.

Programming Flash



Hello Karthiekeyan, 

I would like to ask about emulated flash accessibility, do i have to erase the sector every time before writing to it? I am writing a boot loader and i need only to calibrate part of the memory without going through writing/erasing cycle.

Also, i have gone through the Fapi manual about the programming options supported (data only, ECC and data and so on), but i can not get it when i try to write a value using AutoECCgeneration, what is written in the bank is something totally different!

I appreciate it if someone can shed some lights about how it is working.

Hany

  • I split your question from the previous thread because I was afraid it would be missed. The other thread was marked as closed and answered.

    The flash, in its blank state is all ones, or F's in hex. You can program the ones to zero one bit at a time, but changing a 0 back to a 1 requires the whole sector to be erased. ECC adds the complication that for every group of 8 bytes, there is an ECC byte that also needs to be programmed if ECC is enabled.

    Not sure why you are having problems with Auto ECC generation. Which part are you using?