CN / EN
Doc Feedback
Thanks for your interest, welcome to contact us.
Thanks for your feedback

SCA

SCA is in the first two sectors (8 KB in total; 0x0100_0000 to 0x0100_2000) of Flash memory. It stores flags and other system configuration parameters used during system boot. The download algorithm and GProgrammer generate SCA data based on the user configuration file custom_config.h (path: Project_Folder\Src\config), and update the data in SCA during firmware programming. Figure 6 shows the SCA layout.

Note:

Project_Folder is the root directory of the project.

Figure 6 SCA layout
  • The Boot_Info and the Boot_Info Backup store the same information, and the latter is the backup of the Boot_Info.
    • In non-security mode, the Bootloader obtains boot information from Boot_Info by default.
    • In security mode, the Bootloader checks Boot_Info first; if the check fails, the Bootloader checks Boot_Info Backup and obtains boot information from it.
  • The firmware boot information is stored in the Boot_Info (32 B) area. The Bootloader checks and jumps to the entry address of the firmware based on the boot information.
    • The Boot Config area stores the system boot configuration information.
    • The SPI Access Mode area stores the SPI access mode configuration which is the fixed configuration of the system and cannot be modified.
    • The Run Addr area stores the firmware run address, corresponding to APP_CODE_RUN_ADDR in custom_config.h.
    • The Load Addr area stores the firmware storage address, corresponding to APP_CODE_LOAD_ADDR in custom_config.h.
    • The CheckSum area stores the firmware checksum which is computed automatically based on the download algorithm or by GProgrammer.
    • The APP Size area stores the firmware size which is computed automatically based on the download algorithm or by GProgrammer.
  • Up to 10 pieces of firmware information (image info) can be stored in Img_Info areas. Firmware information is stored in Img_Info areas when you use GProgrammer to download firmware or update firmware in DFU Mode.
    • The Comments area stores the descriptive information about firmware and supports up to 12 characters, corresponding to APP_INFO_COMMENTS in custom_config.h.
    • The Boot_Info (24 B) area stores the firmware boot information which is the same as the low 24-byte information in the Boot_Info (32 B) area mentioned above.
    • The Version area stores the firmware version.
    • The Pattern area stores a fixed value: 0x4744.
  • The DFU Config Info area stores configurations of DFU module in ROM. You can call corresponding APIs to change the data stored in this area to configure DFU module.
    • The UART Info area stores UART configurations of DFU module, including status bit, baud rate, and GPIO configurations.
    • The ADV Name Info area stores advertising configurations of DFU module, including status bit, advertising name, and advertising length.
    • The NVDS Init Info area stores initialization configurations of NVDS system in DFU module, including status bit, NVDS area size, and start address.
    • The DFU Disable Cmd Info area stores DFU disable command configurations of DFU module, including status bit and Disable DFU Cmd (2 B, set as Bitmask). You can set the Disable DFU Cmd value to disable a DFU command.
  • The HMAC check value is stored in the HMAC area. This area is valid only in security mode. For more information about the security mode, see GR5xx Firmware Encryption Application Note.

Scan to follow

Open WeChat, use "Scan" to follow.