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 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
Arduino Nano Every problem
Hardware • 1 Feb 2020, 09:18 • hakha4 5 Dec 2023, 02:21