STM32WB55 USB Example
Simple USB program for WeAct Studio board based on STM32WB55CGU6
LED is on pin PE4 and user button is on PH3
-
Install needed ARM development toolchain and other utilities:
apt update; apt install -y cmake git usbutils ninja-build gcc-arm-none-eabi stlink-tools -
Clone the project:
git clone --recursive https://github.com/Kotsiubynskyi/stm32wb55_usb.git cd stm32wb55_usb -
Generate build files:
cmake -B build -G Ninja
-
Build project from build folder:
cmake --build build
-
Insert ST-LINK programmer USB stick and make sure it's visible by OS:
lsusb|grep STMicroelectronics -
Upload built firmware to MCU:
st-flash erase && st-flash --reset write build/stm32wb55_usb.bin 0x8000000