[En-Nut-Discussion] xnutboot entry point
Przemyslaw Rudy
prudy at audiotech.pl
Tue Feb 27 15:53:19 CET 2007
We solved this issue beside the mail list, the problem was in object
linking order (if I remember correctly) which is essential for the
bootloader.
Thanks
Przemek
Rodrigue wrote:
> Hello,
>
> Just an idea: check for --defsym main=0 in your makefile and remove it...
>
> Regards,
> Rodrigue
>
>
> Przemyslaw Rudy wrote:
>
>>Hi,
>>
>>I am trying to compile the xnutboot serial bootloader.
>>It looks like with the original build options and the latest avr-gcc the
>>‘main’ function is not the entry point anymore.
>>The .map file shows:
>>------------
>>.text 0x0001fc00 0x260 xnutboot.o
>> 0x0001fd94 main
>>------------
>>whilst in the reference .map file:
>>------------
>>.text 0x0001fc00 0x2a8 xnutboot.o
>> 0x0001fc00 main
>>------------
>>
>>The .lst file shows ‘main’ at offset 0x194 indeed:
>>------------
>>.text:00000000 SendOctet
>>.text:00000008 FlashPage
>>.text:000000cc RecvOctet
>>.text:00000104 RecvPacket
>>.text:00000194 main
>>------------
>>whilst in the reference .lst file:
>>------------
>>.text:00000000 main
>>.text:00000218 RecvPacket
>>.text:000001d8 SendOctet
>>.text:000000cc FlashPage
>>.text:000001e0 RecvOctet
>>------------
>>
>>Do you have any quick solution for that?
>>
>>Best Regards
>>Przemek
>>_______________________________________________
>>En-Nut-Discussion mailing list
>>En-Nut-Discussion at egnite.de
>>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>>
>>
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the En-Nut-Discussion
mailing list