Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Finally, really, actually, starting off with C

2009-01-07 by wagnerj@proaxis.com

Got a Mac, also, and I'd like to use AVREclipse instead of
WinAVR-AVRStudio/Windoze/VMWare but have been a bit afraid of it. Could I
contact you off-list for some guidance?

Jim Wagner

> I'm a Mac user <weathering the hisses and boos> so I don't have
> AVRStudio for my avr-gcc stuff.  I use Eclipse with the AVREclipse
> plugin for my dev environment.  I say all of this because the AVREclipse
> plugin builds the make file automagically like any other "hand-holding"
> IDE.  You do have control over your gcc compiler options however so the
> big deal is the auto makefile creation and a nice editor.  The plugin
> also supplies a nice device description tool that gives the port and
> register names and addresses and lists all of the IRQ sources and the
> GCC handles to use them.
>
> The IDE has a "tools" section where I have avrdude configured so a
> program of a part is just a push of a "button".  Others have gotten GDB
> and Avarice working in the IDE as well, but I've not tried that - I
> don't use a programmer with debug capability, yet.
>
> You can get Eclipse IDE for Windows too if that is your platform of
> choice, or Linux as well.  It works the same in all environments (JAVA
> based).
>
> DLC
>
> David VanHorn wrote:
>>> You can declare main like this instead:
>>>
>>> void main( void )
>>> {
>>>   ....
>>> }
>>>
>>> If you compile your code using the -ffreestanding option, then the
>>> compiler won't complain that main doesn't return an int.
>>
>> Ok, I'd already found that I can declare the return as void, but the
>> compiler does whine about it.
>> I'm ok with that, although I really do prefer to have no warnings or
>> errors.
>>
>> I'm definitely not ready to mess with makefiles yet, but I'll keep that
>> in mind.
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>
> --
> -------------------------------------------------
> Dennis Clark          TTT Enterprises
> www.techtoystoday.com
> -------------------------------------------------
>

Attachments

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.