Configure the UART in MCC Once you Geneate the MCC code it will have dealt with initialising the UART ready for you to use it. In your code Other UART functions MCC will have created a few useful functions you can call – see the file it generated in: /config/default/peripheral/uart/