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

Fix GAP8 flashing problems #1162

Merged
merged 2 commits into from
Dec 5, 2022
Merged

Conversation

krichardsson
Copy link
Contributor

This PR fixes bugs in the GAP8 flashing of the AI-deck.

In teh current implementation some file sizes will fail to flash due to a buffer problem.

This PR also intriduces a generic utility that handles copying between buffers of different sizes in a structured way.

Fixes bitcraze/aideck-gap8-examples#104

@krichardsson krichardsson merged commit 479464f into master Dec 5, 2022
@krichardsson krichardsson deleted the krichardsson/fix-gap8-flashing branch December 5, 2022 13:43
Copy link
Member

@ataffanel ataffanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@whoenig
Copy link
Contributor

whoenig commented Dec 7, 2022

We have frequently flashing issues over the radio as well, often hanging at 3%, not 99%. In some cases, this gets resolved by a more stable power supply (as in battery + USB cable). However, I have one AI deck that simply does not flash wirelessly (but fine over JTAG).

In the "old" firmware, it simply hangs. In this new firmware, the AI deck seems to hit one of these handy new asserts. However, there is no way for me to see which assert it hit, because cfloader doesn't print anything and if I connect with cfclient afterwards, the assert information is already gone. How should one identify the assert? Perhaps this requires a cfloader change/setting to print console messages? @krichardsson .

@krichardsson
Copy link
Contributor Author

@whoenig This is a different problem, as far as I can understand. I have created a new issue here bitcraze/aideck-gap8-examples#105
Please add any information that you have.
I also added some information on how to get the assert data out.

@krichardsson krichardsson added this to the 2022.12 milestone Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CFloader flash img hangs at 99% with the classification demo
4 participants