新建bd文件。

arm串口打印helloworld

点击+号,添加ZYNQ处理器模块。

arm串口打印helloworld

双击模块打开配置。

arm串口打印helloworld

取消勾选Enable Clock Resets和GP Master AXI Interface

arm串口打印helloworld

勾选UART1,对应管脚48、49。

arm串口打印helloworld

取消对外提供的时钟。

arm串口打印helloworld

DDR3配置,选择型号和位宽。

arm串口打印helloworld

点击Run Block Automation,自动连接模块。

arm串口打印helloworld

生成输出文件,包括bd图表文档里面所有的IP核的例化硬件代码文件、仿真相关文件等。

arm串口打印helloworld

自动创建工程的顶层例化文件。

arm串口打印helloworld

导出硬件描述文件。该文件会在后面的软件SDK环境中用到,也是整个软件代码的硬件核心文件。

arm串口打印helloworld

启动SDK。File→Launch SDK。

arm串口打印helloworld

 

2. SDK下的代码开发

新建一个application工程。File→New→Application Project。

arm串口打印helloworld

连接开发板。进入调试。

arm串口打印helloworld

arm串口打印helloworld

查看串口号。

arm串口打印helloworld

打开串口工具。Window→Show View→Other。

arm串口打印helloworld

进行串口连接并进行设置。

arm串口打印helloworld

arm串口打印helloworld

运行程序,可以看到Terminal窗口中出现了helloworld输出。

arm串口打印helloworld

相关文章: