[En-Nut-Discussion] Problem with Httpd Sample
Tolga Onbay
tolgaonbay at gmail.com
Mon May 8 17:43:04 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)
On 5/8/06, Harald Kipp <harald.kipp at egnite.de> wrote:
>
> Hello Tolga,
>
> At 17:36 08.05.2006 +0300, you wrote:
>
> >C:\ethernut-4.0.3\nutapp\httpd>make burn
> >uisp -dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200 -dpart=atmega128
> >--erase --upload if=httpserv.hex
> >process_begin: CreateProcess((null), uisp -dprog=stk500
> -dserial=/dev/ttyS0
> >-dsp
> >eed=115200 -dpart=atmega128 --erase --upload if=httpserv.hex, ...)
> failed.
> >make (e=2): The system cannot find the file specified.
> >make: *** [burn] Error 2
>
> You need to set the PATH to the Nut/OS Win Tools
> Directory
> http://www.ethernut.de/pdf/enswm24e.pdf
> Page 27
>
>
>
>
> >What is the problem? I tried with SPI cable of SPI&JTAG programmer which
> >comes with Starter's Kit.
>
> When using the latest SP Duo, you should use avrdude 5.0
> or later instead of uisp. Or you need to downgrade the
> SP Duo Adapter:
> http://www.ethernut.de/en/isp/spduo.html
>
>
>
> >Also I can't change the COM port. Because I don't know where to change.
> But
> >I don't think this is the problem.
>
> You can modify app/Makeburn.avr-uisp in the source tree.
> BURNPORT=/dev/ttyS0
> for com1
> BURNPORT=/dev/ttyS1
> for com2 etc.
>
> Harald
>
> _______________________________________________
> 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