paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Upload firmware-Device no found(Lisa/M 2.0)


From: C. Y. Chen
Subject: Re: [Paparazzi-devel] Upload firmware-Device no found(Lisa/M 2.0)
Date: Fri, 4 May 2012 00:37:41 +0800

Hi Gareth,

thanks for help,

I re-installed Ubuntu and follow the wiki package again, i think maybe i've changed setting somewhere i don't know. Again, tried to upload firmware, got error "No module named usb",detail:

make[1]: Leaving directory `/home/lab071/paparazzi/sw/airborne'
cd sw/airborne; make PAPARAZZI_SRC=/home/lab071/paparazzi PAPARAZZI_HOME=/home/lab071/paparazzi TARGET=ap upload
make[1]: Entering directory `/home/lab071/paparazzi/sw/airborne'
Using stm32 mem dfu loader
/usr/bin/python /home/lab071/paparazzi/sw/tools/dfu/stm32_mem.py /home/lab071/paparazzi/var/SkySerfer_1_4m_LisaM20/ap/ap.bin
Traceback (most recent call last):
  File "/home/lab071/paparazzi/sw/tools/dfu/stm32_mem.py", line 24, in <module>
    import usb
ImportError: No module named usb
make[1]: *** [upload] Error 1
make[1]: Leaving directory `/home/lab071/paparazzi/sw/airborne'
make: *** [ap.upload] Error 2
make: Leaving directory `/home/lab071/paparazzi'


then i download "USB interface for Python" using Synaptic(is it the python-usb package you mentioned?), upload firmware to Lisa/M seems work, the leds onboard don't cycle up and down, just L1 flash.

But when i tried to upload firmware again, get error

make[1]: Leaving directory `/home/lab071/paparazzi/sw/airborne'
cd sw/airborne; make PAPARAZZI_SRC=/home/lab071/paparazzi PAPARAZZI_HOME=/home/lab071/paparazzi TARGET=ap upload
make[1]: Entering directory `/home/lab071/paparazzi/sw/airborne'
Using stm32 mem dfu loader
/usr/bin/python /home/lab071/paparazzi/sw/tools/dfu/stm32_mem.py /home/lab071/paparazzi/var/SkySerfer_1_4m_LisaM20/ap/ap.bin

USB Device Firmware Upgrade - Host Utility -- version 1.2
Copyright (C) 2011  Black Sphere Technologies
Copyright (C) 2012  Transition Robotics Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

Traceback (most recent call last):
  File "/home/lab071/paparazzi/sw/tools/dfu/stm32_mem.py", line 78, in <module>
    dfudev = dfu.dfu_device(*dev)
  File "/home/lab071/paparazzi/sw/tools/dfu/dfu.py", line 84, in __init__
    self.handle.claimInterface(iface.interfaceNumber)
usb.USBError: could not claim interface 3: Operation not permitted
make[1]: *** [upload] Error 1
make[1]: Leaving directory `/home/lab071/paparazzi/sw/airborne'
make: *** [ap.upload] Error 2
make: Leaving directory `/home/lab071/paparazzi'



I used the command "dmesg | tail -5", i found how many times i disconnect and connect USB cable, the message always is:

[   22.693279] CPU6: Package power limit normal
[   22.693281] CPU7: Package power limit normal
[   22.738435] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input11
[  299.725677] [Hardware Error]: Machine check events logged
[  304.760611] usb 1-1.4: usbfs: interface 0 claimed by btusb while 'python' sets config #1

does i misunderstand about the python usb package or i should do some configuration about it?

thanks,

 
Hi Chen,
Restarting the machine will restart udev.
From the dmesg log, it looks like your Lisa is being detected and that you've unplugged and plugged it in a few times.
The most likely problem, as Tilman has said, is permissions.
Also, ensure you've installed the python-usb package.
Cheers,
Gareth
On Wed, 02 May 2012 13:32:54 +0100, C. Y. Chen <address@hidden> wrote:
Hi Gareth,
When lisa/M connect with laptop use usb, the leds on board cycling up and
understand what these messages mean, the last few lines is:
[ 28.094007] wlan0: no IPv6 routers present
[ 99.302560] usb 2-1.1: new full speed USB device number 3 using ehci_hcd
[ 99.951902] usb 2-1.1: USB disconnect, device number 3
[ 100.148796] usb 2-1.1: new full speed USB device number 4 using ehci_hcd
[ 200.606504] usb 2-1.1: USB disconnect, device number 4
[ 216.299849] usb 2-1.1: new full speed USB device number 5 using ehci_hcd
[ 299.590822] [Hardware Error]: Machine check events logged
[ 1466.043758] usb 2-1.1: USB disconnect, device number 5
[ 1480.050247] usb 2-1.1: new full speed USB device number 6 using ehci_hcd
[ 2392.815210] usb 2-1.1: USB disconnect, device number 6
[ 2393.076340] usb 2-1.1: new full speed USB device number 7 using ehci_hcd
[ 2640.364122] usb 2-1.1: USB disconnect, device number 7
[ 2663.910504] usb 2-1.1: new full speed USB device number 8 using ehci_hcd
[ 2672.906905] usb 2-1.1: USB disconnect, device number 8
[ 2994.456797] usb 2-1.1: new full speed USB device number 9 using ehci_hcd
thnaks,
Hi Chen,
Does your Lisa/M have the leds all cycling up and down?
Cheers,
Gareth
Hi Tilman:
does "restarted udev" means reboot laptop or there is specific command of
linux i should set?
thanks,
On 02/05/12 08:13, C. Y. Chen wrote:
Thanks for reply,
I downloaded all the files under dev branch, make these files and copy 50-paparazzi.rules
to ./etc/udev/rules.d/ again, then tried upload firmware again, but get
another error:"no USB device". When i use another USB cable, i got the
same error too. how can i do to fix it?
I can only guess that you may have not restarted udev.
down. The dmesg command returned lots of message, i'm new to linux, i don't
Try the dmesg command just after plugging in your lisa/m and see what is registered.
On Wed, 02 May 2012 10:01:34 +0100, Tilman Baumann <address@hidden> wrote:


reply via email to

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