Hardware debugging
-
Just got success with hardware debugging using my JTAGICE3. Same way can be used for other atmel's debuggers
The reason to look for solution came from this project http://forum.mysensors.org/topic/957/red-green-matrix-information-panel-with-real-time-clock
Because there is no usual way to upload arduino sketch using JTAG I have to look for a solution based on Atmel Studio.
The following steps are needed:- To install Atmel Studio and VisualMicro plugin
- To setup your arduino project with VisualMicro
- Compile project
- Launch a second instance of AtmelStudio and go to File/Open menu. Select Open Object File for Debugging and find out the .ELF file inside the Debug folder inside Arduino project compiled by VisualMicro. Select "link to file" instead of copy
- Save new atmel Studio project, it will be a project for debug. Go to Project/Options/Tool and choose your debugging tool. Save project.
After all this you will be able to debug your arduino using debugWire (atmega328) or JTAG (mega).
After recompilation of the project your files will be reloaded in your debug project after pressing reload
You will probably also asked to recover source mappings:
Made your choice about mapping. You do not need to recover mappings to sources you are not interesting in. For example on my screen shot I have no interest to debug arduino internal sources this why I just press Finish
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
Newbie questions
Hardware • 14 Feb 2025, 20:03 • magwas 14 Feb 2025, 20:03 -
Best VOC sensor for detecting a wide range of VOC's?
Hardware • 26 Oct 2023, 23:59 • NeverDie 18 Nov 2023, 01:41 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
Sensor to detect marijuana vape/smoke
Hardware • 21 Jan 2025, 06:36 • Hellmark 25 Feb 2025, 20:56