Introduction
This is a bootloader example, which shows an example of booting RTOS/NORTOS applications on R5/DSP cores from eMMC Boot0 partition.
Supported Combinations
Parameter | Value |
CPU + OS | wkup-r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | j722s-evm |
Example folder | examples/drivers/boot/sbl_emmc |
Steps to Run the Example
Since this is a bootloader, the example will be running every time you boot an application using this example. It is running from an eMMC Boot0 partition unlike other examples which are usually loaded with CCS. Nevertheless, you can build this example like you do for the others using makefile.
Build the Example
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
Prepare the SD Card
- Flash the SD card with the default wic image using balena etcher tool, refer Processor-SDK-Linux for more details
- This prepares the SD card to boot U-boot/Linux
Run the Example
- Flash SBL, Appimage to eMMC, follow below steps to flash the binaries
- Create a folder named sbl in the boot partition of wic image flashed SD card and copy SBL image (may be as tiboot3.bin) and application image (may be as app)
- Insert the SD card into the EVM and boot the board in SD boot mode
- Halt at U-Boot and execute the following commands
- mmc dev 0 1
- fatload mmc 1 ${loadaddr} sbl/tiboot3.bin
- mmc write ${loadaddr} 0x0 0x300 (size of app in blocks)
- fatload mmc 1 ${loadaddr} sbl/app
- mmc write ${loadaddr} 0x400 0x800 (size of app in blocks)
- mmc partconf 0 1 1 1
- mmc bootbus 0 2 0 0
- Note: one block is of size 512 bytes
- Now change the boot switch settings to eMMC boot mode and reset the EVM.
See Also
BOOTLOADER
Sample Output
[BOOTLOADER_PROFILE] Boot Media : eMMC
[BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz
[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 : 36371us
[BOOTLOADER PROFILE] Drivers_open : 19429us
[BOOTLOADER PROFILE] Board_driversOpen : 0us
[BOOTLOADER PROFILE] Sciclient Get Version : 9945us
[BOOTLOADER PROFILE] App_loadImages : 43814us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 109560us
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