relokacja w avrside

Dec 01, 2003 1 Replies

Witam



W jaki sposob relokowac kod do dowolnego adresu w avr-gcc przy uzyciu avrside. Umieszczam w kodzie nazwe sekcji : int main(void) __attribute__ ((section (".bootloader"))); int main(void) { ... } i w opcjach kompilatora:



-Wl,--section-start=.bootloader=0x1C00 , ale po komilacji dostaje komunikat: C:\WinAVR\bin\avr-gcc.exe -g -Os -mmcu=atmega8 -c -pipe -Wall -Wl,--section



-start=.bootloader=0x1C00 main.c avr-gcc.exe: --section-start=.bootloader=0x1C00: linker input file unused because linking not done



Z lini polecen, przy uzyciu makefile wszystko dziala jak nalezy. Porsze o sugestie



Pozdrawiam



Sebasto



U¿ytkownik "Sebasto" snipped-for-privacy@wp.pl napisa³ w wiadomo¶ci news:bqg6mc$1qi$ snipped-for-privacy@topaz.icpnet.pl...

uzyciu

[..]

Wpis ma byc w opcjach linkera ( tylko sama opcja a wiec

--section-start=.bootloader=0x1C00 )

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required