This is a bootloader example, which shows an example of booting RTOS/NORTOS applications on DM R5, MCU R5 C75 and A53 cores.
The booting is done in 2 stages(2 bootloader applications).
The SBL uses 7 appimages
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am62ax-sk |
Example folder | examples/drivers/boot/sbl_ospi_nand_multistage |
Since this is a bootloader, the example will be run every time you boot an application using this example. It is run from a OSPI boot media unlike other examples which are usually loaded with CCS. Nevertheless, you can build this example like you do for the others using makefile or build it via CCS by importing as a project.
${SDK_INSTALL_PATH}/tools/boot/sbl_prebuilt/@VAR_SK_LP_BOARD_NAME_LOWER/default_sbl_ospi_nand.cfg
default_sbl_ospi_nand.cfg
shown above.C:/ti/mcu_plus_sdk
and this example and IPC application is built using makefiles, and RTOS Appimage is already created, in Windows, cd C:/ti/mcu_plus_sdk/tools/boot python uart_uniflash.py -p COM13 --cfg=C:/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/@VAR_SK_LP_BOARD_NAME_LOWER/default_sbl_ospi_nand.cfg
~/ti/mcu_plus_sdk
cd ~/ti/mcu_plus_sdk/tools/boot python uart_uniflash.py -p /dev/ttyUSB0 --cfg=~/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/@VAR_SK_LP_BOARD_NAME_LOWER/default_sbl_ospi_nand.cfg
${SDK_INSTALL_PATH}/tools/boot/sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_hs_fs.cfg
default_sbl_ospi_nand_hs_fs.cfg
shown above.C:/ti/mcu_plus_sdk
and this example and IPC application is built using makefiles, and RTOS Appimage is already created, in Windows, cd C:/ti/mcu_plus_sdk/tools/boot python uart_uniflash.py -p COM13 --cfg=C:/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_hs_fs.cfg
~/ti/mcu_plus_sdk
cd ~/ti/mcu_plus_sdk/tools/boot python uart_uniflash.py -p /dev/ttyUSB0 --cfg=~/ti/mcu_plus_sdk/tools/boot/sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_hs_fs.cfg
After flashing and booting the EVM, you will see below output on the UART console (Complete log is not shown)
DMSC Firmware Version 9.1.8--v09.01.08 (Kool Koala) DMSC Firmware revision 0x9 DMSC ABI revision 3.1 [BOOTLOADER_PROFILE] Boot Media : FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz [BOOTLOADER_PROFILE] Boot Image Size : 171 KB [BOOTLOADER_PROFILE] Cores present : mcu-r5f0-0 r5f0-0 [BOOTLOADER PROFILE] System_init : 38003us [BOOTLOADER PROFILE] Board_init : 0us [BOOTLOADER PROFILE] Drivers_open : 193us [BOOTLOADER PROFILE] Board_driversOpen : 89us [BOOTLOADER PROFILE] Sciclient Get Version : 9909us [BOOTLOADER PROFILE] App_loadImages : 3680us [BOOTLOADER PROFILE] App_loadSelfcoreImage : 8538us [BOOTLOADER_PROFILE] SBL Total Time Taken : 60416us Image loading done, switching to application ... Starting MCU-r5f and 2nd stage bootloader [BOOTLOADER_PROFILE] Boot Media : FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz [BOOTLOADER_PROFILE] Boot Image Size : 311 KB [BOOTLOADER_PROFILE] Cores present : hsm-m4f0-0 r5f0-0 a530-0 c75ss0 [BOOTLOADER PROFILE] System_init : 1779us [BOOTLOADER PROFILE] Board_init : 0us [BOOTLOADER PROFILE] Drivers_open : 220us [BOOTLOADER PROFILE] App_loadImages : 2326us [BOOTLOADER PROFILE] App_loadSelfcoreImage : 8543us [BOOTLOADER PROFILE] App_loadA53Images : 5045us [BOOTLOADER PROFILE] App_loadDSPImages : 6790us [BOOTLOADER_PROFILE] SBL Total Time Taken : 24705us Image loading done, switching to application ... Starting RTOS/Baremetal applications Hello World!