Introduction
This bootloader does SOC initializations and attempts to boot a multicore appimage file named "app" present in the first FAT partition found in the connected SD card. The file can be copied to the SD card by connecting it to the host PC using a card reader. Make sure that it is named "app" without any file extension. If the card is new, make sure that it is formatted with FAT32/16.
If a multicore appimage file is found at the location, the SBL reads the file into a buffer, parses it, splits it into RPRCs for each core applicable. Each core is then initialized, RPRC image is loaded, entry points are set and the core is released from reset. For more on bootflow/bootloaders, please refer Understanding the bootflow and bootloaders
Supported Combinations
Parameter | Value |
CPU + OS | wkup-r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | j722s-evm |
Example folder | examples/drivers/boot/sbl_sd |
Steps to Run the Example
Since this is a bootloader, the example will be run every time you boot an application using this example. It is run from an SD card 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.
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Partition the SD card to have boot and root parititon
- Copy sbl_sd.release.hs_fs.tiimage as tiboot3.bin to the boot partition of SD card
- Copy application image as app to the boot partition of SD card
See Also
BOOTLOADER
Sample Output
[BOOTLOADER PROFILE] SYSFW Load : 17632us
[BOOTLOADER PROFILE] System_init : 12246us
[BOOTLOADER PROFILE] Drivers_open : 82499us
[BOOTLOADER PROFILE] Board_driversOpen : 0us
[BOOTLOADER PROFILE] File read from SD card : 6843us
[BOOTLOADER PROFILE] CPU load : 9501us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 129399us
Image loading done, switching to application ...
DMSC Firmware Version 9.0.6--w2023.01-j722s (Kool Koa
DMSC Firmware revision 0x9
DMSC ABI revision 3.1
[BOOTLOADER_PROFILE] Boot Media : SD Card
[BOOTLOADER_PROFILE] Boot Image Size : 435 KB
[BOOTLOADER_PROFILE] Cores present :
mcu-r5f0-0
wkup-r5f0-0
main-r5f0-0
c75ss0
c75ss1
[BOOTLOADER PROFILE] System_init : 36624us
[BOOTLOADER PROFILE] Drivers_open : 92346us
[BOOTLOADER PROFILE] Board_driversOpen : 0us
[BOOTLOADER PROFILE] Sciclient Get Version : 9947us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 138918us
Image loading done, switching to application ...
Starting RTOS/Baremetal applications
Sciserver Testapp Built On: Mar 4 2024 16:34:41
Sciserver Version: v2023.12.0.0-WAKEUP.MCUSDK.J722S.DM.w2023.02
RM_PM_HAL Version: w2023.02-j722s
Starting Sciserver..... PASSED
wkup R5 core booted
mcu R5 core booted
main R5 core booted
c75x_1 core booted
c75x_2 core booted
wkup R5 core reports : All tests have passed