Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Hardware debugging

Hardware debugging

Scheduled Pinned Locked Moved Hardware
1 Posts 1 Posters 746 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • axillentA Offline
    axillentA Offline
    axillent
    Mod
    wrote on last edited by axillent
    #1

    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:

    1. To install Atmel Studio and VisualMicro plugin
    2. To setup your arduino project with VisualMicro
    3. Compile project
    4. 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
    5. 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
    1Untitled.jpg

    You will probably also asked to recover source mappings:
    2Untitled.jpg

    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

    sense and drive

    1 Reply Last reply
    1
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    15

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular