Don't reload flash every time when starting debug.

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

As others have said, this is an annoyance.  It's true that when we stop debugging, we can go to project properties and disable reloading.  Then after making code changes, we can go back to project properties and enable reloading, if we think of it.

 

Awneil suggested another entry on the debug menu.  "Start debugging without reloading".  That is better than what we have now.

 

But isn't there a better way?  Couldn't the debugger check to see if the code has changed, and not reload if the code has not changed?

 

As I recall, AS4 did that, but maybe I'm just dreaming.

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

steve17 wrote:
Awneil suggested another entry on the debug menu.  "Start debugging without reloading".

 

Here: https://www.avrfreaks.net/forum/as6-start-debugging-without-programming

 

Quote:
Couldn't the debugger check to see if the code has changed, and not reload if the code has not changed?

As in, do a Verify?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

As in, do a Verify?

Exactly.  Every PC bootloader program (for example avrdude) does a verify after programming the flash.