2026-05-08 1:45 AM - last edited on 2026-05-08 1:55 AM by Andrew Neil
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.42
2> Example source: STM32Cube\Repository\STM32Cube_FW_N6_V1.2.0\Projects\NUCLEO-N657X0-Q\Applications\ROT\OEMuROT_Appli
3> 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.
Edited to apply source code formatting - please see How to insert source code for future reference.
2026-05-08 1:59 AM
Welcome to the forum.
Please see How to write your question to maximize your chances to find a solution for best results.
@young_seo wrote:Keil MDK RTX5 RTOS together with Root of Trust
That's a Keil product - not ST - so have you asked Keil about this?
https://developer.arm.com/Tools%20and%20Software/Keil%20MDK/RTX5%20RTOS
https://community.arm.com/support-forums/f/keil-forum