AP_Periph on STM32G0B1

Hi, I’ve been trying to port AP_Periph to STM32G0B1 mcu on my custom-made board. The board only contains RGB LEDs and buzzer, so its purpose is to light the lamps, and make some beeps. So far I managed to prepare hwdef.dat and hwdef_bl.dat files, create .py file with alternate functions pin map. Unfortunately, when i try to build firmware I get a lot of errors. Execution reaches
[7/7] Processing
and then stops on

[15/99] ChibiOS: Compiling hal_pal_lld.c

First error looks like this:

In file included from ../../modules/ChibiOS/os/common/startup/ARMCMx/devices/STM32G0xx/cmparams.h:68,
                 from ../../modules/ChibiOS/os/common/ports/ARMCMx/chcore.h:70,
                 from ../../modules/ChibiOS/os/rt/include/ch.h:112,
                 from ../../modules/ChibiOS/os/common/ports/ARMCMx/chcore.c:28:
../../modules/ChibiOS/os/common/ext/ST/STM32G0xx/stm32g0xx.h:105:3: error: #error "Please select first the target STM32G0xx device used in your application (in stm32g0xx.h file)"
  105 |  #error "Please select first the target STM32G0xx device used in your application (in stm32g0xx.h file)"
      |   ^~~~~
[details="Summary"]
This text will be hidden
[/details]

Have you any idea why this happens?
Would much appreciate any help or comment on this problem.
Regards,
Jędrzej