[En-Nut-Discussion] Problems Programming Ethernut Starter Kit 2.1
Victor Behar
wayward at panafonet.gr
Fri Nov 11 18:23:47 CET 2005
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
More information about the En-Nut-Discussion
mailing list