Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFloader flash img hangs at 99% with the classification demo #104

Closed
knmcguire opened this issue Nov 30, 2022 · 5 comments · Fixed by bitcraze/crazyflie-firmware#1162
Closed
Labels
bug Something isn't working
Milestone

Comments

@knmcguire
Copy link
Member

Discussed in https://github.com/orgs/bitcraze/discussions/369

Originally posted by chengliu-LR November 7, 2022
Hi all,

I am using cfloader to flash some target.board.devices.flash.img to AI-Deck. For typical imgs like the wifi-demo and pulp-dronet, it works perfectly. However, when it comes to the classification-demo and my own compiled programs, the cfloader hangs at \ 99% Writing to bcAI:gap8 deck memory everytime. Do you know possible reasons for this?

Thank you!

@knmcguire knmcguire transferred this issue from bitcraze/discussions Nov 30, 2022
@knmcguire
Copy link
Member Author

So after investigations it seems that any binary file larger than 747776 Bytes fails with the cfloader (getting stuck at 99%), and the classification example is 747792 Bytes large!

This was possible to flash before... so what changed? The docker file itself hasn't changed, but perhaps the autotiler that needs to be pulled with that version is updated somehow?

@knmcguire knmcguire added the bug Something isn't working label Nov 30, 2022
@knmcguire knmcguire changed the title [AI-Deck] Any insights on cfloader flash img hangs at 99% specifically? CFloader flash img hangs at 99% with the classification demo Nov 30, 2022
@chengliu-LR
Copy link

I also tried this binary file (can be downloaded through the following Google Drive link):
https://drive.google.com/file/d/1n7XXOmcSYcQdgXulDZKMPk2j9ynTmhyN/view?usp=sharing

This binary file is a CNN pytorch neural network, quantized by nemo and compiled by dory. It seems that although it is 993KB large (exceeds 747776 Bytes), it can still be flashed by cfloader. So the file size might not be the issue.

@knmcguire
Copy link
Member Author

Hmm interesting! Where are you currently with the firmware of the aideck+ crazyflie? release 2022.09 or latest development branch? Will try this binary out soon.

Yes I agree, it would be really weird if the filesize was the case, as it should be able to handle 60 MB or something like that?

@knmcguire
Copy link
Member Author

Oh wait I see that you answered my question on https://github.com/orgs/bitcraze/discussions/369 already.
So your firmware is on commit 5c4261e5a9ff (CLEAN) but you've tried 2022.5 and 2022.9 as well.

hmmmm really strange! The plot thickens... but we need to investigate this more. Thanks for sharing though!

@krichardsson
Copy link
Contributor

Other examples are

1000 bytes works
2000 bytes fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants