![]() ![]() Of course, the Nucleo board has 2 STM32s on it– the main WB chip we'll be talking about the rest of the time, and a secondary STM32 chip that serves as an ST-LINK device for programming the WB. The easiest first step is to connect your USB to the STM32 Nucleo board ST_LINK port (closer to the side/header). It also works over the ST-Link, SWD, and DFU interfaces, so it's a great one-stop-shop for interfacing with the STM32. The Cube Programmer interface is a new tool, and it's actually incredibly useful for checking/setting fuses, downloading firmware and programs, and reading/writing memory. click on this if clicking on the Application File doesn't work. You'll also need the ST-Link driver, installed with homebrew: brew install stlink. You also may actually have to show the Package Contents and click on the setup executable manually. This can be installed with brew on Mac OSX: #if you don't have brew, get it with this command To set up CubeProgrammer, you may have to download the Java JDK (one with JavaFX, aka version 8– if you've installed a more recent one you can simply delete the folder from /Library/Java/JavaVirtualmachines). Step 1 is to download STM32CubeIDE and STM32CubeProgrammer – I had previously had a lot of issues running this natively on Mac, but it seems like version 1.3.0 works great natively (Windows support has always been good). ![]() This section falls into four parts: (1) set up the toolchain so you can talk to to the nucleo board, (2) flash the Bluetooth firmware, (3) ensure we can run a BLE pre-compiled example, and (4) import an STM32 example into CubeMX and run a BLE example. STM32WBCubeIDE and STM32CubeProgrammer are the required/useful software from STM's website. Let's jump right in! Running an Example on the STM32WB Nucleo Board To build the app, I'm using React-Native, the javascript based development environment that can cross-compile. My goal is to get an example running with FreeRTOS and threads that manages a general BLE throughput to an app in the background. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |