0
Offline
Full Member
Karma: 1
Posts: 110
Arduino rocks
|
 |
« on: February 08, 2011, 06:54:00 am » |
Dear all, is there any program which can help in debugging the program?
Also are there any simulators for the Arduino?
Tnx
|
|
|
|
|
Logged
|
|
|
|
|
Louisville, CO
Offline
Full Member
Karma: 2
Posts: 172
Arduino rocks
|
 |
« Reply #1 on: February 10, 2011, 10:09:23 am » |
I am using AVR Dragon/AVR Studio for debugging Arduino programs. Works quite well.
|
|
|
|
|
Logged
|
/felis
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 35
Posts: 5939
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #2 on: February 10, 2011, 11:24:40 am » |
felis, does someone need a programmer to debug? I'm considering it. Is the software free? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Louisville, CO
Offline
Full Member
Karma: 2
Posts: 172
Arduino rocks
|
 |
« Reply #3 on: February 10, 2011, 12:49:41 pm » |
AVR Studio is free. AVR Dragon is a debugger as well as programmer.
|
|
|
|
|
Logged
|
/felis
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 35
Posts: 5939
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #4 on: February 10, 2011, 12:51:54 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?
|
|
|
|
|
Logged
|
|
|
|
|
Louisville, CO
Offline
Full Member
Karma: 2
Posts: 172
Arduino rocks
|
 |
« Reply #5 on: February 10, 2011, 12:55:14 pm » |
What is hash pointer?
|
|
|
|
|
Logged
|
/felis
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5454
Strongly opinionated, but not official!
|
 |
« Reply #6 on: February 10, 2011, 09:37:15 pm » |
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...
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 90
Posts: 9429
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #7 on: February 12, 2011, 09:19:12 am » |
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 0
Posts: 592
|
 |
« Reply #8 on: February 12, 2011, 01:57:32 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
|
|
|
|
|
Logged
|
I'm an electrical engineering student. I designed the USnooBie (V-USB dev kit) which is sold at Seeed Studio 
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 35
Posts: 5939
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #9 on: February 12, 2011, 02:14:53 pm » |
Awesome! I'm saving up money right now! Dragon, see you in 10 years!
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5454
Strongly opinionated, but not official!
|
 |
« Reply #10 on: February 13, 2011, 12:43:44 am » |
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...
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 73
Posts: 6838
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #11 on: February 13, 2011, 04:12:04 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
|