Skip to content

Support ESP32-C2 with 26MHz Xtal#301

Merged
jessebraham merged 1 commit into
esp-rs:mainfrom
bjoernQ:support-ESP32-C2-26mhz-xtal
Dec 13, 2022
Merged

Support ESP32-C2 with 26MHz Xtal#301
jessebraham merged 1 commit into
esp-rs:mainfrom
bjoernQ:support-ESP32-C2-26mhz-xtal

Conversation

@bjoernQ
Copy link
Copy Markdown
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

Comment thread esp-hal-common/src/rtc/esp32c2.rs
Copy link
Copy Markdown
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
Copy Markdown
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