SPRUIU8B August   2020  – March 2026 TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1

 

  1.   1
  2.   Live Firmware Update With Device Reset on C2000 MCUs
  3.   Trademarks
  4. 1Introduction
  5. 2Resources Required for LFU
  6. 3Memory Layout
  7. 4Static Code in LFU
  8. 5LED Example Application and LFU Flow
  9. 6Running the LED Example
    1. 6.1 Serial Flash Programmer Update
    2. 6.2 Programming Static Code – Loading via Code Composer Studio (CCS)
    3. 6.3 Live Firmware Update of Application
    4. 6.4 Limitations and Troubleshooting
  10. 7Extended Implementations
    1. 7.1 Live Firmware Update with Reset on F28P65x MCUs
      1. 7.1.1 F28P65x LFU Hardware Requirements
      2. 7.1.2 Flash Organization
      3. 7.1.3 FWU Boot Mode
      4. 7.1.4 LED Example Application
        1. 7.1.4.1 LFU Command Processing
      5. 7.1.5 Running the Example
        1. 7.1.5.1 Loading the Example
        2. 7.1.5.2 Combing CPU1 and CPU2 Firmware Images
        3. 7.1.5.3 LFU over MCAN Host Programmer
          1. 7.1.5.3.1 Compiling the Host Programmer
          2. 7.1.5.3.2 Using the Host Programmer
      6. 7.1.6 Restrictions
  11. 8Revision History

LFU over MCAN Host Programmer

The MCAN LFU host programmer (can_lfu_flash_programmer.exe) provided in C2000Ware takes the CPU1 firmware, CPU2 firmware, or a combined CPU1 + CPU2 firmware image as parameters (please see Section 7.1.5.3.2 for more details). The host programmer communicates with CPU2 over MCAN with the PEAK PCAN-USB Pro FD Analyzer to program the inactive flash banks of CPU1 and/or CPU2. The flash programmer project is built and run on Visual Studio 2019. The host programmer uses the PCAN-Basic API from PEAK. The PCAN-Basic API can be used to send and receive CAN-FD frames on the CAN analyzer.

The LFU host programmer and source code can be found in C2000Ware v26 or later:

  • C2000Ware_XX_XX_XX_XX\utilities\flash_programmers\can_lfu_flash_programmer

The clock to the MCAN module is switched to the external clock source by CPU2. The external clock is 25MHz in the LaunchPad and the ControlCard. CPU2 also configures the nominal bit rate to be 1Mbps, and the data bit rate to be 2Mbps. The host programmer configures the PEAK CAN analyzer to have the same clock, nominal and data bit rate values.