Hi,
I do not know the background of the error, what is the error message of the "assert failure", I suppose that the gated clock of the corresponding uart module is not enabled, or the uart pins are not assigned.
Pls tell us the error message.
BR
XiangJun Rong