Debugging on the Due with the Atmel ICE debugger

preview_player
Показать описание
As of my last update in September 2021, debugging on the Arduino Due using the Atmel ICE debugger with the Arduino IDE directly is not natively supported. The Arduino IDE primarily focuses on providing a user-friendly interface for beginners and hobbyists, and it does not have built-in support for advanced debugging features.

However, if you want to debug your Arduino Due projects using the Atmel ICE debugger, you can use Atmel Studio, a more advanced development environment provided by Microchip (previously Atmel). Atmel Studio is a powerful tool that supports debugging and offers a more in-depth development experience for advanced users.

Here's an overview of how you can debug the Arduino Due using Atmel Studio and the Atmel ICE debugger:

Install Atmel Studio:

Download and install Atmel Studio from the official Microchip website.
Connect Atmel ICE to Arduino Due:

Connect the Atmel ICE debugger to the appropriate programming header on the Arduino Due board. The Atmel ICE should have a 6-pin or 10-pin header connector that matches the programming header on the Due.
Connect Atmel ICE to PC:

Connect the Atmel ICE programmer to your computer via USB.
Create a New Project in Atmel Studio:

Open Atmel Studio and create a new project for your Arduino Due application. You can select the appropriate target device (ATSAM3X8E for Arduino Due) and specify the project settings.
Configure Debugging:

In Atmel Studio, configure the debugging settings to use the Atmel ICE debugger. You can select the debugger from the "Tools" menu and specify the interface (JTAG or SWD) and the target device (ATSAM3X8E).
Build and Debug:

Write your Arduino Due code in Atmel Studio and build the project. Then, start the debugging session by clicking the "Debug" button. Atmel Studio will load the code onto the Arduino Due using the Atmel ICE debugger and begin the debugging session.
Debugging Features:

Atmel Studio offers a range of debugging features, including breakpoints, watch windows, variable inspection, stepping through code, and more. These features can help you analyze and troubleshoot your Arduino Due application.
It's important to note that using Atmel Studio and the Atmel ICE debugger is more advanced and requires a deeper understanding of the debugging process compared to the simple upload and run workflow of the Arduino IDE. If you are new to debugging or prefer a simpler development environment, the Arduino IDE may still be a more suitable choice for your Arduino projects.
Рекомендации по теме