Skip to content

add support for flashing direct-boot images to esp32c3 #72

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

Merged
merged 5 commits into from
Oct 16, 2021

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Oct 11, 2021

Fixes #53

Tested with https://github.com/MabezDev/esp32c3-experiments

Todo:

  • validate that the elf is valid for direct boot
  • better error message for invalid --format options
  • allow setting image format in Cargo.toml

@icewind1991 icewind1991 marked this pull request as draft October 11, 2021 22:16
@icewind1991 icewind1991 marked this pull request as ready for review October 13, 2021 21:12
Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Unfortunately I have a rev 2 version of the ESP32-C3 so I am unable to test this. I assume you've verified it, but maybe @MabezDev or @mchodzikiewicz can confirm.

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

Works great! Thanks @icewind1991!

@icewind1991
Copy link
Member Author

@jessebraham I didn't see the revision limitation for direct boot till now. I've added an extra check to get a proper error message for this case. Can you check that this works properly with your c3

@jessebraham
Copy link
Member

I received an error message as expected.

@icewind1991 icewind1991 merged commit 9b2c5ef into master Oct 16, 2021
@icewind1991 icewind1991 deleted the direct-boot branch October 16, 2021 11:08
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.

Supporting direct boot bare metal applications (no esp-idf)
3 participants