[En-Nut-Discussion] Problems Programming Ethernut Starter Kit 2.1
José María Vallet
jose.vallet at hut.fi
Fri Nov 11 19:01:13 CET 2005
Hello Victor.
I don't know anything about the first problem that you have.
About the warnings, well, they are annoying, I know. The solution is to
downgrade your compiler, or easier the whole WinAVR distribution.
Basically the latest compiler version seems to be "too picky". Try to
downgrade to an older version. I don't remember exactly which one is the
one you need, but It has been discussed not so long ago, so you should
be able to find it on the archives of the list. Or it might be faster to
try a pair of older WinAVR versions... ;-)
Good luck!
Victor Behar wrote:
> Greetings to all,
>
> I am using Ethernut Starter Kit 2.1 with WinAVR and AVR Studio 4.11 SP3
> and I have problems programming the board. A description of symptoms follows
> ...
>
> -when i connect JTAG of SP Duo to COM1 and run AVRStudio, the AVRStudio
> "sees" it as
> (Platform) STK500 or AVRISP and requests firmware downgrade from 31.32 to
> 2.01 ?
> I would expect to be able to connect as JTAGICE mkII.
>
> -however, fuses can be read or programmed without a problem (in this STK500
> mode)
> -hex files looks like they can be downloaded and verified when they are
> "simple".hex (or the example led01.hex),
> -others like httpd.hex get downloaded but AVRStudio returns "Problems
> encountered..."
> -but even with very simple code that sets bits of PORTD, I can't get it
> work.
>
> ----------------------------------------------------------------------------
> --------------------------------
>
> The other issue is when I compile httpd.c I get...
>
>
>>"make.exe" all
>
> avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstric
> t-prototypes -Wa,-ahlms=httpserv.lst -D__HARVARD_ARCH__ -DETHERNUT2 -Ic:/eth
> ernut-3.9.8/nutbld/include -Ic:/ethernut-3.9.8/nut/include httpserv.c -o
> httpserv.o
> httpserv.c: In function `ShowSockets':
> httpserv.c:311: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:314: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:317: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:320: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:323: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:326: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:329: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:332: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:335: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:338: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:341: warning: assignment discards qualifiers from pointer target
> type
> httpserv.c:344: warning: assignment discards qualifiers from pointer target
> type
> crurom -r -ourom.c sample
> avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall -Wstric
> t-prototypes -Wa,-ahlms=urom.lst -D__HARVARD_ARCH__ -DETHERNUT2 -Ic:/ethernu
> t-3.9.8/nutbld/include -Ic:/ethernut-3.9.8/nut/include urom.c -o urom.o
> avr-gcc httpserv.o
> urom.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=httpserv.map,--cref -Lc:/eth
> ernut-3.9.8/nutbld/lib c:/ethernut-3.9.8/nutbld/lib/nutinit.o
> c:/ethernut-3.9.8/nutbld/dev/lanc111.o -lnutnet -lnutpro -lnutfs -lnutos -ln
> utdev -lnutnet -lnutcrt -o httpserv.elf
> avr-objcopy -R .eeprom -O ihex httpserv.elf httpserv.hex
> rm httpserv.elf
>
>
>>Process Exit Code: 0.......
>
>
>
>
> so, what do you think of these warnings?
>
>
> Thank you
>
>
> Regards,
>
> Victor Behar
>
> _______________________________________________
> 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