USB bootloader doesn't start when try to update the firmware of CrazyradioPA

Post here to get support
Post Reply
s.matsuoka
Beginner
Posts: 7
Joined: Fri Sep 17, 2021 1:52 am

USB bootloader doesn't start when try to update the firmware of CrazyradioPA

Post by s.matsuoka »

[My Environment]
OS: BitcrazeVM (Ubuntu 20.04)
Radio: Crazyradio PA

---

I am setting up Crazyswarm. I'm trying to update the firmware of CrazyradioPA by referring to the following site, but I get an error and cannot proceed.
https://www.bitcraze.io/documentation/r ... ogramming/
Can you give me some advice on how to solve this problem?

[Problem]
When I run

Code: Select all

python crazyradio-firmware/usbtools/launchBootloader.py
I get the following error

Code: Select all

Error! bootloader not started.
After that, CrazyradioPA is not found when I run "lsusb".

[What I tried]
I unplugged and plugged in the CrazyradioPA and it started to recognize it.
I tried everything I could by looking at past questions, but it didn't solve the problem.

[What I thought]
After looking at the "launchBootloader.py" file, I guessed that the error was occurring in the

Code: Select all

handle.controlMsg
section. What are they doing here, and are the values 0x40 and 0xFF important?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: USB bootloader doesn't start when try to update the firmware of CrazyradioPA

Post by arnaud »

Hi,

Thanks for the well written question!

When launching the bootloader, the radio disconnect itself from USB and another device, the bootloader, connects. Since you are working in a VM it is likely that the bootloader appears on your host system (ie. Windows?). You need to pass the bootloader to the VM and then the flash command should work.
s.matsuoka
Beginner
Posts: 7
Joined: Fri Sep 17, 2021 1:52 am

Re: USB bootloader doesn't start when try to update the firmware of CrazyradioPA

Post by s.matsuoka »

Hi

I apologize for not replying for a long time.
I did not understand how the bootloader works.
When I tried it again with a clear understanding, I was able to successfully flash it.
It was needed to pass the USB information to the VM.
(I did change the Shebang from python to python3).
Thank you very much.
Post Reply