Creating an STM32 Project with PlatformIO
-
Select the "PIO Home" tab
-
Click on "New Project"
-
Insert project name
-
As "Board" select "ST NUCLEO F401RE"
-
As "Framework" select CMSIS
-
After project creation, open the "platform.ini" file and add the following line:
lib_deps = https://github.com/UniCT-ARSLab/stm32_unict_lib.git
-
Create, in the "src" dir, a main file and add "ClockConfig()" as the first procedure call in the main() function (this sets the CPU clock at 84 MHz)
-
Have fun...