STM32 L0 series with Arduino IDE

I'm trying to use ARDUINO IDE for STM32 L0 series. I instaled STM32 boards group in board manager. For F1 series and F4 I can verify code from example blink, but for L0 series I have error.

C:\Users\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\variants\STM32L0xx\L051C(6-8)(T-U)\PeripheralPins_RHF76_052.c:17: error: unterminated #if
   17 | #if !defined(CUSTOM_PERIPHERAL_PINS)
exit status 1
Error compiling for board Generic STM32L0 series.

#if undef ….

I think you need this.

Ou! I should change #if !defined to #if undef? :grin:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.