[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Writing bootloader section on XMega128A1
From: |
Johannes Bauer |
Subject: |
Re: [avr-chat] Writing bootloader section on XMega128A1 |
Date: |
Wed, 26 May 2010 09:12:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 |
Hi Dave,
On 25.05.2010 17:07, Dave Hylands wrote:
>> Ehrm - isn't the size of the bootloader of the X128 8kB? The Xmega
>> Datasheet says so at page #1 and so does the avrdude configuration:
>
> So what did you pass in as the bootloader address when you ran the link stage?
0x20000.
> It would be useful to see the output of
>
> avr-objdump -h your-file.elf
Bootloader: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .bootloadertrampoline 0000001e 00020000 00020000 00000094 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .text 00001400 00020050 00020050 000000b2 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .bss 00000030 00802000 00802000 000014b2 2**0
ALLOC
3 .stab 0000510c 00000000 00000000 000014b4 2**2
CONTENTS, READONLY, DEBUGGING
4 .stabstr 0000d6bc 00000000 00000000 000065c0 2**0
CONTENTS, READONLY, DEBUGGING
However, since I'm writing a binary file directly (which does not
include addresses), the data should be automatically relocated to
0x20000, shouldn't it?
Kind regards,
Johannes