Eclipse, avarice, JDB usage?

View: New views
10 Messages — Rating Filter:   Alert me  

Eclipse, avarice, JDB usage?

by Kevin-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

   No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
are using AVR studio or nothing at all for debugging.  SO, my question
to this group is.  How?  Does anyone have any experience using the
following nifty tools all together?
avr-gcc
avarice
Eclipse
Eclipse AVR plugin

To debug a program?  It seems a lot of effort to create avarice to
connect to the ADB engine for debugging for no one to use it.  Is there
a group dedicated to that topic perhaps?

thanks,
DLC
--
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Ruud Vlaming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi DLC,

>  No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
> are using AVR studio or nothing at all for debugging.  SO, my question
> to this group is.  How?  Does anyone have any experience using the
> following nifty tools all together?

I use Eclipse (on linux), and gcc+avrdude as a toolchain.
I never debug (i trace) so i dunno about avarice. I even
never heard of the Eclipse AVR plugin. It seems nice, have
to try it some time.

gr
Ruud.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Hayn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I likewise am using Eclipse (but on windows [sigh]), along with
avr-gcc and avrdude. I trialed the AVR-Eclipse plugin some year or two
ago and found it very cumbersome for what it provided. I find the
eclipse Build Settings dialog very effective for managing project
settings by hand. I am also using the doxy plugin (magic for
documentation) and the svn plugin (once again magic for version
management). All together a fantastic suite of tools that provide me
with the most complete and intuitive dev environment I have experienced.
However, I am yet to play with the debugging facilities. For embedded
dev I tend to produce debug builds that provide debug facilities
onboard the target device.

Hayn.



Ruud Vlaming wrote:

> Hi DLC,
>
>>  No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
>> are using AVR studio or nothing at all for debugging.  SO, my question
>> to this group is.  How?  Does anyone have any experience using the
>> following nifty tools all together?
>
> I use Eclipse (on linux), and gcc+avrdude as a toolchain.
> I never debug (i trace) so i dunno about avarice. I even
> never heard of the Eclipse AVR plugin. It seems nice, have
> to try it some time.
>
> gr
> Ruud.
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> AVR-GCC-list@...
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>


----------------------------------------------------------------------
This e-mail message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Although this email is believed to be free of viruses, CryoLogic
accepts no responsibility for any consequences arising from its receipt
or use.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Dave N6NZ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dlc wrote:

> Hi all,
>
>   No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
> are using AVR studio or nothing at all for debugging.  SO, my question
> to this group is.  How?  Does anyone have any experience using the
> following nifty tools all together?
> avr-gcc
> avarice
> Eclipse
> Eclipse AVR plugin
>
> To debug a program?  It seems a lot of effort to create avarice to
> connect to the ADB engine for debugging for no one to use it.  Is there
> a group dedicated to that topic perhaps?

I usually end up discussing avarice on avrdude-dev, which may not be the
canonical place, but it seems like the right place to get information on
avarice is where ever Joerg can be found :)

Sorry to say I don't use Eclipse -- although I've been thinking I should
try it :)  I use avr-gcc + avarice + gdb on Linux, but the old-fashioned
command line way.

Not being familiar with Eclipse, this is going to be a dumb question...
but since avarice looks like any other gdb server isn't the hookup
relatively straight forward? (He says as he waits for the dull thud of
the clue stick.)

-dave

>
> thanks,
> DLC



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Kevin-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> dlc wrote:
>> Hi all,
>>
>>   No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
>> are using AVR studio or nothing at all for debugging.  SO, my question
>> to this group is.  How?  Does anyone have any experience using the
>> following nifty tools all together?
>> avr-gcc
>> avarice
>> Eclipse
>> Eclipse AVR plugin
>>
>> To debug a program?  It seems a lot of effort to create avarice to
>> connect to the ADB engine for debugging for no one to use it.  Is there
>> a group dedicated to that topic perhaps?
>
> I usually end up discussing avarice on avrdude-dev, which may not be the
> canonical place, but it seems like the right place to get information on
> avarice is where ever Joerg can be found :)
>
> Sorry to say I don't use Eclipse -- although I've been thinking I should
> try it :)  I use avr-gcc + avarice + gdb on Linux, but the old-fashioned
> command line way.
>
> Not being familiar with Eclipse, this is going to be a dumb question...
> but since avarice looks like any other gdb server isn't the hookup
> relatively straight forward? (He says as he waits for the dull thud of
> the clue stick.)

  You may be correct.  But I have not used GDB before.  I've used some
