Hello!
I just found that I can program STM32 using VSCode + PlatformIO. Before I used the STM32Cube IDE and FreeRTOS. So I have installed latest versions of the VSCode + PlatformIO + STSTM32. And I have cloned the GIt project: https://github.com/maxgerhardt/pio-stm32h7-stm32cube-freertos/tree/main
But when I try to build this project I am gettings errors:
Building in release mode
Linking .pio\build\nucleo_h723zg\firmware.elf
.pio/build/nucleo_h723zg/libFrameworkCMSISDevice.a(system_stm32h7xx.o): In functionSystemInit': system_stm32h7xx.c:(.text.SystemInit+0x0): multiple definition ofSystemInit’
.pio/build/nucleo_h723zg/src/system_stm32h7xx.o:system_stm32h7xx.c:(.text.SystemInit+0x0): first defined here
.pio/build/nucleo_h723zg/libFrameworkCMSISDevice.a(system_stm32h7xx.o): In functionSystemCoreClockUpdate': system_stm32h7xx.c:(.text.SystemCoreClockUpdate+0x0): multiple definition ofSystemCoreClockUpdate’
.pio/build/nucleo_h723zg/src/system_stm32h7xx.o:system_stm32h7xx.c:(.text.SystemCoreClockUpdate+0x0): first defined here
.pio/build/nucleo_h723zg/libFrameworkCMSISDevice.a(system_stm32h7xx.o):(.rodata.D1CorePrescTable+0x0): multiple definition ofD1CorePrescTable' .pio/build/nucleo_h723zg/src/system_stm32h7xx.o:(.rodata.D1CorePrescTable+0x0): first defined here .pio/build/nucleo_h723zg/libFrameworkCMSISDevice.a(system_stm32h7xx.o):(.data.SystemD2Clock+0x0): multiple definition ofSystemD2Clock’
.pio/build/nucleo_h723zg/src/system_stm32h7xx.o:(.data.SystemD2Clock+0x0): first defined here
.pio/build/nucleo_h723zg/libFrameworkCMSISDevice.a(system_stm32h7xx.o):(.data.SystemCoreClock+0x0): multiple definition of `SystemCoreClock’
.pio/build/nucleo_h723zg/src/system_stm32h7xx.o:(.data.SystemCoreClock+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\nucleo_h723zg\firmware.elf] Error 1
In the initial project the SystemInit function appears only in the one file pio-stm32h7-stm32cube-freertos\src\system_stm32h7xx.c . So I do not understand where are from other version of this function appears and how to avoid this. Could you please help me?