In this step we will flash the application that we have build and run using CCS to the EVM flash. We can then boot this application without being connected to CCS via JTAG.
.appimage.hs_fs
is generated. This is the file we need to flash.${SDK_INSTALL_PATH}/examples/hello_world/am62ax-sk/mcu-r5fss0-0_freertos/ti-arm-clang/hello_world.release.appimage.hs_fs
${SDK_INSTALL_PATH}/examples/hello_world/am62ax-sk/r5fss0-0_freertos/ti-arm-clang/hello_world.release.appimage.hs_fs
${CCS_WORKSPACE_PATH}/hello_world_am62ax-sk_mcu-r5fss0-0_freertos_ti-arm-clang/Release/hello_world_am62ax-sk_mcu-r5fss0-0_freertos_ti-arm-clang.appimage.hs_fs
${CCS_WORKSPACE_PATH}/hello_world_am62ax-sk_r5fss0-0_freertos_ti-arm-clang/Release/hello_world_am62ax-sk_r5fss0-0_freertos_ti-arm-clang.appimage.hs_fs
${SDK_INSTALL_PATH}/tools/boot/sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_linux_hs_fs.cfg
.appimage
file. Give the absolute path to the .appimage
file or path relative to ${SDK_INSTALL_PATH}/tools/boot
. Make sure to use forward slash /
in the filename path.--file=../../examples/drivers/ipc/ipc_rpmsg_echo_linux/am62ax-sk/mcu-r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo_linux.release.appimage.hs_fs --operation=flash --flash-offset=0x100000
--file=../../examples/drivers/ipc/ipc_rpmsg_echo_linux/am62ax-sk/r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo_linux.release.appimage.hs_fs --operation=flash --flash-offset=0xA00000
The linux and HSM app images are to be generated to flash along with your application for MCU R5.
${SDK_INSTALL_PATH}/tools/boot/linuxAppimageGen/board/{board_name}/config.mak
file.${SDK_INSTALL_PATH}/tools/boot/linuxAppimageGen
on terminal${SDK_INSTALL_PATH}/tools/boot/HSMAppimageGen
on terminal
cd ${SDK_INSTALL_PATH}/tools/boot python uart_uniflash.py -p COM13 --cfg=sbl_prebuilt/am62ax-sk/default_sbl_ospi_nand_linux_hs_fs.cfg
/dev/ttyUSB0
python3
to invoke python3.x, just python
command may invoke python 2.x which will not work with the flashing script.
Parsing config file ... Parsing config file ... SUCCESS. Found 8 command(s) !!! Executing command 1 of 8 ... Found flash writer ... sending sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.tiimage Sent flashwriter sbl_prebuilt/am62ax-sk/sbl_uart_uniflash_stage1.release.tiimage of size 276281 bytes in 26.45s. Executing command 2 of 8 ... Command arguments : --file=../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage --operation=flash --flash-offset=0x0 Sent ../../examples/drivers/boot/sbl_uart_uniflash_multistage/sbl_uart_uniflash_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_uart_uniflash_stage2.release.appimage of size 111260 bytes in 10.7s. [STATUS] SUCCESS !!! Executing command 3 of 8 ... Command arguments : --file=../../examples/drivers/boot/sbl_ospi_nand_linux_multistage/sbl_ospi_nand_linux_stage1/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_ospi_nand_linux_stage1.release.tiimage --operation=flash --flash-offset=0x0 Sent ../../examples/drivers/boot/sbl_ospi_nand_linux_multistage/sbl_ospi_nand_linux_stage1/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_ospi_nand_linux_stage1.release.tiimage of size 278969 bytes in 28.67s. [STATUS] SUCCESS !!! Executing command 4 of 8 ... Command arguments : --file=../../examples/drivers/boot/sbl_ospi_nand_linux_multistage/sbl_ospi_nand_linux_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_ospi_nand_linux_stage2.release.appimage --operation=flash --flash-offset=0x80000 Sent ../../examples/drivers/boot/sbl_ospi_nand_linux_multistage/sbl_ospi_nand_linux_stage2/am62ax-sk/r5fss0-0_nortos/ti-arm-clang/sbl_ospi_nand_linux_stage2.release.appimage of size 97028 bytes in 12.12s. [STATUS] SUCCESS !!! Executing command 5 of 8 ... Command arguments : --file=../../examples/hello_world/am62ax-sk/mcu-r5fss0-0_freertos/ti-arm-clang/hello_world.release.appimage --operation=flash --flash-offset=0x100000 Sent ../../examples/hello_world/am62ax-sk/mcu-r5fss0-0_freertos/ti-arm-clang/hello_world.release.appimage of size 40260 bytes in 6.84s. [STATUS] SUCCESS !!! Executing command 6 of 8 ... Command arguments : --file=../../tools/boot/HSMAppimageGen/board/am62ax-sk/hsm.appimage --operation=flash --flash-offset=0x800000 Sent ../../tools/boot/HSMAppimageGen/board/am62ax-sk/hsm.appimage of size 124 bytes in 3.1s. [STATUS] SUCCESS !!! Executing command 7 of 8 ... Command arguments : --file=../../examples/drivers/ipc/ipc_rpmsg_echo_linux/am62ax-sk/r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo_linux.release.appimage --operation=flash --flash-offset=0xA00000 Sent ../../examples/drivers/ipc/ipc_rpmsg_echo_linux/am62ax-sk/r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo_linux.release.appimage of size 144620 bytes in 16.64s. [STATUS] SUCCESS !!! Executing command 8 of 8 ... Command arguments : --file=../../tools/boot/linuxAppimageGen/board/am62ax-sk/linux.appimage --operation=flash --flash-offset=0xC00000 Sent ../../tools/boot/linuxAppimageGen/board/am62ax-sk/linux.appimage of size 810500 bytes in 79.03s. [STATUS] SUCCESS !!! All commands from config file are executed !!!
Hello World!
Sciserver Testapp Built On: Feb 21 2023 17:57:59 Sciserver Version: v2023.01.0.0REL.MCUSDK.08.06.00.16+ RM_PM_HAL Version: REL.MCUSDK.08.06.00.16 Starting Sciserver..... PASSED GTC freq: 200000000 Hello World!
DMSC Firmware Version 8.4.3--w2022.02-am62a (Jolly Je DMSC Firmware revision 0x8 DMSC ABI revision 3.1 [BOOTLOADER_PROFILE] Boot Media : SPI FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz [BOOTLOADER_PROFILE] Boot Image Size : 133 KB [BOOTLOADER_PROFILE] Cores present : mcu-r5f0-0 r5f0-0 [BOOTLOADER PROFILE] System_init : 57521us [BOOTLOADER PROFILE] Drivers_open : 95us [BOOTLOADER PROFILE] Board_driversOpen : 74us [BOOTLOADER PROFILE] Sciclient Get Version : 10128us [BOOTLOADER PROFILE] App_loadImages : 26341us [BOOTLOADER_PROFILE] SBL Total Time Taken : 157215us Image loading done, switching to application ... Starting MCU-r5f and 2nd stage bootloader DMSC Firmware Version 8.4.3--w2022.02-am62a (Jolly Je DMSC Firmware revision 0x8 DMSC ABI revision 3.1 [BOOTLOADER_PROFILE] Boot Media : SPI FLASH [BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz [BOOTLOADER_PROFILE] Boot Image Size : 917 KB [BOOTLOADER_PROFILE] Cores present : hsm-m4f0-0 r5f0-0 a530-0 [BOOTLOADER PROFILE] System_init : 1547us [BOOTLOADER PROFILE] Drivers_open : 98us [BOOTLOADER PROFILE] Board_driversOpen : 74us [BOOTLOADER PROFILE] Sciclient Get Version : 10150us [BOOTLOADER PROFILE] App_loadImages : 412us [BOOTLOADER PROFILE] App_loadSelfcoreImage : 81651us [BOOTLOADER_PROFILE] SBL Total Time Taken : 597283us Image loading done, switching to application ... Starting linux and RTOS/Baremetal applications