Go Down

Topic: Debugging in Arduino (Read 6600 times) previous topic - next topic

hellsnomad

Dear all, is there any program which can help in debugging the program?

Also are there any simulators for the Arduino?

Tnx


felis

I am using AVR Dragon/AVR Studio for debugging Arduino programs. Works quite well.

liuzengqiang

felis, does someone need a programmer to debug? I'm considering it. Is the software free? Thanks.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

felis

AVR Studio is free. AVR Dragon is a debugger as well as programmer.

liuzengqiang

So if I had the AVR Dragon I would be able to poke around in arduino SRAM and Flash, stack and hash pointers, flags and unassembled code, correct?
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

felis


westfw

I have relatively good luck debugging Arduino sketches (well, libraries) by compiling on a unix system and poking at them with a standard debugger (gdb, etc)  You have to create a phony framework of arduino core routines, and watch out for differences in the size of "int", but it is pretty helpful...

robtillaart


noticed the other discussion in this subgroup - http://arduino.cc/forum/index.php/topic,50790.0.html
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

frank26080115


So if I had the AVR Dragon I would be able to poke around in arduino SRAM and Flash, stack and hash pointers, flags and unassembled code, correct?


Yes

liuzengqiang

Awesome! I'm saving up money right now! Dragon, see you in 10 years!
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

westfw

Quote
I'm saving up ... Dragon, see you in 10 years!

A dragon is only about $50...
I wish the debug protocol were public, and an Arduino could be used to debug another arduino...

Graynomad

Quote
an Arduino could be used to debug another arduino...

That's exactly what I'm working on right now, well not a debugger as per the Dragon/JTAG, but a monitor.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Go Up