Closed Germwalker closed 2 years ago
Del, Sorry, I didn't look carefully
Hi! Thanks for reaching out!
I get the same error. I tried to compile it and failed. Even with the ST provided makefile I get the same error. Everything seems to be in order however when using CMSIS_V1 it seems to work. The definition of the device header is the issue:- CMSIS_device_header=<stm32g0xx.h>
. When this is converted to: - CMSIS_device_header=\"stm32g0xx.h\"
the error is fixed. You can change this in the Makefile and STM32 for VSCode will use this definition. E.g.:
# C defines
C_DEFS = \
-DUSE_HAL_DRIVER \
-DSTM32G070xx \
-DCMSIS_device_header=\"stm32g0xx.h\"
This seems to be an issue with how CubeMX generates the code. As far as I know the CMSIS_V2 support is still experimental. I would advise you and be grateful to you if you could make a bug report for ST as this would help the community as a whole. This can be done here: https://community.st.com/s/topic/0TO0X000000BWVLWA4/bugreport
I will close this due to inactivity. I hope this resolved your issue. Should it however still persist feel free to reopen this issue.
Hello,
I tried to build a firmware generated with CubeMX for the STM32f070RBT6 MCU. The build fails because of a missing file : stm32g0xx.h.
The file has been generated and is located inside Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h The makefile contains the path as -IDrivers/CMSIS/Device/ST/STM32G0xx/Include
I don't understand why the build fails. The project contains only the files generated by CubeMX. I tried with main.c / main.cpp, changes nothing. Seems like the file is just not here but it is.
Here is the console trace :
Here is the extension yaml configuration (vanilla as i did not make any changes) :
Here is the CubeMX file of the project : STM32G070RBT6.zip