From 5b70da2256747853ac4f866e60493241ac34bcd3 Mon Sep 17 00:00:00 2001 From: liebman Date: Wed, 29 Oct 2025 15:08:01 -0700 Subject: examples: : stm32wlex: mention `defmt-print` --- examples/stm32wle5/README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples') diff --git a/examples/stm32wle5/README.md b/examples/stm32wle5/README.md index 7435ed1be..63507f490 100644 --- a/examples/stm32wle5/README.md +++ b/examples/stm32wle5/README.md @@ -6,6 +6,7 @@ Examples in this repo should work with [LoRa-E5 Dev Board](https://www.st.com/en - Connect a usb serial adapter to LPUart1 (this is where ALL logging will go) - Optional: Connect an amp meter that ran measure down to 0.1uA to the power test pins +- `cargo install defmt-print` so you can print log messahes from LPUart1 ## Example Notes @@ -15,6 +16,11 @@ All examples will set all pins to analog mode before configuring pins for the ex - the `blinky` example will sleep in STOP2 and the chip will only draw 1uA or less while sleeping - the `button_exti` example will sleep in STOP2 and the chip will only draw 1uA or less while sleeping +For each example you will need to start `defmt-print` with the example binary and the correct serial port in a seperate terminal. Example: +``` +defmt-print -w -v -e target/thumbv7em-none-eabi/debug/ serial --path /dev/cu.usbserial-00000000 --baud 115200 +``` + Run individual examples with ``` cargo flash --chip STM32WLE5JCIx --connect-under-reset --bin -- cgit