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.

TMS320F2812: TMS320F2812

Part Number: TMS320F2812


My application program is for off-grid solar inverter. Initially the application should run in calibration mode,where it scans GPIO pin status.The reference value of the inverter controller is set in calibration mode and has to be stored in flash memory. How to write to a flash location within the application program itself?

  • Manju,

    Thanks for reaching out to the E2E forum.  You will need to add the Flash API libraries to your project/flash and call them as needed during run time to program the flash as you mention.

    The API is found here: https://www.ti.com/tool/SPRC125

    There should be documentation and example projects in this package to help you get started.

    One point that should be clear in the documentation, but I want to emphasize, is that the Flash API must be ran from RAM when you program the flash.  i.e. you cannot program the flash while running from it simultaneously.  So it will be loaded to Flash, but when invoked the C2000 will need to copy the API to RAM before using it.

    Best,

    Matthew