This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cant Step through C code

I seem to be having the same issue as someone in this thread:

http://www.keil.com/forum/15652/

I had it before and got it to go away, I'm not sure how...

Now nothing I do works, I cant debug at all...

I can still see the disassembly and step through that, but that isn't that useful when debugging data structures etc.

Does anyone have any clue what could cause this?

It happens when simulating or debugging on chip (STM32F4xx)

I tried deleting all output files and regenerating as well as everything listed in the above thread.

No errors are printed at all.

Any help would be appreciated

Parents
  • I did try to turn off optimization, the problem isn't that code is being optimized away, I'm certain it's some sort of issue with the debugger. I can't step in c code at all but I see the disassembly in mixed mode, so it's not break points missing from optimizing. I can also step in the startup assembly file but when I jump to main it doesn't switch files at all, and if I open main there is no stepping arrow etc

Reply
  • I did try to turn off optimization, the problem isn't that code is being optimized away, I'm certain it's some sort of issue with the debugger. I can't step in c code at all but I see the disassembly in mixed mode, so it's not break points missing from optimizing. I can also step in the startup assembly file but when I jump to main it doesn't switch files at all, and if I open main there is no stepping arrow etc

Children