[En-Nut-Discussion] Using avr-gdb with simulavr
Theodore A. Roth
troth at openavr.org
Tue Jun 15 19:00:13 CEST 2004
On Tue, 15 Jun 2004, Patrick Stadelmann wrote:
> Hi,
>
> Is it possible to use avr-gdb (or even better, Insight) together with
> simulavr to debug my Ethernut application ?
Simulavr is not complete enough to handle debugging an Ethernut app. :-(
> Alternatively, a solution involving running the code directly on the
> Ethernut 2 board would also be OK, but if I understand correctly, I
> need to buy the ICE JTAG interface for this to work...
Having a jtagice box is worth the money. If you can somehow get your
hands on a mega163 chip, you can make your jtagice box on the cheap
(I've got a hand made and the real box from atmel and the hand made one
works just as well and comsumes considerably less power). You can also
get a cheap jtagice box from Olimex.
Harald:
Has there been any thoughts of adding a rom monitor thread to NutOS? The
old avrmon (http://www.amelek.gda.pl/avr/avrmon/) could be a starting
place. I think it needed one uart and one timer (plus timer interrupt)
to work. It would probably be too much overhead to connect to gdb via
tcp/ip, but a serial port connection wouldn't be too bad. The gdb remote
serial protocol stub implementation could possibly be taken directly
from simulavr (although it GPL code, I would be willing to supply it to
NutOS under a BSD license if there's interest). There's two ways to
approach the stub: embed it completely into the rom monitor (might take
up to many resources though), or use a middle man (similar to avarice)
that handles the gdb RSP and talks to the Ethernut via a simpler
protocol.
---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: troth at jabber.org
More information about the En-Nut-Discussion
mailing list