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.

TMS320F28016: TMS320F28016: Programming flash without flash API

Part Number: TMS320F28016


I'm thinking of a program that works with f28016.

I want to rewrite Flash to save user data in that program.

The size of user data is about several tens of bytes.

I found the following library.

However, this library disables the built-in Watchdog Timer and I want to avoid this.

(I also want to avoid setting WDOVERRRIDE to 1 to disable modification to WDDIS.)

Can I create a Flash rewrite program without using the above library?

  • supplementary explanation:
    I checked the manual below, but couldn't find any description about the Flash rewrite operation.

    II found the following example about the Flash operation. (4.5 Executing the Examples From Flash)

    But, I couldn't find any description about the Flash rewrite operation.
    Is there an example of a Flash rewrite operation?
    Is there a manual for Flash rewriting operation?
  • Thanks for reaching out to the C2000 E2E forums.

    The flash API we provide with our devices is the only way to program/erase the flash memory.  The reason that the WD is disabled, is that the flash operations cannot be interrupted while a program or erase operation is in process.  If these are interrupted it will result in the flash being in an indeterminate state which can be un-recoverable in certain circumstances.

    The Flash API and user guide are part of the download here:

    There is also a callback function, which allows you to break out of the API at predefined intervals(so as not to disturb the operation per above) to service any system critical events.



  • Hi MatthewPate, Thank you for your reply,

    I understood that I couldn't write a Flash rewrite program without the Flash API library, and

    it is essential to allow the built-in Watchdog Timer to be disabled when rewriting Flash in a program running on F28016, in any case.

    I will consider using the Flash API library to create a Flash rewrite program.