Tool/software: Code Composer Studio
I use TMS570LC4357 board(Evaluation kit). And Ti safey library is used for self-diagnosis.
In the HL_sys_startup.c, the code is problem.
if ((esmREG->SR1[2]) != 0U)
{
while(1); //ESM group3 error
}
I test 3 ways to change optimiziton level.
1. Default option : 3-Interprocedure Optimizations (When I make the project using by Ti Safety Library 2.4.0, optimiziton level 3 is default)
- When I do power on/off(plug on/off), the code is trapped in the problem code.
2. Optimization level : off (I saw about the optimizaiton problem in the link : https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/756588?tisearch=e2e-sitesearch&keymatch=tms570lc4357%25252525252520power%25252525252520up%25252525252520ESM%25252525252520group%252525252525203 )
- When I do power on/off(plug on/off), the problem code is passed. But some self-test is fail.
3. Optimization level : 0-Register Optimizations
- same result experiment 1.
I have some questions about this.
1. What is optimization level used?
Regards,
Minwoo
