Using UART with "Stm32 Nucleo64 F303RE" and the arduino IDE 2.0


I have some trouble with the arduino code. I cannot send or receive any data over UART protocol with my Nucleo and the arduino IDE 2.0. I need to use the pins PC12 as Tx and PD2 as Rx and I cannot find any code that works. Has anyone an idea how to configure UART for those pins?

Please help. Thanks!

You may get more help here: