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.

TMS320F28022: flash erase order

Part Number: TMS320F28022
Other Parts Discussed in Thread: C2000WARE

Hi Team,

when use FLASH API to erase flash, a sector is the smallest section of flash that can be erased. is that any order to erase one sector? is it from a high address to low address or from a low address to high address for a sector?

for example, if a sector address is range from 0x3F 6000 to 0x3F 7F7F, it will erase 0x3F 6000 first? or it will erase 0x3F 7F7F first?

  • Hi Strong Zhang,

    Please see the section 3 of the flash API document on the erase function for more information on the operation. Found in c2000ware, directory below:


    Overall, the erase operation starts from the beginning of the sector and works its way to the end (i.e. low address to high).