Other Parts Discussed in Thread: LP-XDS110, UNIFLASH, SYSCONFIG
Tool/software:
Dear TI Community,
I am new to TI RTOS and I'm trying to get the MCUBoot samples running, but I am encountering issues that I haven’t been able to resolve. I would appreciate any guidance or troubleshooting steps to help me get the samples working correctly.
Environment Description:
- Board: CC1354P10 with LP-XDS110 Programmer
- SDK Version: simplelink_cc13xx_cc26xx_sdk_8_30_01_01
- Development Environment: Windows 11 with CCS Studio 20.0.2.5__1.6.2 (I am not using CCS_20.1.0.00006_win due to it requiring an update to my XDS110 Programmer which makes the board unable to flash)
Setup Description:
I enabled trace in MCUboot (mcuboot_LP_EM_CC1354P10_1_nortos_ticlang).
- For this I copied trace.c, trace.h, and itm_private.h to local project.
- I enabled Power TI Driver in mcuboot.syscfg.
- I changed Upgrade Mode to Overwrite
- I edited trace.c as follows:
ITM_config itm_config ={48000000,ITM_115200 //was ITM_3000000}; - I changed image addresses as follows to accommodate increase in bootloader size due to trace:
- bootloader base: 0x00000000; bootloader size: 0x00008000
- Primary image base: 0x00008000; Primary image size: 0x0002B000
- Secondary image base: 0x00033000; Secondary image size: 0x0002B000
MCUBoot_Blinky Description:
Post build steps:
${CG_TOOL_ROOT}/bin/tiarmhex -order MS --memwidth=8 --romwidth=8 --intel -o ${BuildArtifactFileBaseName}.hex ${BuildArtifactFileBaseName}
${CG_TOOL_ROOT}/bin/tiarmobjcopy -O binary ${BuildArtifactFileBaseName}.out ${BuildArtifactFileBaseName}-noheader.bin --remove-section=.ccfg
${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/tools/common/mcuboot/imgtool sign --header-size 0x80 --align 4 --slot-size 0x2b000 --version 1.0.0 --pad-header --pad --key ${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/source/third_party/mcuboot/root-ec-p256.pem ${BuildArtifactFileBaseName}-noheader.bin ${BuildArtifactFileBaseName}.bin
${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/tools/common/mcuboot/imgtool sign --header-size 0x80 --align 4 --slot-size 0x2b000 --version 2.0.0 --pad-header --pad --key ${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/source/third_party/mcuboot/root-ec-p256.pem ${BuildArtifactFileBaseName}-noheader.bin ${BuildArtifactFileBaseName}.p2.bin
I updated mcuboot_blinky_cc13x4_cc26x4.cmd as follows to match increase in bootloader size from 0x6000 to 0x8000:
Questions:
- When I erase entire flash and program only MCUboot_blinky or oad_samples, the first MCUboot partition is empty however the sample still runs. Why does this app still run?
- Also why does the App always fail to run after a board reset. It fails to run even if MCUboot is flashed and addresses correctly (I believe it to be correct, I could be mistaken).
- When using Upgrade_Mode = Overwrite, I get the following output:
[INFO][MCB ]: mcuboot_app
[ERR ][MCB ]: assert: C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/source/third_party/mcuboot/boot/ti/source/mcuboot_app/flash_map_backend/f
[ERR ][MCB ]: assert: C:/ti/simplelink_cc13xx_cc26xx_sdk_8_30_01_01/source/third_party/mcuboot/boot/ti/source/mcuboot_app/flash_map_backend/f
[INFO][MCB ]: Image index: 0, Swap type: none
[INFO][MCB ]: bootRsp: slot = 0, offset = 8000, ver=1.0.0.0
[INFO][MCB ]: Starting Main Application
[INFO][MCB ]: Image Start Offset: 0x8000
[INFO][MCB ]: Vector Table Start Address: 0x8100
- When using Upgrade_Mode = XIP, I get the following output:
[INFO][MCB ]: mcuboot_app
[INFO][MCB ]: Primary slot: version=1.0.0+0
[INFO][MCB ]: Secondary slot: Image not found
[INFO][MCB ]: Booting image from the primary slot
[INFO][MCB ]: bootRsp: slot = 0, offset = 8000, ver=1.0.0.0
[INFO][MCB ]: Starting Main Application
[INFO][MCB ]: Image Start Offset: 0x8000
[INFO][MCB ]: Vector Table Start Address: 0x8100
- Why does Overwrite produce an assert error whilst XIP doesn't?
In Summary:
May someone please provide insights as to how I can get started with MCUBoot with TI RTOS. At this stage I just want to load MCUBoot, and have the blinky sample still load upon a board_reset.
Any assistance would be truly appreciated.
Kind Regards
Brenton