avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Re: [avrdude-dev] [RFC] avrdude FeatureRequestandCall


From: Colin O'Flynn
Subject: Re: [avr-gcc-list] Re: [avrdude-dev] [RFC] avrdude FeatureRequestandCall for Volunteers
Date: Mon, 12 Mar 2007 13:08:32 -0300
User-agent: KMail/1.8.2

Hey,

How do I relocate the sections to the correct address? In the file I want to 
add fuses to, I have:

const unsigned char lfuse __attribute__((section (".lfuse"))) = 0xFF; 
const unsigned char hfuse __attribute__((section (".hfuse"))) = 0x02; 
const unsigned char efuse __attribute__((section (".efuse"))) = 0xA4; 

But I get:

Linking: main.elf
avr-gcc -mmcu=atmega16 -I. -gstabs -DF_CPU=3680000UL  -O0 -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes 
-Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF .dep/main.elf.d main.o --output 
main.elf -Wl,-Map=main.map,--cref  -Wl,-u,vfprintf -lprintf_min 
-Wl,-u,vfscanf -lscanf_min
/opt/avr/lib/gcc/avr/3.4.4/../../../../avr/bin/ld: section .lfuse [00000bb4 -> 
00000bb4] overlaps section .data [00000bb4 -> 00000bb7]
/opt/avr/lib/gcc/avr/3.4.4/../../../../avr/bin/ld: section .hfuse [00000bb5 -> 
00000bb5] overlaps section .data [00000bb4 -> 00000bb7]
/opt/avr/lib/gcc/avr/3.4.4/../../../../avr/bin/ld: section .efuse [00000bb6 -> 
00000bb6] overlaps section .data [00000bb4 -> 00000bb7]
make: *** [main.elf] Error 1

Thanks,

 -Colin




reply via email to

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