SPRADS1 June   2025 F29H850TU

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 Hardware Security Module
    2. 1.2 Flash Programming Fundamentals
    3. 1.3 High-Level Flow
    4. 1.4 Flow Chart
  5. 2Flash-Based UART SBL with FOTA
    1. 2.1 Implementation
    2. 2.2 Triggering a Bank Swap
  6. 3FOTA_Example_Application
    1. 3.1 led_blinky_cpu1.c
    2. 3.2 Combining the Flash-Based SBL with the FOTA_Example_Application
    3. 3.3 Adding a CPU3 Application
  7. 4Host Application: UART Flash Programmer
    1. 4.1 Overview
  8. 5Example Usage
    1. 5.1 Loading the SBL onto the Device
      1. 5.1.1 Loading by CCS (JTAG)
      2. 5.1.2 Loading via UART Boot and the UART Flash Kernel
    2. 5.2 Example UART Loading Process
  9. 6FAQ
    1. 6.1 General
    2. 6.2 Application Load
  10. 7Summary
  11. 8References

Application Load

Issue: Users cannot successfully load the application to flash.

Answer:

  • Make all sections in the linker cmd file that are allocated to flash are aligned to 512-bit boundaries. This can be done by adding palign(32) to the appropriate sections as shown below.
.text : {} > FLASH_RP0, palign(32)
  • Make sure there is an appropriate X.509 certificate in the first 0x1000 bytes of the binary file.

Issue: There is an error in the host programmer when performing a CPU3 FOTA Upgrade.

Answer:

  • Make sure the device is in bank mode 3 and build the flash-based SBL with the BANKMODE_3 build configuration selected.

Issue: There is an error in the host programmer when performing a secure firmware upgrade.

Answer:

  • Make sure the device is in the HS-SE state and build the flash-based SBL with the BANKMODE_1_CP or BANKMODE_3_CP build configuration.

Issue: The UART communication is failing.

Answer:

  • Make sure to use the COM port connected to the proper UART transceiver and double-check the UART GPIO configuration and setup