Hi there
I tried the visualmicro plug in for Atmel studio with the Arduino DUE board.
It works perfect...I think that no one needs a JTAG adapter more or ?
Hi there
I tried the visualmicro plug in for Atmel studio with the Arduino DUE board.
It works perfect...I think that no one needs a JTAG adapter more or ?
I haven't used the VM debugger much but I think a JTAG ICE will do more than Visual Micro can, whether or not you need more is another story though.
For example with a real debugger you can single step, view registers and memory etc. I don't think you can do this with VM (but may be wrong about that).
Rob
Like the same people from Visual Micro says, VM debugger plugin "...cannot be relied upon for use with sensitive and dangerous projects". Also, after the 14 days trial, you'll have to pay $29 for 1 machine license. For debug you'll need Arduino, Visual Studio and Atmel Studio. You can't debug dynamic C++ classes.
On the other hand, SAM-ICE is a $100 JTAG emulator that only needs Atmel Studio to program/debug Arduino DUE and it is endorsed by Atmel itself.
Some times, trying to resolve a communication issue I just open the ELF file generated by Arduino IDE and open it into Atmel Studio (file->open->open object file for debugging), then put a breakpoint at the key functions and try to locate where the problem could be located.
Remember that visual micro and SAMICE work the opposite of the Arduino intention to enable the user to develop applications quickly by hiding detail low level control details in the API. The choice will depend on your interests/needs/goals. If you only want to explore a bit more of how DUE works, get visual micro but if you are more oriented to troubleshoot, develop or design applications based on SAM microcontrollers, like Rob says, SAM-ICE is your best option.
Once you've had a real ICE you'll never (willingly) go back ![]()
Rob
lets see...I already use atmel studio through micro visual to connect my arduino due... my ICE debugger will be there tomorrow
Hello so3ody
Could you give us a feedback with comparing Visual Micro and your Sam-ICE ?
Hi Visual Micro is for me somthing like "quick and dirty version" its nice to have but it is not an alternative for a debugger like the SAM ICE
If I were you I would directly buy the SAM ICE debugger instead of buying the Visual Micro firestly
I hioe that I could help you
best regards
Hello so3ody.
On the Atmel site, one can read this:
"Atmel SAM-ICE - a JTAG emulator for Atmel ARM-based MCUs
Atmel SAM-ICE™ is a JTAG emulator designed for Atmel SAMA5, SAM3, SAM4, SAM7 and SAM9 ARM® core-based microcontrollers, including the Thumb® mode"
Does the same SAM-ICE works on the AVR 8 bits ?
well its written
designed for Atmel SAMA5, SAM3, SAM4, SAM7 and SAM9 ARM® core-based microcontrollers,
so AVR ist not a core based uc
so I dont believe that it works with AVR but im not sure
you can directly ask Atmel they answer frequently
SAM ICE will not work with AVR AFAIK, but they do have a new debugger that does both and it's pretty cheap, can't think of the name right now though.
Rob
thank you, so3ody and Rob,
I went to the Atmel Store and found "Atmel -ICE PCBA" :
http://store.atmel.com/PartDetail.aspx?q=p:10500376;c:100112#tc:description
It is cheap and seems to be able to debug everything.
Yep, that's it. For more $ you can get it in a box as well, worth it IMO so it's protected from shorting on stuff.
http://store.atmel.com/PartDetail.aspx?q=p:10500377#tc:description
Or for $85 with all cables it seems.
http://store.atmel.com/PartDetail.aspx?q=p:10500375#tc:description
Rob
.. or you could save some money, when it's targeted only towards hobby and not commercial use, and buy the original (SEGGER J-Link; SAM-ICE is just a tainted one) and use i.e. open industry prooved tools like iSystem WinIDEA in the Open edition.
It works smoothly with i.e. J-Link, has real time view of static vars, memory, registers. Is extensible by python scripts and the best, it is free for private use.
Nevertheless, the new Atmel ICE PCBA sounds quite reasonable and handy ... one for all. It looks like a successor of the famous AVR-DRAGON which used to work (programming and debugging) for JTAG, DebugWIRE, SPI, PARALLEL, PDI for AVR-8 and AVR-32.
But no support for SAM devices yet ![]()
Edit: fixed typo.
Thank you, msteam, but J-link is a funny way to save money ! $)
Oh sorry, maybe it was not clear enough. I was talking about the EDU version of J-Link (50 bucks + shipping).
The only 'annoying thing' that i observed so far is a disclaimer, that pops up once per day reminding you to do not use the tool for commercial purpose.
Oh, yes ! The EDU version actually makes the difference ! (Adafruit sells it).
But what about the use of this jtag ? I read in the features : "It support both JTAG (ARM7/9/11) and SWD (ARM Cortex), and has you covered for any core: ARM7/9/11, Cortex-A5/A8/A9, Cortex-M0/M0+/M1/M3/M4, Cortex-R4".
It seems to be useless for Arduino debugging.
You may have missed, that we are in the Arduino Due section.
This arduino device is based on Atmel SAM3X8E which is powerd by an ARM Cortex M3 core with ICE and JTAG or SWD connection possibility (both also available on the Arduino Due board thru adequate pin headers).
Older AVR debug tools like AVRICE or AVRDRAGON are in deed of no use for this kind of device (btw. same is true for Teensy 3.0 i.e.)
You are right.
I was not even conscious of the existence of that Arduino board ![]()
I was looking for debugging opportunities with the traditionnal boards.
Sorry for any disturbance. (and thanks for your patience).
Hi,
The Visual Micro debugger provides features such as timed breakpoints, digital analog pin visualizations and other things. The next release will also include a live commander allowing registers, arrays and other complex types to be reported dynamically while the Arduino is running. The debugger also works over usb, bluetooth and xbee. The Visual Micro debugger also works with .ino sketch files and with 100% Arduino compatible projects.
The Visual Micro debugger is easy and often better than serial print messages in code which consume huge amounts of memory for novice users.
The Atmel hardware debuggers certainly provide a more in-depth debug experience but are not aware of .ino source code.
Visual Micro makes it easy to combine Arduino and Atmel Studio. You can build a fully compatible Arduino program in Atmel Studio with Visual Micro and then simply click "File>Open object file for debugging" to debug using ICE.