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.

TMS320F28388S: Fail-safe firmware upgrade

Part Number: TMS320F28388S
Other Parts Discussed in Thread: TIDM-02011, C2000WARE

I am trying to keep redundant( backup) copy of application firmware so that during firmware upgrade failure case device can switch back to last working firmware.
e.g
First time, device boots with firmware stored at flash sector 4 (Primary) and firmware upgrade will write to flash sector 8 (backup).
Second time, device boots with firmware stored at flash sector 8 and firmware upgrade will write to flash sector 4.
This cycle repeats for successive firmware upgrades.


1) Is there any application note or sample application available ?
2) How to write application file to backup flash sector when device is booted with primary sector and vice versa ?
3) How to detect currently booted flash sector ?

Thanks

Prashant Patil

  • Prashant,

    We have a reference design for this, called Live Firmware Update -  using F28003x which contains multiple Flash banks.

    The design is TIDM-02011 in the DigitalPowerSDK.

    https://www.ti.com/tool/C2000WARE-DIGITALPOWER-SDK

    There's a corresponding user guide for TIDM-02011, TIDUEY4.

    Even though this design uses a device with multiple Flash banks, it still has concepts that are similar to what you are looking to do

    - erase/program a different region of Flash than the active region

    - logic to determine which firmware version to boot

    Along with this, we also have an example for a single Flash bank device (F28002x).

    This is available in C2000Ware at the following path:

    C2000Ware_4_03_00_00\driverlib\f28002x\examples\flash\CCS\flash_ex3_sci_flash_kernel.projectspec

    Thanks,

    Sira