Other Parts Discussed in Thread: SYSCONFIG
Hello Ti experts,
I am trying to software reboot an AM2432B ALV from eMMC on our own PCB.
It does initially cold boot from eMMC on power up but ends up in ROM and UART backup boot when reset is called from within the application.
I am running the Hello World (AM243x nortos) example on the R5 with a call to SOC_generateSwWarmResetMainDomain added after printing "Hello World" a few times. I’ve also tried calling SOC_generateSwPORResetMainDomain. There’s no UART output after the reset call. With UART enabled as the backup boot option it indicates (“...CCCC...") UART boot about 12 seconds after the reset call.
The SBL I am using is the sbl_emmc_am243x-evm_r5fss0-0_nortos_ti-arm-clang example from the mcu_plus_sdk_am243x_09_01_00_41 SDK (and CCS 12.5). The modifications I made are
Sysconfig:
- EMMCAppImageOffset at 0x200000 instead of 0x800000
- disableAppImageAuth set to true (“Disable Auth For Application Image” checked in syscfg editor) Without this change the app does not load at all.
After the reboot call it seems to end up in the boot ROM at
418019ec: E320F003 wfi
418019f0: F10801C0 cpsie aif
418019f4: E2800000 add r0, r0, #0
But based on the Tech Ref Manual (spruim2c.pdf rev. 1.0) p.1862 I would expect it to not go into the ROM on a warm reset.
Is it possible to get the (public part of the) ROM bootloader source code?
Is there any documentation on how to use the ROM logs that are located starting at 0x701B_D000 or is this still only Ti internal?
I am flashing the eMMC SBL at offset 0x0
--file=sbl_emmc.Debug.hs.tiimage --operation=flash-emmc --flash-offset=0x0
and the application at offset 0x200000 (which is different from the 0x800000 in the eMMC SBL example)
--file=hello_world_am243x-evm_r5fss0-0_nortos_ti-arm-clang.appimage.hs_fs --operation=flash-emmc --flash-offset=0x200000
Here's my UART output. (Why would the boot media be undefined and the image size be 0?)
DMSC Firmware Version 9.1.6--v09.01.06 (Kool Koala)
DMSC Firmware revision 0x9
DMSC ABI revision 3.1
[BOOTLOADER_PROFILE] Boot Media : undefined
[BOOTLOADER_PROFILE] Boot Image Size : 0 KB
[BOOTLOADER_PROFILE] Cores present : r5f0-0
[BOOTLOADER PROFILE] SYSFW init : 12465us
[BOOTLOADER PROFILE] System_init : 348837us
[BOOTLOADER PROFILE] Drivers_open : 20360us
[BOOTLOADER PROFILE] Board_driversOpen : 0us
[BOOTLOADER PROFILE] Sciclient Get Version : 10033us
[BOOTLOADER PROFILE] CPU Load : 44795us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 436955us
Image loading done, switching to application ...
Hello World!
Hello World! >1<
Hello World! >2<
Hello World! >3<
Resetting now ...
02000000011a0000616d3634780000000000000048534653000
002000000020002a6000000000000b018658ad99dc903c8c9bf
b27b12751099920a042ad1dfea7b7ba57369f15546de285edde
6a7b39a8bdc40a27b237f8fb1e57f245e80b929c1e28b024aa2
ecc6ad0bc40b000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000
00000000000000000000000000000076d835ba0de64dd82d1bc
01da4cb47b78a7259cfdf4f5e8c2bee821c6a0b3e56CCCCCCCC
Please let me know what I'm missing.
Thank you,
Martin