0

AVR/Arduino Hardware Debugger on the Cheap
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

AVR/Arduino Hardware Debugger on the Cheap

by wholder on Wed Jan 31, 2018 10:17 pm

I’ve developed an Arduino sketch that runs on one Arduino and allows it to control and debug another Arduino, or an AVR-Series micro-controller such as an ATTiny85.  With some limitations, you can use the controlling Arduino to disassemble code, single step code, inspect the current value of registers. I/O ports and SRAM and run code with a hardware breakpoint set.

You can read more about my project at https://sites.google.com/site/wayneholder/debugwire and/or watch a short demo video at https://youtu.be/kI_Z78a_0y0

Wayne

wholder
 
Posts: 58
Joined: Mon Mar 16, 2009 2:09 pm

Re: AVR/Arduino Hardware Debugger on the Cheap

by wholder on Sun Feb 04, 2018 5:05 pm

Just a quick update, I've updated the code for both DebugWireDebugger and OnePinSerial to improve the automatic baud rate detection and the reliability of debugWire communication using OnePinSerial. The new code has successfully worked with an ATTiny85 running at 8 MHz. See: https://sites.google.com/site/wayneholder/debugwire

Wayne

wholder
 
Posts: 58
Joined: Mon Mar 16, 2009 2:09 pm

Re: AVR/Arduino Hardware Debugger on the Cheap

by wholder on Tue Feb 13, 2018 3:28 pm

I’ve posted a new, part 3 article on my debugger project, along with new code and an overview video.  The new code  is now able debug an Arduino UNO running at 16 MHz and also includes some bug fixes and enhancements.

 https://sites.google.com/site/wayneholder/debugwire3
 https://youtu.be/F1202b0l5DA

Wayne

wholder
 
Posts: 58
Joined: Mon Mar 16, 2009 2:09 pm

Please be positive and constructive with your questions and comments.