0
点赞
收藏
分享

微信扫一扫

确认Xilinx SDK中print函数使用UART串口号的方法


以XCZU21DR的工程为例,system.hdf中UART摘抄如下:

Cell

Base Addr

High Addr

psu_uart_0

0xff000000

0xff00ffff 

psu_uart_1

0xff010000

0xff01ffff

右键print函数选择Open Declaration -> 右键outbyte函数选择Open Declaration -> 右键STDOUT_BASEADDRESS函数选择Open Declaration,看到如下定义:

#define STDOUT_BASEADDRESS 0xFF000000

所以可知print使用的是UART0。

若想print函数使用UART1,只需修改为:

#define STDOUT_BASEADDRESS 0xFF010000

确认Xilinx SDK中print函数使用UART串口号的方法_Xilinx

 

举报

相关推荐

0 条评论