[Top][All Lists]

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

Re: [avr-gcc-list] Bootloader again ;(((

From: Jason Kyle
Subject: Re: [avr-gcc-list] Bootloader again ;(((
Date: Mon, 14 Apr 2003 17:59:25 +1200

At 07:39 14/04/2003 +0200, address@hidden wrote:
Hi guys,

I'm a newbie to the list, although I've tried to search the archive for cure for
my problems.
I'm implementing a bootloader for my ATmega8. I've programmed the boot configuration bits (i.e.BOOTRST, BOOTSZx). I've also relocated the application to 0x1800 with
-Ttext 0x1800.

Try adding the linker flag --section-start=.text=0x1800 , this is all you need to do.

Jason Kyle

What else do I need? Do I have to relocate other sections as well?
Currently my code (which compiles just fine, .MAP tells me that addresses are relocated also) seems to be good, but the code does not want to execute (I mean I don't even get
to the very first byte of my code in main()).
Could anyone tell me in details how to relocate (since the avr-libc user's guide do not
tell much about APPLICATION relocation)???
I also have some problems with -fPIC. I wanted to use fixed (not relative) calls to my functions. Since it did not work, I had to "install" a function pointer table ;(((( so that to be able to use the functions already implemented in the bootstrap (kinda
"shared" library stuff). How shall I use it?
Thanks a lot!


reply via email to

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