[En-Nut-Discussion] Ethernut card (sample code)

Henrik Maier hmlists at focus-sw.com
Wed Jul 19 13:01:36 CEST 2006


AVRStudio can be used to build Nut/OS. The latest version contains the 
required features (linking nuinit etc.)

The tricky part is to configure all the paths correctly in the GCC 
plugin. I have a set of AVRStudio project for all Nut/OS samples. 
However they are not useful for general publishing as all path 
information is absolute and depends on your installation path of Nut/OS 
and of course on your target hardware too.

One could extend the Nut/OS configurator to create the project files 
from templates as it does currently for the ICC project files.

But again the format of AVRStudio project files might change from 
release to release (as it did in the past) so it will be a nightmare to 
maintain.


Henrik
http://www.proconx.com



Harald Kipp wrote:
> Raul,
> 
> I never tried AVR Studio with GCC and assume that some
> modifications to the plugin are required. In opposite to
> usual C programs, Nut/OS...
> 
> ...main() is running as a thread, started by the idle thread.
> ...main() is replaced by NutAppMain, because GCC does some
> stack manipulation on main entry.
> ...nutinit.o must be linked first.
> ...requires one or more defines (option -D) to properly
> compile for the specific target.
> 
> You may try compiling on the command line first as described in
> http://www.ethernut.de/pdf/enswm24e.pdf
> Also have a look at
> http://www.ethernut.de/en/documents/ntn-5_config.html
> 
> With this information you may be able to modify the GCC plugin.
> 
> Harald
> 
> At 11:52 18.07.2006 -0700, you wrote:
> 
>> ====================================================
>> ./../../../../avr-libc-1.4.4/crt1/gcrt1.S:51: undefined reference to 
>> `main'
>> make: *** [testgcc.elf] Error 1
>> Build failed with 1 errors and 0 warnings...
>> ====================================
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 
> 
> 




More information about the En-Nut-Discussion mailing list