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

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

RE: [avr-gcc-list] Table in bootloader section


From: Uccelli Danilo
Subject: RE: [avr-gcc-list] Table in bootloader section
Date: Thu, 23 Oct 2003 09:23:23 +0200

-----Original Message-----
From: Marko Panger AGB Lab [mailto:address@hidden
Sent: Thursday, October 23, 2003 8:26 AM
To: Avr-Gcc List
Subject: Re: [avr-gcc-list] Table in bootloader section


If I understend well at this time there is no possibility to place a 
table in the bootloader section, because If I define a table as 
prog_char, the table will be placed in the .progmem section.

Is this correct ?

Hmm... could be possible to relocate the .text section to a defined 
address ?

marko

E.Weddington wrote:
>>You are correct. I did a test after posting and saw that 
> 
> mixing
> 
>>..progmem.data and other sections does not work.
>>
>>My comment about the dox needing an update explaning that 
> 
> you need to
> 
>>tell the linker where to put the .bootloader section 
> 
> still holds
> 
>>though. If you don't do that, the .booloader section will 
> 
> be placed
> 
>>after the .text section, which is not likely to be in the 
> 
> device's
> 
>>bootloader area.
>>
>>Ted Roth
>>
> 
> 
> You're absolutely right about the docs. Luckily there is a 
> FAQ item that describes how to relocate a named section, 
> but it's not clear how that and avr/boot.h are related.
> 
> avr/boot.h needs a little bit of work all the way around.
> 
> Eric
> 
> 
> 
> 
Hi,

I have myself written a boot loader for an Atmega64 by relocating the .text
section to 0xF000 using the following command in the make file :

ORG = 0xF000
.....
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref, --section-start -Ttext=$(ORG)

The only annoyance I have found, is that in the AVRStudio-4 I can't debug in
the C source because the only symbols I get, are the function names but it
remain possible to step into the ASM window.

Danilo


_______________________________________________
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]