Skip to main content
DRobe.4
Associate III
May 1, 2023
Solved

Missing File STM32G070 on Keil

  • May 1, 2023
  • 1 reply
  • 1524 views

uVision V5.38.0.0 Trying to compile first program for STM32G0 and don't even get to the real compilation errors yet.

Single file except for includes:

#include "stm32g070xx.h"

#include "stm32g0xx_hal.h"

The warning and error are:

ERNode_G070.c(61): warning: In file included from...

C:/Users/ashto/AppData/Local/Arm/Packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include\stm32g070xx.h(103): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]

 USART3_4_IRQn              = 29,    /*!< USART3, USART4 globlal Interrupts                                */

                                 ^~

C:/Users/ashto/AppData/Local/Arm/Packs/Keil/STM32G0xx_DFP/1.4.0/Drivers/CMSIS/Device/ST/STM32G0xx/Include\stm32g070xx.h(110): error: 'core_cm0plus.h' file not found

#include "core_cm0plus.h"              /* Cortex-M0+ processor and core peripherals */

        ^~~~~~~~~~~~~~~~

1 warning and 1 error generated.

Thanks.

This topic has been closed for replies.
Best answer by DRobe.4

Solved. I figured out how to add more include paths

1 reply

DRobe.4
DRobe.4AuthorBest answer
Associate III
May 1, 2023

Solved. I figured out how to add more include paths