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

Workaround for waiting for all bootloader writes to be finished #1045

Merged
merged 1 commit into from
May 10, 2022

Conversation

evoggy
Copy link
Member

@evoggy evoggy commented May 10, 2022

This fixes the issue bitcraze/crazyflie-lib-python#330 where the library/CF would reset the GAP8 before all the bootloader writes had been handled in the GAP8 (since this is asynchronous). This was especially problematic when the last part of the binary crossed a page boundary which triggers an erase (erases takes extra time).

In this workaround we're requesting the MD5 checksum of what we've written after the last write has been sent. This is to make sure that all write packages has been processed (they are processed in order in the GAP8), when we get the result we know that the writes have taken place. But we do not care about the results of the checksum.

@krichardsson krichardsson merged commit 8c606d1 into master May 10, 2022
@krichardsson krichardsson deleted the evoggy/sync-gap8-flashing branch May 10, 2022 12:43
@krichardsson krichardsson added this to the 2022.05 milestone May 10, 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.

2 participants