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

Add AI-deck flashing support #1003

Merged
merged 9 commits into from Apr 11, 2022
Merged

Conversation

krichardsson
Copy link
Contributor

@krichardsson krichardsson commented Mar 23, 2022

Add the functionality needed to flash the ESP and GAP8 on the AI-deck from the python client

@krichardsson krichardsson marked this pull request as ready for review April 11, 2022 09:02
Copy link
Member

@evoggy evoggy 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, just some formatting stuff!


static uint8_t populateBitfield(const DeckMemDef_t* memDef) {
static const uint32_t COMMAND_BASE_ADR = 0x1000;
Copy link
Member

Choose a reason for hiding this comment

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

Tab

src/deck/drivers/src/aideck.c Outdated Show resolved Hide resolved

cpxSendPacketBlocking(&bootPacket);
// This should be handled on RX on CPX instead
vTaskDelay(100);
Copy link
Member

Choose a reason for hiding this comment

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

100 ms should be more than enough to restart the GAP8 in bootloader mode, but as we get more use-cases maybe we should something that more resembles the router in the ESP and move this up a level so we can also easily do RX on different functions.

@krichardsson krichardsson merged commit 552aab8 into master Apr 11, 2022
@krichardsson krichardsson deleted the krichardsson/ai-deck-flashing branch April 11, 2022 13:45
@knmcguire knmcguire added this to the next release 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.

None yet

3 participants