Simple blinky for the STM32WB55 Nucleo board
-
Download and install CLion
-
Install the latest version of OpenOCD by executing the following command:
brew install --HEAD openocd
-
Download the latest ARM toolchain and extract it to
~/bin/
. -
Add the toolchain to the path by adding the full path to the
bin/
subdirectory to the/etc/paths
file. -
Download and install the Java JDK
-
Download STM32CubeMX. Extract it and install it by executing the following command and going though the installation steps:
sudo java -jar SetupSTM32CubeMX-5.6.1.exe
-
Download the STLINK firmware upgrader.
-
Extract the zip file.
-
Open a terminal in the extracted directory and execute the following command:
java -jar AllPlatforms/STLinkUpgrade.jar
-
Go through the upgrade process in the application
- Clone this git repository
- Open this project in CLion
- Open the Preferences window
- Under Build, Execution, Deployment -> Embedded Development, add the OpenOCD location:
/usr/local/bin/openocd
. - Click OK
- Click File -> Reload CMake Project
- It should be able to process the CMake file correctly. If there are issues finding the ARM gcc compilers, double-check that the path was added correctly to the
/etc/paths
file. - Test that the program compiles by building the
wb55-blef
configuration. - Click Edit Configurations...
- Set Target and Executable to
wb55-blef
and set Board config file toboard/st_nucleo_wb55.cfg
. - Click OK.
- Connect your Nucleo board via USB.
- Run the `OCD wb55-bleuild configuration. The program should get flashed to the board and the green LED should start blinking every second.