Tool/software:
When I integrated ecc_app_am62x-sk_r5fss0-0_freertos_ti-arm-clang to ipc_rpmsg_echo_linux_am62x-sk_r5fss0-0_freertos_ti-arm-clang.
I found that after performing MCU BIST, the ecc_main(Null) will be stuck at
ECC Example Application
ECC_Example_init: Init MAIN ESM complete
void main_thread(void *args) { int32_t status = SystemP_SUCCESS; /* Open drivers */ Drivers_open(); /* Open flash and board drivers */ status = Board_driversOpen(); DebugP_assert(status==SystemP_SUCCESS); /* wait for PBIST completion */ status = App_waitForMcuPbist(); DebugP_log("McuPbist = %d\n\r",status); /* start MCU LBIST*/ status = App_startMcuLbist(); /* wait for LBIST completion */ status = App_waitForMcuLbist(); DebugP_log("Lbist = %d\n\r",status); /* Init LPM specific data */ Sciclient_initDeviceManagerLPMData(&gDMLPMData); sciServer_init(); ecc_main(NULL); ipc_rpmsg_echo_main(NULL); /* Close board and flash drivers */ Board_driversClose(); vTaskDelete(NULL); }
If I do not execute MCU LBIST, it will work as normally.
The stuck function is below.
result = SDL_ESM_init(SDL_ESM_INST_WKUP_ESM0, &ECC_Test_esmInitConfig_WKUP, SDL_ESM_applicationCallbackFunction, ptr);