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

Support ESP32-C2 with 26MHz Xtal #301

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Dec 13, 2022

According to ESP-IDF most development boards use a 40MHz xtal but 26MHz are available so it makes sense to support it.

However, since 40MHz is also the default for ESP-IDF it's also the default for esp-hal.

I tested this on both, 40MHz and 26MHz versions and checked SPI, I2C and UART with a logic analyzer - looks good.

Please note: If you are using a 26MHz chip you need to supply a custom bootloader configured for 26MHz otherwise clock config will panic.

Also this changes the run alias to include the flash command - since espflash 2.0 RCs are available for some time now we should do that - also apparently I'm the only one using cargo run

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.

LGTM!

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.

LGTM

@jessebraham jessebraham merged commit dc8963c into esp-rs:main Dec 13, 2022
@bjoernQ bjoernQ deleted the support-ESP32-C2-26mhz-xtal branch December 14, 2022 09:13
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.

3 participants