Skip to content
Source level debugger for Arduino - GDB stub for Atmega328 microcontroller used in Arduino Uno.
C C++ Batchfile Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
arduino Add info about lock bits for bootloader. Add revision info to readme. Jul 12, 2019
avr8-stub Add option to define baudrate for debugger. For Arduino CLI also samp… Jun 17, 2019
bootloader Add info about lock bits for bootloader. Add revision info to readme. Jul 12, 2019
doc Update doc with info about Arduino library and VS code use. Jun 26, 2019
examples Merge branch 'master' of https://github.com/jdolinay/avr_debug Jul 13, 2018
hub4com-2.1.0.0-386 Initial version in git. Jun 15, 2015
.gitignore Initial version in git. Jun 15, 2015
license.txt Initial version in git. Jun 15, 2015
readme.txt
start_proxy.bat Testing with full flash (code near the top of flash memory) Jan 13, 2017
start_proxy_nano.bat add bat file to start TCP-to-Serial proxy for Arduino nano. Jul 13, 2018

readme.txt

Source level debugger for Arduino
Created by Jan Dolinay, June 2015
Works for Arduino Uno and Nano(ATmega328) and Arduino Mega.

ARDUINO LIBRARY NOTE
To use this debugger as Arduino library, go to the arduino/library sub-folder. The avr-debugger is the Arduino library
which you can copy to your Arduino libraries folders to use it.
For more information please read the readme.txt file in arduino/library/avr-debugger.


Introduction
-------------
This is debugger for Arduino based on GNU Debugger (GDB). 
The debugger is implemented using GDB stub mechanism. This means a piece of code (stub) is added 
to your Arduino program. This code then communicates with the GDB debugger. 
No external programmer or modification of the Arduino board is required. 
Eclipse can be used as a graphical frontend for debugging.
For more information and tutorial please see the manual in /doc directory.



Revision History
----------------
July 2019
+ Created Arduino hardware configuration to make it possible to burn the bootloader from Arduino IDE.

June 2019
+ Created Arduino library to make it easier to use this debugger.

July 2018
+ Fixed bug in bootloader - it really works now with avrdude.
+ Fixed bug in stub which prevented GDB from stopping running program in some cases.

January 2018
+ Code tested and updated to work with current toolchain and eclipse.
+ Documentation updated.

June 2017
+ Added support for writing breakpoints to flash memory including special bootloader.
+ Added support for loading the program via debugger - without AVRDude.

January 2017
+ Added support for Arduino Mega board with ATmega1280 and ATmega2560 MCUs.
+ Example programs reorganized and renamed. The name now contains Arduino variant so that example 
  projects for different variants can be imported into single eclipse workspace.
+ Fixed bug for ATmega328 (Uno) - the debugger now works for programs larger than 16 kB.
+ Documentation updated to describe also direct serial communication with the debugger (without the TCP-to-COM proxy) 
  which seems to work on Windows 10 and with some boards also on Windows 7.


June 2015
First release


Contents of this package:
-------------------------
avr8-stub	- source code of the debug driver (gdb stub for ATmega328 used in Arduino Uno)
arduino     - arduino library and some other code.
doc 		- documentation with tutorials.
examples 	- example projects which can be imported into your eclipse workspace. See documentation for instructions on use.
hub4com-2.1.0.0-386 - hub2com tcp-serial proxy from http://sourceforge.net/p/com0com/news/2012/06/hub4com-v2100-released
start_proxy.bat - convenience script to start the com2tcp proxy.


Notes
------
You can also start the tcp-serial proxy directly from command line:
com2tcp.bat --baud 115200 \\.\COM1 11000
(The example command assumes Arduino on port COM1; GDB connecting to localhost at port 11000).


License
--------
This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
You can’t perform that action at this time.