As the other post suggests, this could be due to the one of the many reasons. Are you wanting to use the A53 Cores or an R5 Core to interact with UART? would recommend starting off with the A53 cores. Also would be good to check which UART pins the board you have are connected to UART0? UART1? Is this an dev kit or Custom Board?
If you are using the BSP provided by the vendor you got the board from, should work.