STM32 NUCLEO-WB55
The following examples show how to connect GUI-O application with STM32 NUCLEO-WB55 in various communication modes.
Setup STM32CubeIDE (and STM32CubeProgrammer)
The examples are based on STM32 NUCLEO-WB55 board and STM32CubeIDE.Â
Note that any other board that is supported in STM32CubeIDE can also be used, but it needs to be properly configured before integrating the provided source code.
NOTE: STM32CubeProgrammer is only required for Bluetooth LE example.
Step 1: Install STM32CubeIDE
Download the STM32CubeIDE for your host operating system
Install STM32CubeIDE by following the installation instructions
Step 2: Install STM32CubeProgrammer
Download the STM32CubeProgrammer for your host operating system
Install STM32CubeProgrammer by following the installation instructions
STM32 NUCLEO-WB55 & GUI-O basic examples
The following examples show basic interaction between GUI-O application and STM32 NUCLEO-WB55 board in various communication modes.
STM32 NUCLEO-WB55 Bluetooth LE
Step 1: Update Firmware Upgrade Services and Bluetooth Low Energy Wireless stack
NOTE: Follow the instructions from the ST website or download them here. You can download the required firmware here.
A brief summary of the steps:
STM32 Nucleo-WB55 jumper JP1 must be in "USB STL" position
Connect to the board via ST-LINK using STM32CubeProgrammer
Read and update Firmware Upgrade Services (FUS) if necessary
Update the Bluetooth Low Energy (BLE) Wireless stack
Step 2: Upload the code
Make sure that STM32 Nucleo-WB55 jumper JP1 is in "USB STL" position
Connect STM32 Nucleo-WB55 to the PC via USB cable
Download the BasicBLE_NUCLEO-WB55RG.zip package to your PC and extract the package
Open STM32CubeIDE
Click on "File -> Open Projects from File System"
Click on "Directory", select the "STM32CubeIDE" directory in the extracted package and click "Finish"
Right-click on the project, select "Run as -> STM32 C/C++ Application" and confirm by clicking the "OK" button
Wait for the upload to complete
NOTE: All debug messages during program execution can be observed using any serial console terminal (baud rate 115200 bps). The same USB cable is used both for programming and debug output!
Step 3: Using GUI-O application to interact with STM32 NUCLEO-WB55
Open GUI-O application and navigate to "Settings -> Connections -> Bluetooth LE"
Tap "Available devices" to search for STM32 Nucleo-WB55 Bluetooth device
Tap "BasicBLE" device and wait for successful connection
Close "Settings" and tap GUI-O initialize button from the home screen to try the example
NOTE: LED1 used in this example does not support PWM (LED dimming). Therefore, the example supports an additional external LED driving via pin 8 on CN7 header (connected to LED cathode) and pin 34 on CN7 header (connected to LED anode). Do not forget to use a current limiting resistor for the external LED.
STM32 NUCLEO-WB55 USB
IMPORTANT NOTE: The programming port on STM32 Nucleo-WB55 cannot be used for communication with GUI-O application. Therefore, an additional USB to serial converter should be used (e.g., TTL-232R-3V3). This example assumes that USB to serial converter is connected to MCU pins PA9 (Tx, which is pin 19 on CN10 header) and PA10 (Rx, which is pin 31 on CN10 header).
In order to connect STM32 Nucleo-WB55 to your Android device, a simple adapter cable is needed (as shown in the image). Also note that not all Android devices support USB OTG functionality.
Step 1: Upload the code
Make sure that STM32 Nucleo-WB55 jumper JP1 is in "USB STL" position
Connect STM32 Nucleo-WB55 to the PC via USB cable
Download the BasicUSB_NUCLEO-WB55RG.zip package to your PC and extract the package
Open STM32CubeIDE
Click on "File -> Open Projects from File System"
Click on "Directory", select the directory of the extracted package and click "Finish"
Right-click on the project, select "Run as -> STM32 C/C++ Application" and confirm by clicking the "OK" button
Wait for the upload to complete
Step 2: Using GUI-O application to interact with STM32 NUCLEO-WB55
Connect STM32 NUCLEO-WB55 USART1 (Tx, which is pin 19 on CN10 header and Rx, which is pin 31 on CN10 header) via USB to serial converter to your Android device
Open GUI-O application and navigate to "Settings -> Connections -> Usb serial"
Make sure baud rate 115200 bps is selected, tap "Connect" and wait for successful connection
Close "Settings" and tap GUI-O initialize button from the home screen to try the example
NOTE: LED1 used in this example does not support PWM (LED dimming). Therefore, the example supports an additional external LED driving via pin 8 on CN7 header (connected to LED cathode) and pin 34 on CN7 header (connected to LED anode). Do not forget to use a current limiting resistor for the external LED.
Connect . Create . Control