AS6: start debugging without programming?

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

Is there a simple way to start debugging without programming?

 

ie, on a chip that's already programmed, just start debugging - don't do a download.

 

Cross-post: http://www.at91.com/discussions/viewtopic.php/t,23214.html

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

For AVR in the place where you select Dragon/JTAGICE/whatever there's options for the chosen device and one is a tick box for "program device when starting debugging" or words to that effect. I sort of assume it's something similar for ARM?

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

Yes you can skip programming. That's always been a thorn in my side because I use a bootloader and Studio programming would erase it, unless I knew the hoops to jump through. Now it's easy. This picture shows "Simulator" because I don't have my debugger plugged in, but it works in any case.

 

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

Yes, I know that one - but I don't really call it a simple way.

 

And you have to remember to set it back again next time you do want to download.

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

Sorry, it's simpler than Studio 4.  smiley

 

Actually I rarely want to program it via debugger (and wipe out the bootloader) and I seldom need to do on chip debugging anyway.  When I change a program, I debug it by running my code on my PC. When it looks good I program the AVR via bootloader.  I suppose I'm the only one that writes his AVR code so it can be run on a PC with Visual Studio.

 

Well I guess lots of people use the Atmel simulator.  If it is easy to simulate the peripherals and whatever is connected to the peripherals, that would be a good way to debug.  I don't think that was the case when I started with AVRs.

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

Sound like you want a one shot deal.  I'll vote for that. 

 

What I want is to automatically do an "add as link" when I add an existing file to a project.  And I suggest that "copy and add" be labeled as such.  They could remove the "copy and add" entirely as far as I'm concerned, or make that some kind of a permanent option.

 

 

 

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

steve17 wrote:
Sound like you want a one shot deal

I'd settle for 2 clicks:

  1. Debug;
  2. Start without programming.

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

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...