paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] lpc21iap bootloader ap.elf >256k failed


From: Christophe De Wagter
Subject: Re: [Paparazzi-devel] lpc21iap bootloader ap.elf >256k failed
Date: Wed, 22 Jun 2011 20:44:51 +0200

So ideally we schould update all our LPC bootloaders?

On Jun 22, 2011 8:26 PM, "Martin Mueller" <address@hidden> wrote:
> Hi Oliver,
>
> you found a bug :-) It is not the size but the fact that your .text
> sector ended at the last word of a 4k page with an odd address. The
> following page was then erroneously flashed (with garbage) and collided
> with the .data sector. Interesting that it did not occur/was not
> reported over the last 5 years (probability 0.07% ?).
>
> Fixed in the master branch.
>
> Martin
>
>
>
> On 21.06.2011 22:40, Oliver Riesener wrote:
>> Hi paparazzi-team,
>>
>> if a compiled ap.elf exceeds 256K then i got an error from bootloader v1.3.
>>
>> Image file > 256K
>> 262454/1024=256.30273437500000000000
>>
>> Any helpful suggestions ?, the device has 512k flash and seems ok,
>> becourse the error occurs also on another hw too.
>>
>> Cheers,
>>
>> olri
>>
>> paparazzi/var/HB_COPTER/ap/ap.elf :
>> section size addr
>> .text 159742 16384
>> .ARM.exidx 0 176126
>> .ctors 0 176126
>> .dtors 0 176126
>> .data 14044 1073741824
>> .bss 6500 1073755868
>> .stack 4096 1073762560
>> .comment 2088 0
>> .debug_aranges 1824 0
>> .debug_pubnames 1922 0
>> .debug_info 33074 0
>> .debug_abbrev 13296 0
>> .debug_line 16261 0
>> .debug_frame 2852 0
>> .debug_str 5787 0
>> .debug_ranges 968 0
>> Total 262454
>>
>> cd sw/airborne; make PAPARAZZI_SRC=paparazzi PAPARAZZI_HOME=paparazzi
>> TARGET=ap upload
>> Using gcc-arm 3.4.4 packaged by paparazzi.
>> paparazzi/sw/ground_segment/lpc21iap/lpc21iap
>> paparazzi/var/HB_COPTER/ap/ap.elf
>> lpc21iap v1.2
>> .........
>> Found USB device
>> BootROM code: 2.12
>> Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)
>> BootLoader version: 1.3
>> ############################################ISP error (10:COMPARE_ERROR)
>> compare MEM failed at 0x0002B000 base 0x40004000 size 0x00001000
>> make[1]: *** [upload] Fehler 1
>> make: *** [ap.upload] Fehler 2
>>
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

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