Trying to flash the firmware : operation not permitted

Post here to get support
Post Reply
essorrac
Beginner
Posts: 6
Joined: Mon Sep 30, 2013 5:40 pm

Trying to flash the firmware : operation not permitted

Post by essorrac » Thu Jan 30, 2014 10:12 am

Hi folks,

I'm trying to flash the crazyradio firmware after building it from the latest sources, but I'm experiencing a problem at the second step. I'm in the VM.

Bootloading is fine :

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyradio-firmware$ python usbtools/launchBootloader.py 
Launch bootloader ...
Bootloader started
The nordic bootloader device is detected :

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyradio-firmware$ lsusb
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 011: ID 1915:0101 Nordic Semiconductor ASA 
The flashing operation yet fails :

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyradio-firmware$ python usbtools/nrfbootload.py flash firmware/bin/cradio.bin 
Traceback (most recent call last):
  File "usbtools/nrfbootload.py", line 69, in <module>
    if not bl.open():
  File "/home/bitcraze/projects/crazyradio-firmware/usbtools/NrfUsbBootloader.py", line 63, in open
    self.handle.claimInterface(0)
usb.USBError: could not claim interface 0: Operation not permitted
Any idea why I'm being stuck with that ?

Thanks !



arnaud
Bitcraze
Posts: 2204
Joined: Tue Feb 06, 2007 12:36 pm

Re: Trying to flash the firmware : operation not permitted

Post by arnaud » Mon Feb 03, 2014 9:36 am

Hi,

This is a right problems that should be fixed by udev rules, if you use the version 0.4 of the VM it should work.

To fix it manually you can add the rules as documented in the wiki: http://wiki.bitcraze.se/projects:virtua ... crazyradio

Also if you want to do a quick test, running the command with sudo should work:

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyradio-firmware$ sudo python usbtools/nrfbootload.py flash firmware/bin/cradio.bin 

Post Reply