My target is DM648, with the development of CCS3.3 + SR11 + code generation tools 7.0.4.
Now the debug version of my algorithm is running stable with the option ‘–g –mu’, while the release version with the option ‘-o2’ will halt the system randomly. Originally I have other compiler options like ‘-mt –mf5’, and in order to solve this problem, I delete them all except ‘-o2’, but the problem still exists. I have tried ‘-o3’ before, and the system becomes more unstable.
When the system halts, the emulated breaks off the JTAG link and I am not able to debug this problem at all. Then I need to power off and pwer on to re-connect the target. This kind of breakdown seems to be very deep level compared to the normal failure like ‘UTL_Halt()’. The system indeed prefers to halt at some particular point or algorithm stages, but not always there.
The release version with ‘-o2’ alone already meets my speed requirement. What should I do to probe this issue.