2026-01-31 11:00 AM - last edited on 2026-01-31 12:21 PM by mƎALLEm
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
error occurs when any I2C interrupt is enabled
2026-01-31 12:09 PM
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.
2026-02-03 12:51 AM
Hello @Viktro
Please refer to the example below which enable the RX interrupt:
2026-02-03 1:42 AM
thanks for the answers. further analysis of the problem I voiced showed that in an empty project with the same configuration, enabling interrupts does not cause an error. Only when I add the library for working with lsm303dlch. I will look into it further.