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.

TMS320F28379D: How to Flash the code into Flash memory using CAN

Part Number: TMS320F28379D

Tool/software:

Hi Ti, 

I am looking to flash the program into the Flash memory of our controller using the CAN protocol. Could you kindly suggest the best approach or tools for achieving this?

Additionally, I require a safety mechanism to preserve the existing firmware. In the event that the newly flashed code becomes corrupted or fails, the old firmware should remain intact, allowing the controller to revert to and execute the previous version. Could you advise on the available options or strategies to implement this fallback mechanism?

Your guidance on both aspects—flashing via CAN and ensuring firmware safety,  thanks in advance.

  • Hi Karthick,

    For reference, you can refer to the CAN Flash Programming of C2000 Microcontrollers application note. The F28379D device example is not present, but we have other device projects as examples. 

    For a safety mechanism to ensure firmware safety, you can look to our Live Firmware Update example for reference on how to store the Flash kernel and application in different sectors of Flash. One method for fallback would be to have the CAN Flash kernel reside in flash memory and then on download of the new firmware update, if download is interrupted (ex. starts but errors out after 5 seconds) then you could branch to the partition of flash which has your previous firmware application. If not interrupted and download completes, branch to the latest firmware application.

    Thanks,

    Charles