This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1227: Force generation of esmHighInterrupt

Part Number: TMS570LS1227

Dear team,

1. How to force the esmHighInterrupt interrupt to be generated, and which register value needs to be modified? Is the following register?

2. Under what circumstances will the exit(0) function in the sys_startup.c file be generated? Is there any way I want the program to enforce this function?

The exit() function is actually called after the main function. The main function is an endless loop. How can the program jump out of the main function and execute the exit() function?

void _c_int00(void)

{

......................

__TI_auto_init();
/* USER CODE BEGIN (75) */
/* USER CODE END */

/* call the application */
/*SAFETYMCUSW 296 S MR:8.6 <APPROVED> "Startup code(library functions at block scope)" */
/*SAFETYMCUSW 326 S MR:8.2 <APPROVED> "Startup code(Declaration for main in library)" */
/*SAFETYMCUSW 60 D MR:8.8 <APPROVED> "Startup code(Declaration for main in library;Only doing an extern for the same)" */
main();

/* USER CODE BEGIN (76) */
/* USER CODE END */
/*SAFETYMCUSW 122 S MR:20.11 <APPROVED> "Startup code(exit and abort need to be present)" */
exit(0);

}