AVR32 Studio marking random codelines when single-stepping??

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm running some code native in the NGW100 (not Linux) and have some odd behaviour.

I can change to instruction stepping mode and thus single-step asm lines on the Disassembly view. However, Studio also marks the C-code related to what it's executing and this is utterly rubbish!
I can see it start on main+2 and step to main+18 nice and tidely, line by line. At the same time it marks random lines for each step in my main C-file and also in a additional c-file I have included in the project but not yet referenced. (That is, nowhere in my code do I ever do anything to involve it, certainly not on the first 6 asm lines relating to the setup of a few variables.)

Why is studio not marking the right lines?
It doesn't even mark consecutive lines in the same file, but can jump up/down 10+ lines between each asm line-step.

I've rebuilt and cleaned till my fingers bleed but to no good.

I am using AVR32 Studio 2.0.2 with JtagIce MKII with firmware uppdated successfully.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you use anything else than -O0 optimization? If yes, the current toolchain might run into problem understanding how disasembly resembles the C code.

Hans-Christian