Pages: [1]   Go Down
Author Topic: Debugging arduino code with eclipse  (Read 266 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,
           I have eclipse configured properly in order to upload a file onto my arduino. But now I would like to know if it is possible to debug an arduino only with the eclipse ide?If so are there any instructions which outline how to achieve the same or do I need to buy a dragon or something of that sort.
Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The chips programmed for an Arduino board do not have debugWire enabled.  You'd need to enable that before you could use a debugger, which is going to interfere with the bootloader.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Dallas, TX USA
Offline Offline
Faraday Member
**
Karma: 67
Posts: 2702
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The chips programmed for an Arduino board do not have debugWire enabled.  You'd need to enable that before you could use a debugger, which is going to interfere with the bootloader.
But you don't need to use the bootloader, since you upload using debugWire.

I've used ddd to debug Arduino code using a Dragon on both the m328 and the Tiny85.
It is a a mess to get setup but once up and going, it works pretty well.
It should be much easier with the 1.5 IDE since it allows you to alter
the build tools.

--- bill
Logged

Pages: [1]   Go Up
Jump to: