[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Fwd: RE: [avr-chat] BOOTLOADER on ATMega644]
From: |
Weddington, Eric |
Subject: |
RE: [Fwd: RE: [avr-chat] BOOTLOADER on ATMega644] |
Date: |
Mon, 22 Dec 2008 08:31:20 -0700 |
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Robert von Knobloch
> Sent: Monday, December 22, 2008 6:59 AM
> To: address@hidden
> Subject: [Fwd: RE: [avr-chat] BOOTLOADER on ATMega644]
>
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden
> > On Behalf Of Robert von Knobloch
> > Sent: Monday, December 22, 2008 2:56 AM
> > To: address@hidden
> > Subject: [avr-chat] BOOTLOADER on ATMega644
> >
> > Hello,
> >
> > According to the data sheet, the default bootloader area is 0x7000
> > 0x7FFF.
>
> In WORD ADDRESSES. This is a common user mistake because the
> data sheet specifies the size of the bootloader area in WORD
> ADDRESSES. The toolchain works on BYTE ADDRESS. Multiply by
> two and your starting address is 0xE000, which is the correct address.
>
> Eric
>
> Yes Eric, but avr-gcc wants to put it somewhere else entirely:
>
> /opt/cross/lib/gcc/avr/4.1.2/../../../../avr/bin/ld: section
> .bootloader
> [00002502 -> 000025ad] overlaps section .data [00002502 -> 0000289d]
>
> Assuming word address then it wants to put both .data and
> .bootloader at 0x4A04 Bytes !!!
>
Did you follow the description in the avr-libc user manual on how to declare
data in the Program Memory? There is also a tutorial on the AVR Freaks website
(www.avrfreaks.net) website, in the AVR Tutorials Forum.