Recently my customer encountered a problem when they debug the 280049, they found that when they add a defination of a variable like"int16 test" in their SW;the mcu worked abnormal,. While they use the "int16 test = 0;",the cpu worked normal.
We do a detail test today, found that when the cpu worked abnormal, the code could not run in the main function! And when modify the code in the code-start.asm: change the code:
code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot._asm in RTS library
.endif
to
code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB main ;Branch to start of boot._asm in RTS library
.endif
the cpu worked normal! WHY!
And the problem can be reproduce on the TI 280049 demo.
Attachment is the .out and .map file for the normal and abnormal project.They use the same cmd file as attached.
for the normal file,when run on the demo,we can measure a period gpio toogle(gpio 59) after power on the demo. for the abnormal file could ont measure the toggle.
Does anyone have encountered a similar problem?
Or how to locate the root of this problem?