Hi Francesco Salvatore,
What the voltage your are powering on the K64 MCU?
Take care, the VDD supply voltage is 1.71-3.6V.
I think, you should check your power circuit, when your use 5V supplier, did you converter it to 3.3V? Did you measure the MCU voltage?
Besides, use the oscilloscope test the UART TX and RX pin, whether the UART communicate wave is correct.
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------