k510怎么写代码调用uart串口输出到单片机啊

不是有参考工程吗?
https://canaan-docs.100ask.net/Application/CommunicationPeripherals/01-UARTUSerGuide.html#_2-uart的进阶使用