The pinout for STM32G070RBT6 has an error. There are two pins labelled PA1 and two labelled PA2.
Pin 28 should be PB1, not PA1.
Pin 29 should be PB2, not PA2.
STM32 library error
Re: STM32 library error
Thank you for the report. We confirm the error and will fix it in the next update.