paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Problem with luftboot on Lisa M 2.1


From: alonso acuña
Subject: Re: [Paparazzi-devel] Problem with luftboot on Lisa M 2.1
Date: Mon, 8 Dec 2014 09:33:13 -0600

I noted this warning at http://1bitsquared.com/collections/autopilots/products/lisa-mx-autopilot :
 This is the new Lisa/MX autopilot, Version 2.1 Revision 3.
 This version of the board does not support programming over the built in USB port. (DFU bootloader) You will need the Black Magic Probe or compatible JTAG/SWD programmer to be able to use this board.

I don't understand why this is case and maybe this is not your problem if it was working previously.

On Tue, Dec 2, 2014 at 6:32 PM, Michal Podhradsky <address@hidden> wrote:
Hi all,

I recently encountered a problem with uploading code via DFU util to my Lisa M 2.1.

I got the latest code from master, and then followed instructions here: http://wiki.paparazziuav.org/wiki/Luftboot (I have BlackMagicProbe). The output from flashing the bootloader:
Black Magic Probe (Firmware 1.5-00279-gfd9eef8, build 20141114)
Copyright (C) 2011  Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

Target voltage: 3.3V
Available Targets:
No. Att Driver
 1      STM32, High density.
0x0800162e in stm32fx07_poll (usbd_dev=0x2000084c <usbd_dev>) at ../../usb/usb_fx07_common.c:297
297            if (REBASE(OTG_DIEPINT(i)) & OTG_FS_DIEPINTX_XFRC) {
0x1FFFF800: 0x5AA5
0x1FFFF802: 0xFFFF
0x1FFFF804: 0xFFFF
0x1FFFF806: 0xFFFF
0x1FFFF808: 0xFFFF
0x1FFFF80A: 0xFFFF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0xFFFF
0x1FFFF806: 0xFFFF
0x1FFFF808: 0xFFFF
0x1FFFF80A: 0xFFFF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0xFFFF
0x1FFFF808: 0xFFFF
0x1FFFF80A: 0xFFFF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0x00FF
0x1FFFF808: 0xFFFF
0x1FFFF80A: 0xFFFF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0x00FF
0x1FFFF808: 0x00FF
0x1FFFF80A: 0xFFFF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0x00FF
0x1FFFF808: 0x00FF
0x1FFFF80A: 0x00FF
0x1FFFF80C: 0xFFFF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0x00FF
0x1FFFF808: 0x00FF
0x1FFFF80A: 0x00FF
0x1FFFF80C: 0x00FF
0x1FFFF80E: 0xFFFF
0x1FFFF800: 0x5AA5
0x1FFFF802: 0x00FF
0x1FFFF804: 0x00FF
0x1FFFF806: 0x00FF
0x1FFFF808: 0x00FF
0x1FFFF80A: 0x00FF
0x1FFFF80C: 0x00FF
0x1FFFF80E: 0x00FF
Loading section .text, size 0x18e8 lma 0x8000000
Loading section .data, size 0x1c lma 0x80018e8
Loading section .devserial, size 0x8 lma 0x8001ff0
Start address 0x80016b8, load size 6412
Transfer rate: 16 KB/sec, 712 bytes/write.
address@hidden:~/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/ext/luftboot/src$

Then I want to upload code from Paparazzi center (default Quad Lisa M 2) using USB_DFU (autopilot is in bootloader mode), and every time I get this error:
make[1]: Leaving directory `/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/airborne'
cd sw/airborne; make TARGET=ap upload
Using "arch/stm32/lisa-m.ld" as ldscript for target "ap".
make[1]: Entering directory `/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/airborne'
Using stm32 mem dfu loader
/usr/bin/python /home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/tools/dfu/stm32_mem.py   /home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/var/aircrafts/Quad_LisaM_2/ap/ap.bin

Using device : ID 1d50:600f Transition Robotics Inc. - Lisa/M (Upgrade) V1.1 - NSERIAL 38FFD5053358383463442043
Failed to read device state! Assuming APP_IDLE
Traceback (most recent call last):
  File "/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/tools/dfu/stm32_mem.py", line 218, in <module>
    target.detach()
  File "/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/tools/dfu/dfu.py", line 101, in detach
    None, value=wTimeout, index=self.index)
  File "/usr/local/lib/python2.7/dist-packages/usb/legacy.py", line 205, in controlMsg
    timeout = timeout)
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 971, in ctrl_transfer
    self.__get_timeout(timeout))
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb0.py", line 528, in ctrl_transfer
    timeout
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb0.py", line 380, in _check
    raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] error sending control message: Broken pipe
make[1]: *** [upload] Error 1
make[1]: Leaving directory `/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi/sw/airborne'
make: *** [ap.upload] Error 2
make: Leaving directory `/home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi'

FAILED 'make -C /home/fwmav/Paparazzi/usb_telemetry/bootloader_test/paparazzi -f Makefile.ac AIRCRAFT=Quad_LisaM_2 FLASH_MODE=DFU ap.upload' with code 2

The same error occurs on one machine with Ubuntu 12.04 and other machine with Ubuntu 14.4. Also before this happened, I noticed that DFU flashing got often interrupted and didn't finish (broken pipe error), so I had to flash the code several times.

Does it mean my autopilot is broken (although I can still upload code with BlackMagicProbe and the actual paparazzi code works)? Plus usb_telemetry on this board works, although it has to be uploaded via BMP.

Thanks for help.
Michal

_______________________________________________
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]