elf file does not follow program execution on cw for mpcxxx v8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

elf file does not follow program execution on cw for mpcxxx v8

2,103 Views
jeb
Contributor I
Why does the source window pointer jump all over (does not follow program execution) while debugging in cw mpc v8. This also happens in the pemicro debugger using the same cw generated elf. However, the disassembly execution is correct. Thanks.
Labels (1)
0 Kudos
Reply
2 Replies

882 Views
Alban
Senior Contributor II
Hi,
 
When this happens on S12, it means the device has not been programmed.
The device follows its own code and the debugger follows the Program Counter and place the matching address in execution in the source window.
Check that the Flash contains your latest firmware.
 
Alban.
0 Kudos
Reply

882 Views
Nouchi
Senior Contributor II
Hi,

It also happens when you set optimization to the maximum level, then it becomes very difficult to debug, set to 0 the optimization level during debugging stage.


Emmanuel
0 Kudos
Reply