Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 921 Bytes

File metadata and controls

44 lines (29 loc) · 921 Bytes

STM32WB55 USB Example

Simple USB program for WeAct Studio board based on STM32WB55CGU6

LED is on pin PE4 and user button is on PH3

How to build and flash (for Ubuntu)

  1. Install needed ARM development toolchain and other utilities:

    apt update; apt install -y cmake git usbutils ninja-build gcc-arm-none-eabi stlink-tools
  2. Clone the project:

    git clone --recursive https://github.com/Kotsiubynskyi/stm32wb55_usb.git
    cd stm32wb55_usb
  3. Generate build files:

    cmake -B build -G Ninja
  4. Build project from build folder:

    cmake --build build
  5. Insert ST-LINK programmer USB stick and make sure it's visible by OS:

    lsusb|grep STMicroelectronics
  6. Upload built firmware to MCU:

    st-flash erase && st-flash --reset write build/stm32wb55_usb.bin 0x8000000