[En-Nut-Discussion] Problem with Httpd Sample
Tolga Onbay
tolgaonbay at gmail.com
Mon May 8 18:33:45 CEST 2006
I changed the programmer from avr-uisp-stk500 to avr-dude. And the error was
disappeared. But there are problems.
In "make all" it gives warning as below :
httpserv.c:341: warning: assignment discards qualifiers from pointer target
type
Also "make burn" is not working properly. In output there is so many timeout
messages. I think there is a problem. I attached the outputs of "make all"
and "make burn".
I found the version of SP Duo as written in documentation. Its version is
2.1. Do i have to change something? And also i didn't install avrdude 5.0.
Do i have to install it?
Also I can't find "Generate Build Tree" in Build menu as written in Ethernut
Software Manual.
ethernut version : 4.0.3
WinAVR version : 20060421
Thanks
C:\ethernut-4.0.3\nutapp\httpd>make all
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Wstrict-pr
ototypes -Wa,-ahlms=httpserv.lst -DETHERNUT1 -D__HARVARD_ARCH__
-Ic:/ethernut-4.
0.3/nutbld/include -Ic:/ethernut-4.0.3/nut/include httpserv.c -o
httpserv.o
httpserv.c: In function `ShowSockets':
httpserv.c:341: warning: assignment discards qualifiers from pointer target
type
httpserv.c :344: warning: assignment discards qualifiers from pointer target
type
httpserv.c:347: warning: assignment discards qualifiers from pointer target
type
httpserv.c:350: warning: assignment discards qualifiers from pointer target
type
httpserv.c:353: warning: assignment discards qualifiers from pointer target
type
httpserv.c:356: warning: assignment discards qualifiers from pointer target
type
httpserv.c:359: warning: assignment discards qualifiers from pointer target
type
httpserv.c:362: warning: assignment discards qualifiers from pointer target
type
httpserv.c:365: warning: assignment discards qualifiers from pointer target
type
httpserv.c:368: warning: assignment discards qualifiers from pointer target
type
httpserv.c:371: warning: assignment discards qualifiers from pointer target
type
httpserv.c:374: 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
-Wstrict-pr
ototypes -Wa,-ahlms=urom.lst -DETHERNUT1 -D__HARVARD_ARCH__ -Ic:/ethernut-
4.0.3/
nutbld/include -Ic:/ethernut-4.0.3/nut/include urom.c -o urom.o
avr-gcc httpserv.o urom.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=
httpserv.map,
--cref -Lc:/ethernut-4.0.3/nutbld/lib c:/ethernut-4.0.3/nutbld/lib/nutinit.o
-l
nutpro -lnutos -lnutarch -lnutdev -lnutnet -lnutfs -lnutcrt -o httpserv.elf
avr-objcopy -R .eeprom -O ihex httpserv.elf httpserv.hex
rm httpserv.elf
C:\ethernut-4.0.3\nutapp\httpd>make burn
avrdude -p atmega128 -P com1 -c stk500v2 -V -U flash:w:httpserv.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | | 0%
0.00savrdude:
stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
Reading | ################# | 33%
20.00savrdude
: stk500_2_ReceiveMessage(): timeout
Reading | ################################################## | 100% 30.01s
avrdude: Device signature = 0x000000
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed
To disable this feature, specify the -D option.
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: current erase-rewrite cycle count is 252645135 (if being tracked)
avrdude: erasing chip
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: reading input file "httpserv.hex"
avrdude: input file httpserv.hex auto detected as Intel Hex
avrdude: writing flash (80432 bytes):
Writing | | 0%
0.00savrdude:
stk500_2_ReceiveMessage(): timeout
avrdude: stk500v2_paged_write: write command failed with 19
Writing | ################################################## | 100% 10.03s
avrdude: failed to write flash memory, rc=-1
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
make: *** [burn] Error -1073741510
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x42226c)
More information about the En-Nut-Discussion
mailing list