Hello,
it looks like that you don't have implemented correctly callbacks for printf function. You can look at this example - https://community.nxp.com/docs/DOC-335240 for inspiration. The difference is only in the physical device - UART instad FlexIO.
Jiri