[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: Segmentation Fault - uisp version 20020626
From: |
Klaus Rudolph |
Subject: |
[avr-gcc-list] Re: Segmentation Fault - uisp version 20020626 |
Date: |
Wed, 31 Jul 2002 18:03:31 +0200 |
Sorry, but can´t help you at the moment.
Why you ask direct me, I am not uisp developer. Where
you pick up the address? I´f done "only" an update
for newer stk500 firmware versions. :-)
At the moment I run in trouble with my
jtag ice. Nothing works under linux :-) And nothing
under windows, because the firmware of jtagice is to old. If
I will update it, I think I have to reprogramm the
avarice :-(
If I find a solution for jtag I maybe can help you :-)
Sorry for my short time in the moment.
Regards
Klaus
Grahame Kelly wrote:
>
> Hi.
>
> I get the following segmentation fault whenever I get close to 2048 bytes
> of flash code upload. as below shows.
>
> /opt/AVR/bin/avr-gcc -c -g -Os -Wall -Wstrict-prototypes -Wa,-ahlms=2313.lst
> -mmcu=at90s2313 -I. 2313.c -o 2313.o
> /opt/AVR/bin/avr-gcc -c -g -Os -Wall -Wstrict-prototypes
> -Wa,-ahlms=buart.lst -mmcu=at90s2313 -I. buart.c -o buart.o
> /opt/AVR/bin/avr-gcc 2313.o buart.o -Wl,-Map=2313.map,--cref
> -mmcu=at90s2313 -o 2313.elf
> /opt/AVR/bin/avr-objcopy -O ihex -R .eeprom 2313.elf 2313.obj
> /opt/AVR/bin/avr-objcopy -O ihex -R .eeprom 2313.elf 2313.hex
> /opt/AVR/bin/avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load"
> --change-section-lma .eeprom=0 -O ihex 2313.elf 2313.eep
> /opt/AVR/bin/avr-size 2313.elf
> text data bss dec hex filename
> 2028 28 24 2080 820 2313.elf
> Errors: none
> rm buart.o
>
> ---------------------------------
>
> uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=at90s2313 --erase;
> uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=at90s2313 --upload
> if=./2313.hex;
> uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=at90s2313 --verify
> if=./2313.hex
>
> results in:
>
> Atmel AVR AT90S2313 is found.
> Atmel AVR AT90S2313 is found.
> Uploading: flash
> ./goburn2313: line 3: 2939 Segmentation fault
> uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=at90s2313 --upload
> if=./2313.hex
> Atmel AVR AT90S2313 is found.
> Verifying: flash
>
> Any way to get every last byte of flash usable ?
> Any help much appreciated.
>
> --
> Cheers. Grahame
avr-gcc-list at http://avr1.org