[Top][All Lists]

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

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

From: tibor . harsszegi
Subject: [avr-gcc-list] Bootloader again ;(((
Date: Mon, 14 Apr 2003 7:39:30 +0200

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 
bits (i.e.BOOTRST, BOOTSZx). I've also relocated the application to 0x1800 with
-Ttext 0x1800.
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 
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 
"shared" library stuff). How shall I use it?
Thanks a lot!


reply via email to

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