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.
Tool/software: Code Composer Studio
Hello,
I am using FLASH API F021 for program TMS570LS0914.
After the sectors erased, I wrote to Flash . The address strated from 0x00020000 in sector7,ban0. The first time,I wrote 4094bytes(not 4096bytes)and succeeded. But the second time,I failed writing the successive 4094bytes (The address strated from 0x00020FFE).
I wonder if there is a limit to the least number of bytes (length of data to wirte once)? Maybe 4 or 16 bytes?
TMS570LS0914 is 32-bit microprocessor.Did I made a mistake about this? Should I write to flash by at least 4 bytes(32 bits)?
I am so coufused why the first time I succeeded but the second time I failed on writing to flash by 4094bytes. Please help me. I`ll be very appreciate!
Hello,
The flash ECC is calculated on 64-bit aligned addresses up to 128 bit (data width of the bank). Data not supplied is treated as 0xFF.
When you write 4094 bytes data, the 0xFF is written to 4095th and 4096th locations and calculated ECC of 4095th/4096th data are also programmed to ECC space..
If you write data to the locations whose content is not 0xFF or its ECC is not 0xFF, you will get an ECC error.