Dragon and single stepping!

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

Dear all
I have upgraded my AVR studio to 4.18 and also i have upgraded the dragon.but when i want to single step my mega2560 i have to hit F11 several times to pass a line of code!!!
do you have any idea what must be wrong?

I love Digital
and you who involved in it!

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

It seems to have gotten slower with V4.18. It will be worse in C, may want to try the disassembler view.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Remember that in C debugging mode a "step" means step one STATEMENT not necessarily one line. Maybe the lines needing more than one press of F11 had more than one statement?

Personally, to get a much better idea of what's going on, I'd always switch to the interleaved C/Asm view and in that case the step instruction is unequivocal it ALWAYS steps one AVR opcode.

PS John, sorry I spelt your name wrong in another thread!

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

Is this line of code need a single hit of F11

PORTB=0x55;

I love Digital
and you who involved in it!

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

And you say the yellow arrow stays on that line for several clicks? The chances are that the following lines have been optimised away. Like I say to really follow what's going on when debugging optimised code you MUST switch to the C/Asm view or turn the optimiser off.