This is your basic "Hello World" program for the WeACT STM32F411CEU6 setup to work with Drone OS
It sets up the system clock to run at 96 MHz (a bit lower than the max 100 MHz so that the USB peripheral gets a nice clock)
This example uses drone-os v0.12.1
- STM32F411CEU6
- HSI - 16 MHz
- HSE - 25 MHz
- LSE - 32.768 kHz
- 512K Flash
- 128K RAM
- has a LED connected to PC13 (active low)
- has a push button connected to PA0 (active low) (no external pullups)
- USB-C connector
Drone.toml
changedgdb-client
to bearm-none-eabi-gdb
, since I haven't found gdb-multiarch for MacOS.Drone.toml
changedserial-endpoint
andgdb-endpoint
to match the USB names that my Black Magic Probe shows up as under MacOS.
To build - assuming other setup has been done as per the Drone Book
git clone https://github.com/dhylands/drone-weact-blinky.git weact-blinky
cd weact-blinky
just build