predecessors long ago in UNIX land, but when it comes to debuggers in
microcontrollers I have been strictly "printf" and/or an IDE holding my
hand.
  I've read that GDB can interface to Eclipse through a CDT(?) module,
which implies that avr-gdb will as well, but I have no clue how to
connect avarice to avr-gdb and have not yet found a "how to" so that I
can ask intelligent and informed questions.  So I too am awaiting a
thump on the head...

thanks,
DLC

> -dave
>
>>
>> thanks,
>> DLC
>
>


--
Dennis Clark
TTT Enterprises



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Dave N6NZ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis Clark wrote:

>> dlc wrote:
>>> Hi all,
>>>
>>>   No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
>>> are using AVR studio or nothing at all for debugging.  SO, my question
>>> to this group is.  How?  Does anyone have any experience using the
>>> following nifty tools all together?
>>> avr-gcc
>>> avarice
>>> Eclipse
>>> Eclipse AVR plugin
>>>
>>> To debug a program?  It seems a lot of effort to create avarice to
>>> connect to the ADB engine for debugging for no one to use it.  Is there
>>> a group dedicated to that topic perhaps?
>> I usually end up discussing avarice on avrdude-dev, which may not be the
>> canonical place, but it seems like the right place to get information on
>> avarice is where ever Joerg can be found :)
>>
>> Sorry to say I don't use Eclipse -- although I've been thinking I should
>> try it :)  I use avr-gcc + avarice + gdb on Linux, but the old-fashioned
>> command line way.
>>
>> Not being familiar with Eclipse, this is going to be a dumb question...
>> but since avarice looks like any other gdb server isn't the hookup
>> relatively straight forward? (He says as he waits for the dull thud of
>> the clue stick.)
>
>   You may be correct.  But I have not used GDB before.  I've used some
> predecessors long ago in UNIX land, but when it comes to debuggers in
> microcontrollers I have been strictly "printf" and/or an IDE holding my
> hand.
>   I've read that GDB can interface to Eclipse through a CDT(?) module,
> which implies that avr-gdb will as well, but I have no clue how to
> connect avarice to avr-gdb and have not yet found a "how to" so that I
> can ask intelligent and informed questions.  So I too am awaiting a
> thump on the head...
<thumper>
First google hit of the search terms: avr-gdb avarice
http://winavr.sourceforge.net/AVR-GDB_and_AVaRICE_Guide.pdf
</thumper>

That should get you started with avr-gdb.  gdb supports remote
debugging, and avarice simply fakes out gdb to look like a remote debug
target by running the IP traffic through a loopback port.

I don't know what a CDT module is.  If Eclipse uses the same protocol as
gdb to talk to remote debug targets then you should be in luck.

Hope that helps,

Dave

>
> thanks,
> DLC
>
>> -dave
>>
>>> thanks,
>>> DLC
>>
>
>



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Kevin-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Dennis Clark wrote:
>>> dlc wrote:
>>>> Hi all,
>>>>
>>>>   No one on AVR-chat appears to use avarice, avr-gcc and Eclipse.  All
>>>> are using AVR studio or nothing at all for debugging.  SO, my question
>>>> to this group is.  How?  Does anyone have any experience using the
>>>> following nifty tools all together?
>>>> avr-gcc
>>>> avarice
>>>> Eclipse
>>>> Eclipse AVR plugin
>>>>
>>>> To debug a program?  It seems a lot of effort to create avarice to
>>>> connect to the ADB engine for debugging for no one to use it.  Is
>>>> there
>>>> a group dedicated to that topic perhaps?
>>> I usually end up discussing avarice on avrdude-dev, which may not be
>>> the
>>> canonical place, but it seems like the right place to get information
>>> on
>>> avarice is where ever Joerg can be found :)
>>>
>>> Sorry to say I don't use Eclipse -- although I've been thinking I
>>> should
>>> try it :)  I use avr-gcc + avarice + gdb on Linux, but the
>>> old-fashioned
>>> command line way.
>>>
>>> Not being familiar with Eclipse, this is going to be a dumb question...
>>> but since avarice looks like any other gdb server isn't the hookup
>>> relatively straight forward? (He says as he waits for the dull thud of
>>> the clue stick.)
>>
>>   You may be correct.  But I have not used GDB before.  I've used some
>> predecessors long ago in UNIX land, but when it comes to debuggers in
>> microcontrollers I have been strictly "printf" and/or an IDE holding my
>> hand.
>>   I've read that GDB can interface to Eclipse through a CDT(?) module,
>> which implies that avr-gdb will as well, but I have no clue how to
>> connect avarice to avr-gdb and have not yet found a "how to" so that I
>> can ask intelligent and informed questions.  So I too am awaiting a
>> thump on the head...
> <thumper>
> First google hit of the search terms: avr-gdb avarice
> http://winavr.sourceforge.net/AVR-GDB_and_AVaRICE_Guide.pdf
> </thumper>
>
> That should get you started with avr-gdb.  gdb supports remote
> debugging, and avarice simply fakes out gdb to look like a remote debug
> target by running the IP traffic through a loopback port.
>
> I don't know what a CDT module is.  If Eclipse uses the same protocol as
> gdb to talk to remote debug targets then you should be in luck.
>
> Hope that helps,

  I had found this before, but it was so _old_ I'd disregarded it.  As I
