error in cload while changing firmware #1233
Replies: 2 comments
-
I switched to VM there i did not face any issues. Dont know about WSL though. |
Beta Was this translation helpful? Give feedback.
-
For WSL the problem you are having seems to come from a missmatched version between the client and the python lib. You can try to update both with "pip install --upgrade cfclient cflib". The new client (that implements the cload command line tool) does require an updated lib and the error you are getting looks very much what you would see in case of missmatch. Moreover, WSL will need some special work to get the USB to work at all: by default Windows does not pass USB in WSL and a tool called USB-IP is required to make usb devices available in WSL. So this is something you need to make sure you have installed and setup correctly. |
Beta Was this translation helpful? Give feedback.
-
I am changing the firmware of crazyflie so that it can handle acceleration setpoint packets. I have installed wsl and cloned the repository by following instructions in https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/building-and-flashing/build/#debianubuntu. I am getting an error when i try to flash the firmware using cload ( see bottom of the post).
The changes i made in firmware are:
In crazyflie-firmware/src/modules/src, in the crtp_commander_generic.c file, I have made some changes.
As shown, I am making changes for the commander.py class in cflib, to handle acceleration setpoints, so I have added
accType=8
as a new packet.Then I add decoder function:
then finally in packetDecoder array i add
[accType] = accDecoder
These are the only changes i made. Next I go to root directort of firmware and use
Then I press power button of crazyflie for 3 secodns for it to enter bootloader mode and I use the command:
And i get the following error:
I am using wsl on powershell.
I am new to all this. Any help would be appreciated.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions