AVR/Arduino Hardware Debugger on the Cheap

Discussions on the software and hardware for Atmel's STK standard.

Moderator: phalanx

Post Reply
wholder
Posts: 41
Joined: Mon Dec 24, 2007 1:39 pm

AVR/Arduino Hardware Debugger on the Cheap

Post by wholder » Wed Jan 31, 2018 7:20 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 and modify 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: 41
Joined: Mon Dec 24, 2007 1:39 pm

Re: AVR/Arduino Hardware Debugger on the Cheap

Post by wholder » Sun Feb 04, 2018 2: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: 41
Joined: Mon Dec 24, 2007 1:39 pm

Re: AVR/Arduino Hardware Debugger on the Cheap

Post by wholder » Tue Feb 13, 2018 12: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

Post Reply