[Top][All Lists]

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

Re: [Paparazzi-devel] error in upload

From: Martin Mueller
Subject: Re: [Paparazzi-devel] error in upload
Date: Fri, 28 Dec 2012 18:00:42 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

> I add the same error few weeks ago, and it was the size of the
> binary. I'm not sire of the maximum size (Martin ?), but you can
> check by looking at the size of var/<your AC>/ap.hex, bigger than
> ~540 is probably not good. An efficient way to reduice code size is
> to remove the telemetry mode you don't need.

that is the size of the hex file that can be larger than the binary file. You can check the actual size by running readelf:

address@hidden:~/paparazzi/var/<AIRCRAFT>/ap$ readelf -l ap.elf

Elf file type is EXEC (Executable file)
Entry point 0x4000
There are 2 program headers, starting at offset 52

Program Headers:
  Type     Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD     0x000078 0x00004000 0x00004000 0x20610 0x20610 R E 0x8
  LOAD     0x020688 0x40000000 0x00024610 0x00510 0x02600 RW  0x8

We have 480 kBytes of net flash memory (512k - 16k Paparazzi bootloader, 4k persistent memory, 12k NXP bootloader) and in the above example the size is only around 130 kBytes.

> Martin, my configuration files are attached and picture of my
> modified receiver as well.

Thanks - unfortunately I could not reproduce the issue with your files. I need the elf file.

> I am not sure what you mean by the resulting hex file (is that what
> is printed out in the paparazzi software)

That would be paparazzi/var/<AIRCRAFT>/ap/ap.elf

If anyone does have an issue with LPC USB flashing please email me that ap.elf file.

Oliver did have a problem with flashing that I could reproduce but I am not sure if that is the same thing. His files did have an overlapping exidx section, it should be fixed with lpc21iap v1.4 in master and stable v4.2.


Le 23/07/2012 08:26, Martin Mueller a écrit :
Hi Arni,

This is a low level flash error that is only indirectly connected to
the receiver type. Could you send me all configuration files, the git
hash you are using, additional modifications and the resulting hex file?

For a quick fix just change one line e.g. in the flight plane, maybe
it is related to the length of the binary.


Árni Þorvaldsson<address@hidden>  schrieb:

Hi I get that error only on this radio file, I am using Futaba T7C
Transmitter and Futaba R617FS ( which is modified to send ppm
according to wiki). Which radio file should I be using?

regards Arni
Frá: address@hidden
address@hidden fyrir h&#246;nd
Árni Þorvaldsson address@hidden
Sent: 22. júlí 2012 14:54
To: address@hidden
Efni: [Paparazzi-devel] error in upload

Hi all

I am getting error when I am using radio file R617FS_neg.xml.

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 0x00021000 base 0x40004000 size 0x00001000
make[1]: *** [upload] Error 1
make[1]: Leaving directory `/home/notandi/paparazzi/sw/airborne'
make: *** [ap.upload] Error 2
make: Leaving directory `/home/notandi/paparazzi'

regards Arni

Paparazzi-devel mailing list

Paparazzi-devel mailing list
Paparazzi-devel mailing list

Paparazzi-devel mailing list

reply via email to

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