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.

Problems with Re-Programming flash using hex file through Flash API Functions

Other Parts Discussed in Thread: UNIFLASH

Hi TI,

When I program Hex file directly to my F20854M by using UniFlash, it works fine. Since my application needs firmware update later on, I need to use FlashAPI functions to re-program my flash.

Therefore, I need to decode Hex file to make sure all the data fit into correct addresses. Then, I erased all the flash sectors and re-program the flash. But it doesn't work. So I read all the memory data and corresponding addresses from F28054M to see whether there is any mismatch from the Hex file I decoded. I found out they are exact the same. But it just doesn't work!

Then, I used CCS and UniFlash to program the exact same Hex file into F28054M, and read its memory using UniFlash and CCS's memory browser. 

I found out that there is an additional word "FFFF" being added into the original Hex file after being programmed, making it to function.

Without adding this random "FFFF" to it original Hex file, my program is not gonna work. 

Any ideas on why there is random  word "FFFF" in the memory after using UnifFlash to program ? (it caused rest of words shifted to right a position, and it freaking works)

On another hand, I decoded the same Hex file and programmed the exactly same data to its addresses and it doesn't work! (because of missing random "FFFF")??