esp-rs / std-training

Embedded Rust on Espressif training material.
https://esp-rs.github.io/std-training
Apache License 2.0
606 stars 78 forks source link

esp32c2 uses 26M crystal oscillator, resulting in delay errors #240

Closed xiaguangbo closed 7 months ago

xiaguangbo commented 7 months ago

I should configure the crystal frequency in "menuconfig" mode, but I don't know how to do this under "esp-rs"

SergioGasquez commented 7 months ago

If using a std project, which seems like you are since you opened this issue in std-training: https://docs.esp-rs.org/book/troubleshooting/espflash.html#if-you-are-building-an-esp-idf-sys-based-project

If using a no_std project, it should be automatically detected.

xiaguangbo commented 7 months ago

in sdkconfig.defaults add CONFIG_XTAL_FREQ_26=y,cargo clean cargo run is ok!