Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) How to change the Arduino-debugger to JTAGICE mkII (Read 12641 times)
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
How to change the Arduino-debugger to JTAGICE mkII
Mar 11th, 2014 at 10:02am
Print Post  
Hello, as as an arduino newbie I tried to change the debugger to my JTAGICE mkII... without success.

When I create a "normal" project I can debug without any problems, when I use an arduino sketch I'm not able to switch to my JTAGICE mkII - though I set tje JTAGICE mkII to my debugger with debugWire.

But I get always this message:

Minimum Memory Usage: 201 bytes (10% of a 2048 byte maximum)
Uploading to I/O board using 'COM9'
avrdude: stk500_getsync(): not in sync: resp=0x00

How can I change this to my mkII???  Undecided
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #1 - Mar 11th, 2014 at 1:31pm
Print Post  
Hello,

Arduino does not so easily support debugging using native debuggers in Atmel because Atmel does not understand .ino source files. 

This is one reason why we have the serial/usb debugger. Whilst serial/sub debug does not currently provide some of the in-depth debug views provided by atmel studio it does have other benefits.

However you want to know about native debug so I will not dwell on the serial/usb debugger.

The best way to make this work right now (we are working on a better solution) is to click build on your sketch project. The latest beta will copy the .elf into the sketch output folder sketch/debug or sketch/release (the location depends on your project config as with normal atmel projects).

After you have built the .elf using the Visual Micro Arduino compiler click "File>Open object file for debugging". This will create a new atmel solution that will allow normal Atmel "start with debugging".

I believe that "Debug wire" will only work on an Arduino board if you have hacked the reset pin or removed the cap. You will read more on the web about this.

Does this make sense, sorry it's not slick yet but this is a historic problem between arduino and atmel and nothing to do with Visual Micro which currently ensures a 100% Arduino compatible project structure.
  
Back to top
IP Logged
 
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #2 - Mar 11th, 2014 at 4:08pm
Print Post  
thank you very much!!!
You gave me the necessary and very helpfull information,
I did it step by step (and my arduino board was already modfified with a switch - so there is no problem with de debugwire)

and in fact: it's all okay and working fine!

All made sense!  Wink and I'm happy !

thank you very very much, even this is not a very slick solution but it works fine for me.  Cheesy

and ... of course I'm looking forward a seamless solution, but your solution will do fine!!! and it is quite good  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #3 - Mar 11th, 2014 at 4:14pm
Print Post  
Great thanks for the feed back. 

It will be very useful to have you testing the new stuff when it is available. If you can please register for email notifications of new releases here http://visualmicro.codeplex.com/releases/view/105966

You will be emailed new features and will see notes about atmel native debugging when available

  
Back to top
IP Logged
 
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #4 - Mar 11th, 2014 at 4:33pm
Print Post  
done..... I will keep you informed Wink
___________________

the debugger looks good, but crashed to times single-stepping through the "library-code" (eeprom) and finding references (shift-alt-F). I hope these are exceptions.... for today... Grin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #5 - Mar 11th, 2014 at 4:38pm
Print Post  
I hope so too. Did you try the Atmel 6.2 beta? 

If you find time to leave a review in the atmel gallery it will be appreciated but not critical  Smiley

https://gallery.atmel.com/Products/Details/ac763121-b012-4f5a-950d-0f718a9aead9?

Thanks
« Last Edit: Mar 11th, 2014 at 4:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #6 - Mar 11th, 2014 at 4:46pm
Print Post  
Yes, I'm using v6.2 (6.2.993 beta)
I was a visitor on the 'embedded-world nürnberg/germany' and I have seen this beta - and now I'm using it... but btw I have also v6.1 installed... atmel said v6.2 is much better for debugging, but I missed further asking about this statement.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #7 - Mar 11th, 2014 at 5:11pm
Print Post  
Sorry to ask but I want to make some wiki documents showing how to add a reset switch. An easy way for people to switch between debug-wire and normal arduino upload.

Do you have a solution that you think will be useful? To disable the capacitor but then be able to enable again?
  
Back to top
IP Logged
 
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #8 - Mar 11th, 2014 at 5:27pm
Print Post  
... yes .. I have an very easy solution.

I was cutting the "Reset" line, soldered two wires on to the board (to the new created reset points) and soldered a switch on the other end of the two wires and fixing this switch with hot glue to a connector... Simple, but you need some skills to do this.

For the Arduino Uno it is easy... and you can switch the two modes.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #9 - Mar 11th, 2014 at 5:31pm
Print Post  
That's a good idea. I was trying to work out how to replace the capacitor with a switch. new reset points is much better!

How does the Uno switch? Using the solder pads or something even easier?
« Last Edit: Mar 11th, 2014 at 5:31pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Negatron
Newbies
*
Offline


Posts: 6
Joined: Mar 8th, 2014
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #10 - Mar 11th, 2014 at 5:49pm
Print Post  
I used the solder pads, on one connector you can one pin of the reset (pin 3 on connector POWER), but this is only one pin of the two. The second pin you need is not available on a connector - so I decided to solder to wires to the "opened" pads. Maybe other boards are better to modify than the arduino Uno Rev.3. but I don't know this at the moment and I'm right now up the 3rd. day with the arduino and the VM....
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #11 - Mar 11th, 2014 at 7:19pm
Print Post  
This is great thanks. Most users have the boards you have so they will make great examples. Thanks again.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to change the Arduino-debugger to JTAGICE mkII
Reply #12 - Mar 12th, 2014 at 9:09pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint