xil_printf( "The data at %x is %x \n\r",XPAR_AXI_BRAM_CTRL_1_S_AXI_BASEADDR + num*4,rev);
}
xil_printf("------The test is end!------\n\r");
cleanup_platform();
return 0;
}
复制代码
2.6 设置串口终端
2.7 把bit文件烧写到FPGA
2.8 配置软件烧写文件
2.9 如图所示配置
2.10 如图所示配置
2.11 串口终端打印输出信息如下:
------The test is start...------
The data at 80000000 is 10000000
The data at 80000004 is 10000001
The data at 80000008 is 10000002
The data at 8000000C is 10000003
The data at 80000010 is 10000004
The data at 80000014 is 10000005
The data at 80000018 is 10000006
The data at 8000001C is 10000007
The data at 80000020 is 10000008
The data at 80000024 is 10000009
The data at 80000028 is 1000000A
The data at 8000002C is 1000000B
The data at 80000030 is 1000000C
The data at 80000034 is 1000000D
The data at 80000038 is 1000000E
------The test is end!------
PS:在点击Run后出现了这个错误,找了很久没发现问题,最后重启了下电脑解决。
Failed to open Cable Node jsn1 on TCP:127.0.0.1:3121
at com.xilinx.sdk.targetmanager.internal.TM.isFPGAConfigured(TM.java:372)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.isFpgaConfigured(XilinxAppLaunchConfigurationDelegate.java:381)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:290)
at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
你好,我按照教程做了。最后串口终端什么信息都没有显示。
只有在console里显示“Process STDIO not connected to console.
If you'd like to see UART output in this console, please modify STDIO settings in the Run/Debug configuration.”
可以不用SDK中的terminal,用putty来连接开发板吗?具体应该怎么连接?十分感谢
你好,按照教程做了,不知道为什么出现这样的错误
Cannot access DDR: the controller is held in reset
at com.xilinx.sdk.targetmanager.internal.TM.downloadELF(TM.java:666)
at com.xilinx.sdk.debug.core.internal.AppRunner.run(AppRunner.java:129)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runApplication(XilinxAppLaunchConfigurationDelegate.java:605)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:293)
at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)