I have compiled code to transmit data from an STM32 board to the arduino uno and print it on the serial terminal. I have previously written code, similar to this and it work