Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS
I am using the following: Tiva TM4C1294NCPDT CPU, CCS 6.1.2 using, TIRTOS 2.16.0.08, compiler 5.2.7 and XDC 3.31.1333
I have a project working and stable when I do a debug build but when I build and run a release build, I get a crash. I looked closely at the difference between the release and debug build and I found that everything is the same except the optimizations.
The crash I get is : "ti.sysbios.knl.Task: line 373: E_stackOverflow: Task 0x2001cd88 stack overflow.".
After seeing this error, I verified that the stack size is the same between release and debug build. The setting I verified is Project->properties->Arm Linker->Basic Options->Set C system stack size. This field is the same between release and debug builds.
If I change the release build to no optimization, it runs fine. If I change the debug build to "2 Global Optimization" I also get the crash so somehow the optimization "2 Global Optimization" causes a ti.sysbios.knl.Task: line 373: E_stackOverflow: Task 0x2001cd88 stack overflow crash.
How would I identify the root cause and fix for this? I assume I would like the release build to be able to run 2 Global Optimization.
Thanks,
Doug