[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Writing to flash memory from bootloader
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] Writing to flash memory from bootloader |
Date: |
Mon, 08 Mar 2004 07:13:16 -0700 |
On 8 Mar 2004 at 0:19, Ganeriwal Saurabh wrote:
>
> hi,
>
> I have been trying to get the APIs provided in boot.h working on atmega128
> but without any success. I use the boot_test function defined in boot.h. I
> have added the following things to it.
>
> 1. Define the function to lie in .bootloader section
> void boot_test(void) BOOTLOADER_SECTION;
>
> 2. Define the starting point of the bootloader section to be 0xF000 in
> makefile.
> LDFLAGS = atmega128 -Wl,--section-start=.bootloader=0xF000
>
WARNING: The Atmel data sheets give the bootloader addresses as WORD addresses.
The
GNU tools use BYTE addresses. So loading the .bootloader section to 0xF000 is
incorrect.
Multiply the value by 2: 0x1E000
Eric
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list
- Re: [avr-gcc-list] TWI pullup resisor values, (continued)
Re: [avr-gcc-list] TWI pullup resisor values, Bob Paddock, 2004/03/06
- Re: [avr-gcc-list] TWI pullup resisor values, Ned Konz, 2004/03/06
- Re: [avr-gcc-list] TWI pullup resisor values, Douglas Dotson, 2004/03/07
- Re: [avr-gcc-list] TWI pullup resisor values, Ned Konz, 2004/03/07
- [avr-gcc-list] Re:TWI pullup resisor values - Problem solved, Douglas Dotson, 2004/03/07
- [avr-gcc-list] Writing to flash memory from bootloader, Ganeriwal Saurabh, 2004/03/08
- Re: [avr-gcc-list] Writing to flash memory from bootloader,
E. Weddington <=
- Re: [avr-gcc-list] Writing to flash memory from bootloader, Ganeriwal Saurabh, 2004/03/08