avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Problems programming flash


From: Martin Bammer
Subject: Re: [avr-gcc-list] Problems programming flash
Date: Mon, 7 Feb 2005 11:56:54 +0100
User-agent: KMail/1.7.1

Hi,

I tried the example in avr-libc docu -> DOESN'T WORK
I tried the example in boot.h -> DOESN'T WORK
I tried the example in ATMega.PDF -> DOESN'T WORK
I tried the Bootloader_Mega8.asm from Herbert Dingfelder (modified for Mega128 
by me) -> DOES WORK


I'm really out of ideas :-((((
Is maybe my makefile wrong??
Here the compile outputs:
avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields 
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes 
-Wa,-adhlns=bootloader.lst  -std=gnu99 bootloader.c -o bootloader.o

Linking: bootloader.elf
avr-gcc -mmcu=atmega128 -I. -g -Os -funsigned-char -funsigned-bitfields 
-fpack-struct -fshort-enums -Wall -Wstrict-prototypes 
-Wa,-adhlns=bootloader.o  -std=gnu99 bootloader.o    --output bootloader.elf 
-Wl,-Map=bootloader.map,--cref -lm -Wl,--section-start=.text=F000

Creating load file for Flash: bootloader.hex
avr-objcopy -O ihex -R .eeprom bootloader.elf bootloader.hex

Creating load file for EEPROM: bootloader.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex bootloader.elf bootloader.eep

Creating Extended Listing: bootloader.lss
avr-objdump -h -S bootloader.elf > bootloader.lss

Creating Symbol Table: bootloader.sym
avr-nm -n bootloader.elf > bootloader.sym



reply via email to

[Prev in Thread] Current Thread [Next in Thread]