.ioc
file, then:.ioc
file, then:.pack
file you just downloaded..ioc
file, and go to Pinout & Configuration..ioc
file loses focus.CTRL+S
or CMD+S
to save the workspace. This will regenerate the code. Afterward you should have a 'Middleware' folder in your project with your impulse and all required libraries.main.c
file, even for C++ projects. If you have both a main.c
and a main.cpp
file now, remove the main.c
file.printf
ei_printf
function. You need to override this function in your main.cpp
(if you only have a main.c
rename it) to log to your UART port. E.g. this is how you set this up on the ST B-L475E-IOT01A. Under USER CODE BEGIN 0
add:main.cpp
(if you only have a main.c
rename it) and add the following code under USER CODE BEGIN Includes
(replace the features
array with the data you just copied):USER CODE BEGIN Init
, add:USER CODE BEGIN WHILE
, add:Debug
and/or a Release
folder with the built binaries (end with .bin
). Many ST boards mount as a mass-storage device (e.g. the ST IoT Discovery Kit and virtually all NUCLEO boards), and you can also flash by dragging the binary file to this mass storage device..ioc
file, go to Pinout & Configuration > Additional software and select the CMSIS-PACK..ioc
file loses focus, and press CTRL+S
or CMD+S
. This will generate some new code..ioc
file, select Help > Manage embedded software packages and add the new CMSIS-PACK..ioc
page, click Software Packs > Select Components..ioc
file loses focus, and press CTRL+S
or CMD+S
. This will generate some new code.main.c
as it will be generated again.