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.

MCU-PLUS-SDK-AM263PX: Bootloader - A-B swapping of application images on reboot

Part Number: MCU-PLUS-SDK-AM263PX
Other Parts Discussed in Thread: AM263P4, TMDSCNCD263P, SYSCONFIG

Tool/software:

I am trying to write a bootloader for the AM263P4 which allows selection of the application image to be booted. So, basically, I'm looking to implement functionality in the bootloader to attempt to load an application image (A) from OSPI flash and, if that image fails to boot, to use an alternative image (B) located at a different address in the OSPI flash. The B image would then continue to be used after the device reboots.

I am using a AM263Px control card EVM (TMDSCNCD263P) with version 10.01.00.31 of the AM263px SDK and Sysconfig v1.21.2

I have based my implementation on this example from the SDK: examples\drivers\boot\sbl_ospi_swap\am263px-cc\r5fss0-0_nortos

I have followed the advice from this page in the SDK developer guides: software-dl.ti.com/.../bootseg_ip_working.html

I can use the FSS_selectRegionA/B functions to choose which image is booted, and this works fine. I had assumed that using the FSS_selectRegion functions would update the FLASH_BOOTINFO_SECTOR (0x0x60080000) such that the last selected region would then be used on the next reboot, but this does not seem to happen. I have tried to manually update the FLASH_BOOTINFO_SECTOR area from my bootloader so that the last selected image is used, but this does not seem to work (I can write to other areas of the OSPI flash).

I am also not clear what the purpose of the BOOT_SECTOR_INFO (__TI_SBL_FLASH_BOOTINFO_SECTOR_START @ 0x0x80080000) section in the linker file is. Can you tell me what this is used for?

If you are able to provide any help with the above that would be much appreciated.