element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Debugging ATMEGA328
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 402 subscribers
  • Views 1273 views
  • Users 0 members are here
  • atmega328
  • debugging
  • uno
  • arduino
Related

Debugging ATMEGA328

Former Member
Former Member over 13 years ago

I´m about to start using the Arduino UNO for a M2M project. My first concern is about debugging.

 

Does anyone know if its possible to program and DEBUG the ATMEGA328 using some Atmel debugger (AVR Dragon, AVR JTAGICE mkII or AVR ONE!), the AVR Studio 5.1 and the ISP interface on the Arduino UNO board?

 

Thanks!

Gabriel Cysne

  • Sign in to reply
  • Cancel
Parents
  • fustini
    0 fustini over 13 years ago

    H Gabriel,

     

    I'm glad that you asked this question.  I enjoy the ease of working with the Arduino platform, but at times I really do miss the ability to do step-by-step debugging like I've done with other microcontrollers I've used.

     

    I had looked awhile ago but didn't find much info on how to use a debugger with an Arduino.  However, looking again just now, I did find this interesting approach:

     

    http://husks.wordpress.com/2010/02/21/modify-an-arduino-for-debugwire/

     

    The Arduino has a handy auto-reset feature but this causes problem for debugWIRE which runs over the reset line.  He removes the capacitor and then is able to debug with an AVR Dragon.  He does also have a follow-up for the Duemilanove (2009) Arduino:

     

    http://husks.wordpress.com/2010/05/27/the-arduino-duemilanove-with-atmega328-and-that-reset-line/

     

    The UNO was release after these posts, so I think a inspection of the schematic would be needed.  But I think that this should probably work.

     

    I do have UNOs, Duemilanove's and an AVR Dragon so I think I might try this in a week or two... or sooner if I run into a problem that a rat's nest of print statements won't solve.

     

    Please let me know how you proceed and thanks for raising this subject!

     

    Cheers,

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • fustini
    0 fustini over 13 years ago

    H Gabriel,

     

    I'm glad that you asked this question.  I enjoy the ease of working with the Arduino platform, but at times I really do miss the ability to do step-by-step debugging like I've done with other microcontrollers I've used.

     

    I had looked awhile ago but didn't find much info on how to use a debugger with an Arduino.  However, looking again just now, I did find this interesting approach:

     

    http://husks.wordpress.com/2010/02/21/modify-an-arduino-for-debugwire/

     

    The Arduino has a handy auto-reset feature but this causes problem for debugWIRE which runs over the reset line.  He removes the capacitor and then is able to debug with an AVR Dragon.  He does also have a follow-up for the Duemilanove (2009) Arduino:

     

    http://husks.wordpress.com/2010/05/27/the-arduino-duemilanove-with-atmega328-and-that-reset-line/

     

    The UNO was release after these posts, so I think a inspection of the schematic would be needed.  But I think that this should probably work.

     

    I do have UNOs, Duemilanove's and an AVR Dragon so I think I might try this in a week or two... or sooner if I run into a problem that a rat's nest of print statements won't solve.

     

    Please let me know how you proceed and thanks for raising this subject!

     

    Cheers,

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 13 years ago in reply to fustini

    Hello Drew!

     

    Thanks for answering. I totally agree with you... print statments at the serial can´t be considered debug.

     

    Before I post this question, I did a little search myself and came to same articles you found. But just as you said, the UNO was release after, and my concern is just about the UNO board. image

     

    I will order my UNO board and hopefully debug on it some day. image

    Please let me know if you have any news!

     

    Thanks again!

    Gabriel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube