Issue with defmt and esp-hal using defmt-app-template

Hello

I have been trying to build 'my-app' project using the defmt-app-template(GitHub - knurling-rs/app-template: Quickly set up a `probe-rs` + `defmt` + `flip-link` embedded project) from the Knurling app template repository. My setup includes the ESP32-C3 microcontroller, and I'm leveraging the esp-hal crate (esp-hal = { version = "0.18.0", default-features = false, features = [ "esp32c3","async","defmt" ]}).

Error: While following the instructions to build the application, I encountered a compilation issue related to the critical-section crate. The RawRestoreStateInner type is defined multiple times in the critical-section crate (one as bool and another as u8). Additionally, the error message specifies that at most one of the restore-state-* features should be enabled, which is causing a conflict.

I would like to know if there is any recommended approach or workaround for integrating defmt with the ESP32-C3 microcontroller. Any help or guidance on implementing 'defmt' would be greatly appreciated!

Thank You.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.