Tool/software:
Hi,
I'm using the am243x with mcu_plus_sdk_am243x_09_01_00_41.
I use the OSPI SBL which successfully runs "Hello world" example code from 0x80000.
I've added to another Boot loader to syscfg to run code from 0x5DC000 (my ftp_loader code)
then added to SBL main.c
uint32_t ul_app_image_addr=0x80000;
bootHandle = Bootloader_open(CONFIG_BOOTLOADER_FLASH0, &bootParams);
int32_t i_auth = App_authenticateAppImage(bootHandle,ul_app_image_addr);
if(i_auth == SystemP_SUCCESS)
DebugP_log("CD3E app authenticated \r\n");
else
{
ul_app_image_addr=0x5DC000;
bootHandle = Bootloader_open(CONFIG_BOOTLOADER_FLASH1, &bootParams);
i_auth = App_authenticateAppImage(bootHandle,ul_app_image_addr);
if(i_auth == SystemP_SUCCESS)
DebugP_log("CD3E ftp loader authenticated \r\n");
}//ftp loader
when I load my ftp_loader code via jtag - it works,
but if I put it in FLASH (0x80000 or in 0x5DC000) the SBL runs then writes
SBL Certificate address: 0x60080000
SBL Authentication passed
CD3E app authenticated
[BOOTLOADER_PROFILE] Boot Media : NOR SPI FLASH
[BOOTLOADER_PROFILE] Boot Media Clock : 200.000 MHz
[BOOTLOADER_PROFILE] Boot Image Size : 0 KB
[BOOTLOADER_PROFILE] Cores present :
r5f0-0
[BOOTLOADER PROFILE] SYSFW init : 12154us
[BOOTLOADER PROFILE] System_init : 531us
[BOOTLOADER PROFILE] Drivers_open : 280us
[BOOTLOADER PROFILE] Board_driversOpen : 9674us
[BOOTLOADER PROFILE] Sciclient Get Version : 9911us
[BOOTLOADER PROFILE] CPU load : 73679us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 106232us
Image loading done, switching to application ...
Then all stuck .
What can be the problem ?
How can I debug the SBL via debugger ?
Thanks,
Eli