# Debugging Due on Atmel Studio 7 using Atmel-ICE and JTAG

**URL:** <https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092>\
**Category:** Due\
**Created:** [April 10, 2019, 3:37am UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092 "2019-04-10T03:37:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henradrie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@Henradrie](https://forum.arduino.cc/u/Henradrie)\
**Post date:** [April 10, 2019, 3:37am UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092/1 "2019-04-10T03:37:16Z")

</div>

Hi all,

I was able to program my Uno using an Atmel-ICE and Atmel Studio. Thought I would try the same with my Due. Now I can't figure out how to get it to work.

I followed the same basic steps as this [tutorial](http://www.solutions-cubed.com/electronic-design-blog/debugging-arduino-sketches-with-atmel-studio-7/) but selected JTAG in the debug tool tag. I powered up the board, plugged the connector in and pressed debug. I got a list of errors that I don't even know where to start with. Has anybody done this before and can lend a hand, I can't seem to find any good information anywhere?

Error list

```cpp
Severity	Code	Description	Project	File	Line
Error recipe for target 'src/core/cortex_handlers.o' failed	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\Debug\Makefile	261
Error recipe for target 'src/core/IPAddress.o' failed	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\Debug\Makefile	282
Error recipe for target 'src/core/main.o' failed	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\Debug\Makefile	296
Error recipe for target 'src/core/Print.o' failed	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\Debug\Makefile	310
Error chip.h: No such file or directory	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\Arduino.h	42
Error chip.h: No such file or directory	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\Arduino.h	42
Error chip.h: No such file or directory	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\Arduino.h	42
Error chip.h: No such file or directory	ArduinoCore	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\Arduino.h	42
Error chip.h: No such file or directory	Blink	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\Arduino.h	42
Error recipe for target 'Sketch.o' failed	Blink	c:\users\brad's pc\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\Blink\Debug\Makefile	81

```

---

<div class="post-metadata">

**Author:** ![ard\_newbie](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ard\_newbie](https://forum.arduino.cc/u/ard_newbie)\
**Post date:** [April 10, 2019, 7:41am UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092/2 "2019-04-10T07:41:26Z")

</div>

Did you see that thread ?

[https://forum.arduino.cc/index.php?topic=134907.0](https://forum.arduino.cc/index.php?topic=134907.0)

and this :

> **[Arduino Due - Programming And Debugging Using JTAG ICE And Atmel Studio](https://copperhilltech.com/blog/arduino-due-programming-and-debugging-using-jtag-ice-and-atmel-studio/)**
>
> Atmel’s SAM3X series MCUs are great for users who want to move further from the world of 8bit/16bit microcontrollers to 32bit ARM Cortex core MCUs.
> One of the most famous device in this series is SAM3X8E, Atmel’s Smart ARM microcontroller. The...

---

<div class="post-metadata">

**Author:** ![Henradrie](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@Henradrie](https://forum.arduino.cc/u/Henradrie)\
**Post date:** [April 11, 2019, 8:25pm UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092/3 "2019-04-11T20:25:17Z")

</div>

Yes I did, the first one specifies what cable to use but doesn't go into much detail. The tutorials from the links in it show how to get AVR's working, but I've already got that working.

Copperhilltech was the first source I looked at. They basically say it is possible but don't give any real steps. The tutorials in the links on their page seem to go through different ways of accomplishing the same thing. I'm quite confused with which is the correct way to go especially since some of them only show ways of flashing to the chip and no debugging. On chip debugging is the reason I am trying to use Atmel Studio in the first place.

What I am looking for is a procedure similar to the one used for the Uno, where I import an arduino sketch, Atmel studio formats it to it's standard, and I can select the debugger I want to use. Does this procedure exist and if so how is it done?

---

<div class="post-metadata">

**Author:** ![ard\_newbie](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ard\_newbie](https://forum.arduino.cc/u/ard_newbie)\
**Post date:** [April 12, 2019, 6:50am UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092/4 "2019-04-12T06:50:23Z")

</div>

Maybe this:

[https://digistump.com/board/index.php?topic=1275.0](https://digistump.com/board/index.php?topic=1275.0)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 5:44pm UTC](https://forum.arduino.cc/t/debugging-due-on-atmel-studio-7-using-atmel-ice-and-jtag/585092/5 "2021-05-06T17:44:44Z")

</div>

Closed on May 6, 2021, 5:44pm UTC


