cancel
Showing results for 
Search instead for 
Did you mean: 

Error when enabling I2C interrupt in STM32G030F6P6

Viktro
Associate II

STM32G030F6P6 microcontroller CubeIDE environment when enabling interrupt for I2C an LL_I2C_EnableIT_RX (I2C2); error occurs
_______stm32g030xx.h:618:29: error: expected declaration specifiers or '...' before '(' token

Viktro_0-1769885819361.png

error occurs when any I2C interrupt is enabled

 

1 REPLY 1
TDK
Super User

There are no errors in the code you posted.

If you encounter errors in CubeMX generated code, please include the IOC file used to generate that code.

If you feel a post has answered your question, please click "Accept as Solution".