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.

TMS320F28388D: FLASH Erase

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hello, 

I am using F28388D controller, using the Flash api library from below path

C:\ti\C2000Ware_3_03_00_00_Software\libraries\flash_api\f2838x\c28x\lib\F2838x_C28x_FlashAPI.lib

I want to update certain memory regions on runtime located at sector FLASH13.

FLASH13 : origin = 0x0BE000, length = 0x001FF0 /* on-chip Flash */
// FLASH13_RSVD : origin = 0x0BFFF0, length = 0x000010 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */

I am using 10 bytes in this sector to update during runtime using flash api library.

before writing in to it first we need to erase performed as per the example code 'flashapi_ex1_programming'.

This sector is 2000 bytes but last few memory is mentioned as not to be used. does this have any problem in erasing during runtime , also i am running a scheduler of 500 micros seconds can this erase and write complete within this period.

Currently i am having a ext watchdog of 10ms so i have to complete the erase and write into this sector in 10ms will that be possible when frequency is set to 200MHz.

thanks,

Nagesh

  • Nagesh,

    Erase should not have any issue with regards to the last 256-bits.  You should not program/use those locations.

    Regarding the erase/program time: Take a look at "Table 7-5. Flash Parameters" in datasheet.  

    As mentioned in above table, typical erase time for a sector is 50ms at 2K cycles.  You can service watchdog while waiting for the flash operation to complete.  

    Thanks and regards,
    Vamsi