Skip to content

Latest commit

 

History

History

stm32l432

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Examples for STM32L432 family

Examples in this repo should work with NUCLEO-L432KC board.

Run individual examples with

cargo run --bin <module-name>

for example

cargo run --bin blinky

Checklist before running examples

You might need to adjust .cargo/config.toml, Cargo.toml and possibly update pin numbers or peripherals to match the specific MCU or board you are using.

  • Update .cargo/config.toml with the correct probe-rs command to use your specific MCU. For example for L432KCU6 it should be probe-rs run --chip STM32L432KCUx. (use probe-rs chip list to find your chip)
  • Update Cargo.toml to have the correct embassy-stm32 feature. For example for L432KCU6 it should be stm32l432kc. Look in the Cargo.toml file of the embassy-stm32 project to find the correct feature flag for your chip.
  • If your board has a special clock or power configuration, make sure that it is set up appropriately.
  • If your board has different pin mapping, update any pin numbers or peripherals in the given example code to match your schematic

If you are unsure, please drop by the Embassy Matrix chat for support, and let us know:

  • Which example you are trying to run
  • Which chip and board you are using

Embassy Chat: https://matrix.to/#/#embassy-rs:matrix.org