I am a user of the NUCLEO-N657X0-Q board.I would like to use Keil MDK RTX5 RTOS together with Root of Trust.My development environment is as follows:1> Development tool: Keil uVision V5.422> Example source: STM32Cube\Repository\STM32Cube_FW_N6_V1.2.0\Projects\NUCLEO-N657X0-Q\Applications\ROT\OEMuROT_Appli3> Development board: NUCLEO-N657X0-Q
4> Manage Run-Time Environment Setting
I have added the osKernelInitialize() function to the main function as shown below.
int main(void){#ifdef PRINT_BOOT_TIME /* Get boot cycles */ end = DWT->CYCCNT;#endif
/* Reset of all peripherals, Initializes the Flash interface and the systick. */ HAL_Init();
#ifdef PRINT_BOOT_TIME /* Get Boot Time */ time = ((uint64_t)(end) * 1000U / SystemCoreClock);#endif
/* Register SecureFault callback defined in non-secure and to be called by secure handler */ SECURE_RegisterCallback(SECURE_FAULT_CB_ID, (void *)SecureFault_Callback);
/* Register SecureError callback defined in non-secure and to be called by secure handler */ SECURE_RegisterCallback(IAC_ERROR_CB_ID, (void *)SecureError_Callback); osKernelInitialize() ; // Add
/******************************************************************************* * Common Configuration Routines * *******************************************************************************/ pUserAppId = (uint8_t *)&UserAppId; COM_Init();
printf("\r\n======================================================================"); printf("\r\n= TEST TEST"); printf("\r\n======================================================================"); printf("\r\n\r\n");}
When executed, the serial messages appear for a while and then stop, and the SecureFault_Callback() function is called, after which the program does not proceed any further.
I am inquiring about the issue of the program stopping. Thank you.
Moved to Keil specific forum