esp-idf-hal icon indicating copy to clipboard operation
esp-idf-hal copied to clipboard

New RMT driver not compiling

Open stevehayles opened this issue 1 month ago • 4 comments

Bug description

Since the new RMT driver commit [https://github.com/esp-rs/esp-idf-hal/commit/782df6ea9541a6aa897e291e4f04a90ea63db9c4] compilation fails with a 'use of unresolved module or unlinked crate' error in some environments.

The code below in #[cfg(esp_idf_version_at_least_5_3_0)] flags: rmt_receive_config_t_extra_rmt_receive_flags { _bitfield_1: rmt_receive_config_t_extra_rmt_receive_flags::new_bitfield_1( config.enable_partial_rx as u32, ), ..Default::default() }, , src/rmt/rx_channel.rs

produces the error

failed to resolve: use of unresolved module or unlinked crate rmt_receive_config_t_extra_rmt_receive_flags if you wanted to use a crate named rmt_receive_config_t_extra_rmt_receive_flags, use cargo add rmt_receive_config_t_extra_rmt_receive_flags to add it to your Cargo.toml

To Reproduce

This issue is reproducible with a project targeting an ESP32 using ESP-IDF version 5.3 with the following esp-idf related crates

esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf-svc.git", rev = "de032e3621" } esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys.git", rev = "a97dd46f4b"} esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal.git", rev = "15e197e2e6" }

changing the esp-idf-hal version to

esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal.git", rev = "552b00b557" }

remedies the error and the project builds

Expected behavior

The code should compile as per before the commit

stevehayles avatar Nov 14 '25 15:11 stevehayles