Page 1 of 1

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

Posted: Mon Oct 11, 2021 1:36 pm
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?

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

Posted: Tue Oct 12, 2021 7:36 am
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.

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

Posted: Thu Oct 28, 2021 2:23 am
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.