Visual Micro debugger and ATmega2560

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


Hi all, I am trying to debug a custom board with an Atmega2560 MCU, but I am stuck in Astudio7 using the serial port.

I thought to set anything, but when I click on "start debugging and break", the following message appear and no breakpoint is hit:

 

"

User Experience: The serial debugger was delayed waiting for an incoming line of data. If the Serial.print() command is used between breakpoints, then ensure that a line termnator is sent using .println() or .print("\r\n"). Optionally, use #if defined(VM_DEBUG) to add code that is only active when debugging. (if this is expected then switch this user experience message off in tools>options>visual micro>micro debug)

"

 

I cant understand what's my mistake, I tried to use a different port also.

You can have a look of the attached screenshot..

 

Thanks a lot

Marco

 

MRN

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

marconap wrote:
I cant understand what's my mistake

 

It's in the message you posted:

 

 If the Serial.print() command is used between breakpoints, then ensure that a line terminator is sent using .println() or .print("\r\n").

 

Have you done that?

 

 

 

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: 1

You do know you can get a real debugger for 2560 for $15? Not much point in messing with nonsense like Visual Micro when you can get Snap from Microchip.

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

clawson wrote:
get Snap from Microchip.

 

This:  https://www.microchip.com/developmenttools/ProductDetails/PartNO/PG164100

 

Also note that there's currently a sale on:  https://www.avrfreaks.net/forum/eoy2019dt

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

Also note that Visual Micro is an independent 3rd party - nothing to do with Atmel / Microchip.

 

For specific questions about Visual Micro, you'd probably be best on their forum:  https://www.visualmicro.com/forums/

 

Or contact them direct for support:  https://www.visualmicro.com/page/contact-us.aspx

 

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