read more it looks like a good jumping off point.  It points out places
I can get information - Like avarice (in this document) says it can only
support hardware break points.  DebugWire however only supports software
break points which means that you can't debug a DebugWire only device
with avarice, only the bigger ones that use JTAG.  <head shaking> I'll
have to decode the more current documents to see what gives there.  It
appears that many of the devices that I use from Atmel support neither
JTAG nor DebugWire, I'll have to upgrade.

thanks,
DLC


> Dave
>
>>
>> thanks,
>> DLC
>>
>>> -dave
>>>
>>>> thanks,
>>>> DLC
>>>
>>
>>
>
>


--
Dennis Clark
TTT Enterprises



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Parent Message unknown Re: Eclipse, avarice, JDB usage?

by Dave N6NZ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis Clark wrote:
>
>   I had found this before, but it was so _old_ I'd disregarded it.  As I
> read more it looks like a good jumping off point.  It points out places
> I can get information - Like avarice (in this document) says it can only
> support hardware break points.  DebugWire however only supports software
> break points which means that you can't debug a DebugWire only device
> with avarice, only the bigger ones that use JTAG.

Ah, well then, the document is old. Joerg added s/w breakpoints some
time ago, so first of all you can do breakpoints in DebugWire, and
secondly, on JTAG parts you can have more breakpoints than you have
breakpoint registers as avarice simply overflows into s/w breakpoints.
It still think you are out of luck with respect to data breakpoints,
however.

Hopefully the document is still correct w.r.t. getting the loopback port
working for remote debug.

>  <head shaking> I'll
> have to decode the more current documents to see what gives there.  It
> appears that many of the devices that I use from Atmel support neither
> JTAG nor DebugWire, I'll have to upgrade.

? What doesn't use either one or the other?

-dave




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: Eclipse, avarice, JDB usage?

by Kevin-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Dave N6NZ wrote:

> Dennis Clark wrote:
>>
>>   I had found this before, but it was so _old_ I'd disregarded it.  As I
>> read more it looks like a good jumping off point.  It points out places
>> I can get information - Like avarice (in this document) says it can only
>> support hardware break points.  DebugWire however only supports software
>> break points which means that you can't debug a DebugWire only device
>> with avarice, only the bigger ones that use JTAG.
>
> Ah, well then, the document is old. Joerg added s/w breakpoints some
> time ago, so first of all you can do breakpoints in DebugWire, and
> secondly, on JTAG parts you can have more breakpoints than you have
> breakpoint registers as avarice simply overflows into s/w breakpoints.
> It still think you are out of luck with respect to data breakpoints,
> however.
>
> Hopefully the document is still correct w.r.t. getting the loopback port
> working for remote debug.
>
>>  <head shaking> I'll
>> have to decode the more current documents to see what gives there.  It
>> appears that many of the devices that I use from Atmel support neither
>> JTAG nor DebugWire, I'll have to upgrade.
>
> ? What doesn't use either one or the other?

Some TINY ones (Tiny26) and some MEGA (Mega8535).  Time to change anyway.

DLC


> -dave
>
>

--
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

RE: Eclipse, avarice, JDB usage?

by Weddington, Eric-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From:
> avr-gcc-list-bounces+eweddington=cso.atmel.com@...
> [mailto:avr-gcc-list-bounces+eweddington=cso.atmel.com@nongnu.
> org] On Behalf Of Dave N6NZ
> Sent: Wednesday, July 02, 2008 9:54 AM
> To: dlc; avr-gcc-list@...
> Subject: Re: [avr-gcc-list] Eclipse, avarice, JDB usage?
>
> I usually end up discussing avarice on avrdude-dev, which may
> not be the
> canonical place, but it seems like the right place to get
> information on
> avarice is where ever Joerg can be found :)

Joerg can be found just about everywhere. ;-) He's on the avarice
mailing list too.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list