I figured out that I could log info over UART in Rust by using the "println" Cargo feature of esp-backtrace, using the "uart" and "log" Cargo features of esp-println, calling esp_println::logger::init_logger_from_env() at the beginning of main, and putting
[target.xtensa-esp32-none-elf]
runner = "espflash flash --monitor"
[env]
ESP_LOG="INFO"
in cargo/config.toml.
This isn't as pretty or performant as defmt over JTAG with probe-rs, but it works.
[target.xtensa-esp32-none-elf]
runner = "espflash flash --monitor"
[env]
ESP_LOG="INFO"
in cargo/config.toml.
This isn't as pretty or performant as defmt over JTAG with probe-rs, but it works.