My personal walk through learning Rust development on STM32 family of microcontrollers, using:
- Black Pill development board with STM32F411CEU6 microcontroller as a target device
- STLink v2 as a programming and debugging interface
- Debian 10/11 bullseye and Visual studio code as development environment
Blue pill board examples
Useful links for programming Black Pill board
- pin out and board documentation: https://docs.zephyrproject.org/3.2.0/boards/arm/blackpill_f401ce/doc/index.html
- https://www.jef.land/stm32f411-pit/
- https://crates.io/crates/stm32f4xx-hal
All programming devices and software tools are pretty much the same as for the Blue pill board (check getting started page for the Blue pill device for details).
Target device specification for the openocd
tool is stm32f4x
instead of stm32f1x
openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg
Also check different memory limits in the memory.x file.