Arduino Forum

Development => Other Software Development => Topic started by: hellsnomad on Feb 08, 2011, 12:54 pm

Title: Debugging in Arduino
Post by: hellsnomad on Feb 08, 2011, 12:54 pm
Dear all, is there any program which can help in debugging the program?

Also are there any simulators for the Arduino?

Tnx

Title: Re: Debugging in Arduino
Post by: felis on Feb 10, 2011, 04:09 pm
I am using AVR Dragon/AVR Studio for debugging Arduino programs. Works quite well.
Title: Re: Debugging in Arduino
Post by: liuzengqiang on Feb 10, 2011, 05:24 pm
felis, does someone need a programmer to debug? I'm considering it. Is the software free? Thanks.
Title: Re: Debugging in Arduino
Post by: felis on Feb 10, 2011, 06:49 pm
AVR Studio is free. AVR Dragon is a debugger as well as programmer.
Title: Re: Debugging in Arduino
Post by: liuzengqiang on Feb 10, 2011, 06:51 pm
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?
Title: Re: Debugging in Arduino
Post by: felis on Feb 10, 2011, 06:55 pm
What is hash pointer?
Title: Re: Debugging in Arduino
Post by: westfw on Feb 11, 2011, 03:37 am
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...
Title: Re: Debugging in Arduino
Post by: robtillaart on Feb 12, 2011, 03:19 pm

noticed the other discussion in this subgroup - http://arduino.cc/forum/index.php/topic,50790.0.html
Title: Re: Debugging in Arduino
Post by: frank26080115 on Feb 12, 2011, 07:57 pm

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
Title: Re: Debugging in Arduino
Post by: liuzengqiang on Feb 12, 2011, 08:14 pm
Awesome! I'm saving up money right now! Dragon, see you in 10 years!
Title: Re: Debugging in Arduino
Post by: westfw on Feb 13, 2011, 06:43 am
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...
Title: Re: Debugging in Arduino
Post by: graynomad on Feb 13, 2011, 10:12 am
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
Title: Re: Debugging in Arduino
Post by: thehightechighcoder on May 17, 2018, 03:29 am
the arduino create wont load >:(  >:(  >:(  >:(
Title: Re: Debugging in Arduino
Post by: Robin2 on May 17, 2018, 09:45 am
@thehightechighcoder, you have asked your question in a seven years dead Thread. Seven years ago there was no such thing as Arduino Create.

There is a special section of the Forum for Arduino Create - ask you question there.

And if you want help you should provide a lot more information about what you have tried to do and exactly what happened.

...R