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

[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


reply via email to

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