Compliation failed for STM32G0B1RCT6 MCU with STM32cube framework

When you flash the .pio/build/<env>/firmware.bin using STM32CubeProgrammer instead of OpenOCD, does it work?