esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
373 stars 43 forks source link

Only allow supported ESP-IDF targets #125

Closed sredman closed 1 year ago

sredman commented 1 year ago

Per discussion on https://github.com/esp-rs/esp-idf-template/pull/123

Only allow the user to select ESP-IDF targets which support the selected MCU.

This should work without https://github.com/esp-rs/esp-idf-template/pull/124, even though some of the MCU targets don't exist until that is merged.

sredman commented 1 year ago

Support matrix here: https://github.com/espressif/esp-idf#esp-idf-release-and-soc-compatibility

sredman commented 1 year ago

Tested end-to-end on my esp32c6 devboard: I can create a fresh project, build, flash, and see "Hello World". I have to edit the targets in the .cargo/config.toml, fix proposed in #124.