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:esmHighInterrupt 的强制生成

Guru**** 2386620 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1031184/tms570ls1227-force-generation-of-esmhighinterrupt

器件型号:TMS570LS1227

尊敬的团队:

如何强制生成 esmHighInterrupt、需要修改哪个寄存器值? 以下寄存器吗?

2.在什么情况下会生成 sys_startup.c 文件中的 exit (0)函数? 我是否有任何方法希望程序强制执行此函数?

exit()函数实际上是在 main 函数之后调用的。 主函数是无限循环。 程序如何跳出主函数并执行 exit()函数?

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);

}

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="163191" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1031184/tms570ls1227-force-generation-of-esmhighinterrupt "]程序如何跳出主函数并执行 exit()函数?

    在某些情况下,TI 编译器运行时库可以调用 exit()。 例如,如果内存不足,无法分配 变量长度数组(VLA),则调用 exit(),请参见 SW-EK-TM4C129EXL:EK-TM4C129EXL

    调试器中的回溯是否显示了调用 exit()的位置?