Simple Dumping Monitor
library for ATmega168/ATmega328p based Arduino boards allows you to dump registers, timer states, interrupts and memories, either RAM, Flash and ROM.
Starting with version 0.6 simple symbolic debugger functions were added.
Being compiled, the library requires near 11 KBytes of Flash memory and requires less than 1 KByte of RAM (227 Bytes for dumpmon.pde
example, 377 Bytes for dumpmonDebug.pde
In order to use the library, you should download library's archive, unpack it to libraries
directory of the Arduino IDE Software directory. As result it would be libraries/DumpMon
There are two sketches inside the DumpMon/Examples directory:
- dumpmon.pde - to use the library as a sketch
- dumpmonBlink.pde - this is the Blink example with serial monitoring functions
- dumpmonDebug.pde - debugging functions example
After successful compilation and uploading of the sketch into Arduino board, open Serial Monitor window and set the correct USART speed (it uses 19200 in examples). Then use following commands to dump microcontroller states:
- ? - display help
- R - dump current registers states
- I - dump interrupt vectors table
- V - display available RAM
- T0 - dump Timer0 state
- T1 - dump Timer1 state
- T2 - dump Timer2 state
- M000 - dump RAM memory, beginning from address 000
- F0000 - dump Flash memory, beginning from address 0000
- O000 - dump ROM memory, beginning from address 000
- A - repeat previous command
- C - continue the dump output (for timers - show next timer, for registers and interrupts - repeat the output
Addresses are hexadecimal only. Comands and addresses could be entered in both upper and lower cases.
More about debugging functions of the library http://arduino.cc/forum/index.php/topic,51910.0.html
Download DumpMon http://sites.google.com/site/vanyambauseslinux/home/fajlovyj-menedzer/DumpMon-0.7.tar.gz
Attach below is version 0.1. Current version is 0.7. Please download DumpMon with link above.