Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

AVR Debugger

AVR Debugger

2011-01-04 by Chuck Hackett

I just came across the “Code::Blocks” open source cross-platform graphical IDE.  So
far it seems to indicate that it runs on Windows, is extensible (via scripts) and
supports GDB, etc.

Anyone using it with WinAVR et. al.?
 
Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck

Re: [AVR-Chat] AVR Debugger

2011-01-05 by Moses McKnight

I used it for one AVR project.  I work mostly in Linux and it runs there 
as well, but I also used it in windows with WinAVR.  I did not use GDB 
so I can't comment on that.  Code::Blocks is a nice IDE - in general I 
like it better than Eclipse, but there is another IDE called CodeLite 
that is faster and may already be better.  I played with it some for ARM 
but haven't really used it yet.  Here's a tutorial on setting up a GCC 
environment for ARM Cortex using CodeLite for the IDE.  Setting it up 
for WinAVR should be pretty similar I would think.

http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/LPC1343Toolchain.aspx

Moses
Show quoted textHide quoted text
On 01/04/2011 05:26 PM, Chuck Hackett wrote:
> I just came across the “Code::Blocks” open source cross-platform graphical IDE.  So
> far it seems to indicate that it runs on Windows, is extensible (via scripts) and
> supports GDB, etc.
>
> Anyone using it with WinAVR et. al.?
>
> Cheers,
>
> Chuck Hackett
> "Good judgment comes from experience, experience comes from bad judgment"
> 7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck
>
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

Re: AVR Debugger

2011-01-06 by Eugene

Hello Chuck,
  I'm deeply impressed  with your railroad simulation hobby :). It should be really interesting to look at it in real life.

  I use WinAvr in a line of projects, but I don't use any software pc debugger or(and) any IDE over WinAvr.

Best regards,
Eugene Sorokin


--- In AVR-Chat@yahoogroups.com, "Chuck Hackett" <egroupscdh@...> wrote:
Show quoted textHide quoted text
>
> I just came across the "Code::Blocks" open source cross-platform graphical IDE.  So
> far it seems to indicate that it runs on Windows, is extensible (via scripts) and
> supports GDB, etc.
> 
> Anyone using it with WinAVR et. al.?
>  
> Cheers,
> 
> Chuck Hackett
> "Good judgment comes from experience, experience comes from bad judgment"
> 7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck
>

RE: [AVR-Chat] Re: AVR Debugger

2011-01-08 by Chuck Hackett

> From: Eugene
> 
> Hello Chuck,
>   I'm deeply impressed  with your railroad simulation hobby :). It should be
> really interesting to look at it in real life.

Simulation?  Check out:

http://www.youtube.com/watch?v=YRadVDw5dBA :-)

>   I use WinAvr in a line of projects, but I don't use any software pc debugger
> or(and) any IDE over WinAvr.

No debugger?  Boy, I wish I could write software without bugs! :-)

I am giving Code::Blocks a try at the moment as an IDE.  So far I like it but I
haven't tried using the debugger interface yet.  I'll look into that soon.  As I
understand it, it uses GDB/AVARICE which I have never setup (I use JTAG through
AVRStudio at the moment).
 
Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck

RE: [AVR-Chat] AVR Debugger

2011-01-08 by Chuck Hackett

> From: Moses McKnight
> 
> I used it for one AVR project.  I work mostly in Linux and it runs there
> as well, but I also used it in windows with WinAVR.  I did not use GDB
> so I can't comment on that.  Code::Blocks is a nice IDE - in general I
> like it better than Eclipse, but there is another IDE called CodeLite
> that is faster and may already be better.  I played with it some for ARM
> but haven't really used it yet.  Here's a tutorial on setting up a GCC
> environment for ARM Cortex using CodeLite for the IDE.  Setting it up
> for WinAVR should be pretty similar I would think.
> 
> http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/LPC1343Toolchain.as
> px

Thanks Moses, I'm giving Code::Blocks a try at the moment.  I've taken a quick look
at CodeLite on the web and it looks like it's in the same ballpark.  I'll check it
out also.

Question to you and others:  Do you know of a "FreeRTOS Aware" plugin/scripts,
macros, etc. for either Code::Blocks or CodeLite that can display things like tasks
running, stack, the TCB's, etc.?
 
Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck

Re: AVR Debugger

2011-01-09 by Eugene

> Simulation?  Check out:
> 
> http://www.youtube.com/watch?v=YRadVDw5dBA :-)

Coool :))) I was exactly not correct :))
Is there real hand-made steam engine?

> 
> No debugger?  Boy, I wish I could write software without bugs! :-)
> 

I've told about IDE+debugger, sure, I use serial port to get out some kind of debug info and ascii terminal or homemade tool to visualize signals, but often I try algorithms on PC and after full debugging i put them in real device.

> As I
> understand it, it uses GDB/AVARICE which I have never setup (I use JTAG through
> AVRStudio at the moment).
>  
  It seems to be like that, i think nobody will write new debugger if there already something exists.


Best regards, Eugene

Re: [AVR-Chat] Re: AVR Debugger

2011-01-09 by Clark Martin

On Jan 9, 2011, at 6:26 AM, Eugene wrote:

> > 
> > No debugger? Boy, I wish I could write software without bugs! :-)
> > 
> 
> I've told about IDE+debugger, sure, I use serial port to get out some kind of debug info and ascii terminal or homemade tool to visualize signals, but often I try algorithms on PC and after full debugging i put them in real device.
> 

That is what I do, use the serial port when I can, in at least one case I used an LED.  For one project I'm using just the TWI for communications but for development I enabled the serial port.  Later I deactivated the serial port and used it's two pins for an additional channel of control.  I had enough IO with the serial port to test everything out.

The trickiest thing is debugging interrupt routines.  I usually set a flag and report it's status in the foreground via the serial port.

In one case I took a portion of code in one project to implement the singular function in another and it worked the first time which was good as the new project was on an 8 pin Tiny AVR.

,_._,___

Clark Martin
Redwood City, CA, USA
Macintosh / Internet Consulting

"I'm a designated driver on the Information Super Highway"



[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.