TIDUEY4D August   2022  – December 2022

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
    1. 1.1 Key System Specifications
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Building Blocks
      2. 2.2.2 Flash Partitioning
      3. 2.2.3 LFU Switchover Concepts
      4. 2.2.4 Application LFU Flow
  8. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
    2. 3.2 Software Requirements
      1. 3.2.1 Software Package Contents
      2. 3.2.2 Software Structure
    3. 3.3 Introduction to the TIDM-DC-DC-BUCK
    4. 3.4 Test Setup
      1. 3.4.1 Loading the Custom Bootloader and Application to Flash using CCS
    5. 3.5 Test Results
      1. 3.5.1 Running the LFU Demo with Control Loop Running on the CPU
      2. 3.5.2 Running the LFU Demo with Control Loop Running on the CLA
      3. 3.5.3 LFU Flow on the CPU
      4. 3.5.4 LFU Flow on the CLA
      5. 3.5.5 Assumptions
      6. 3.5.6 Preparing Firmware for LFU
      7. 3.5.7 LFU Compiler Support
      8. 3.5.8 Robustness
      9. 3.5.9 LFU Use-Cases
  9. 4FOTA Example
    1. 4.1 Abstract
    2. 4.2 Introduction
    3. 4.3 Hardware Requirements
    4. 4.4 Software Requirements
    5. 4.5 Running the example
  10. 5Design and Documentation Support
    1. 5.1 Software Files
    2. 5.2 Documentation Support
    3. 5.3 Support Resources
    4. 5.4 Trademarks
  11. 6Terminology
  12. 7About the Author
  13. 8Revision History

Loading the Custom Bootloader and Application to Flash using CCS

  1. Set the Launchpad in Flash boot mode by moving GPIO24 to OFF (1) and GPIO32 to OFF (1) on boot select switch. Refer to the C2000™Piccolo™F28004x Series LaunchPad™ Development Kit user's guide or C2000™Piccolo™ F28003x Series LaunchPad™ Development Kit for details.
  2. Apply power to the board by connecting the micro USB cable to the computer and the Launchpad.
  3. Use CCS to download the custom bootloader to Flash bank 0.
    1. With F28004x, program the Bank0_LDFU_ROM build configuration .out of the custom bootloader (located at <C2000Ware_DigitalPower_SDK_path>\c2000ware\driverlib\f28004x\examples\flash\CCS) using CCS.
    2. With F28003x, program the Bank0_LDFU build configuration .out of the custom bootloader (located at <C2000Ware_DigitalPower_SDK_path>\solutions\tidm_02011\f28003x\examples\flash\CCS) using CCS.

      For this step, use a target configuration file that erases the entire Flash. Refer to Figure 3-2 for details.

      GUID-20201112-CA0I-LP6X-MQKF-0FTDNDDSKWLF-low.pngFigure 3-2 Target Configuration File with Erase Settings to Erase Entire Flash
  4. Once the custom bootloader is programmed in Flash, click on Run in CCS, and then execute the following commands from a windows command prompt:
    • cd <C2000Ware_DigitalPower_SDK_path>\c2000ware\utilities\flash_programmers\serial_flash_programmer
    • On F28004x: serial_flash_programmer_appln.exe -d f28004x -k f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt -a buck_F28004x_lfuBANK1FLASH.txt -b 9600 -p COM11
    • On F28003x: serial_flash_programmer_appln.exe -d f28003x -k f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt -a buck_F28003x_lfuBANK1FLASH.txt -b 9600 -p COM11
    • In the above command, f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt is needed but not used. This is because the serial_flash_programmer_appln.exe is used, which programs only the application firmware, not the kernel.
    • Also note that in the above command, “COM11” will have to be replaced with the specific COM port associated with your connection. This can be identified through Device Manager – Ports – XDS110 Class Application/User UART
    • Enter “8 – Live DFU” – this will program the Bank1_Flash build configuration of the application firmware to Flash Bank1
    • Enter “0 – Done” when complete
  5. At this point, the custom bootloader is programmed on Flash bank 0 and the application is programmed on Flash bank 1.

  6. Next the custom bootloader is programmed on Flash bank 1 and the application on Flash bank 0. Use CCS to download the custom bootloader to Flash bank 1. With F28004x, program the Bank1_LDFU_ROM build configuration .out of the custom bootloader (located at <C2000Ware_DigitalPower_SDK_path>\c2000ware\driverlib\f28004x\examples\flash\CCS) using CCS. With F28003x, program the Bank1_LDFU build configuration .out of the custom bootloader (located at <C2000Ware_DigitalPower_SDK_path>\solutions\tidm_02011\f28003x\examples\flash\CCS) using CCS.

    For this step, use a target configuration file that erases only the necessary sectors, not the entire Flash. Refer to Figure 3-3 for details.

    GUID-20201112-CA0I-ZR0J-41Z6-ZK95627VSPND-low.pngFigure 3-3 Target Configuration File with Erase Settings to Erase Necessary Sectors Only
  7. Once the custom bootloader is programmed in Flash, click on Run in CCS, and then execute the following commands from a windows command prompt:
    • cd <C2000Ware_DigitalPower_SDK_path>\c2000ware\utilities\flash_programmers\serial_flash_programmer
    • On F28004x: serial_flash_programmer_appln.exe -d f28004x -k f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt -a buck_F28004x_lfuBANK0FLASH.txt -b 9600 -p COM11
    • On F28003x: serial_flash_programmer_appln.exe -d f28003x -k f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt -a buck_F28003x_lfuBANK0FLASH.txt -b 9600 -p COM11
    • In the above command, f28004x_fw_upgrade_example\flashapi_ex2_sci_kernel-CPU1-RAM.txt is needed but not used. This is because the serial_flash_programmer_appln.exe is used, which programs only the application firmware, not the kernel.
    • Also note that in the above command, “COM11” will have to be replaced with the specific COM port associated with your connection. This can be identified through Device Manager – Ports – XDS110 Class Application/User UART
    • Enter “8 – Live DFU” – this will program the Bank0_Flash build configuration of the application firmware to Flash Bank0
    • Enter “0 – Done” when complete
  8. Reset the board. Now both Flash banks have custom bootloaders and Application Images.