Zynq 平台运行SDK程序错误以及解决方法

21 篇文章 2 订阅
17 篇文章 6 订阅

今天调试了一下Zynq的PL和PS部分,所用的平台是Miz702 。PL部分还算顺利,但是PS部分出现了一些问题:

问题1:在SDK程序编译通过后,点击RUN 出现以下错误:Zynq MMU page translation fault

我的解决方法:把SD卡拔掉或者选择Reset Entire System 而不是选择Reset Process

问题2:刚开始是可以正常运行的,有一次修改完代码后,重新编译,出现 No Target with ID 64 in the System

解决方法:关掉当前的SDK工程,在Vivado里重新启动SDK,新建工程。问题解决!原因暂时不知道。


更新时间2015-12-3 13:20:18

不选择红框有时会出错



配置正确的log信息如下:

Launching XSDB server: xsdb.bat -s D:/Xilinx/SDK/2015.2/scripts/xsdb/xsdb/xsdb-server.tcl
13:09:02 INFO : XSDB server has started successfully.
13:09:04 INFO : Processing command line option -hwspec F:/Miz702/Miz702_code/Miz702_use_AXI_MGPO_AXI_GPIO/AXI_MGPO_AXI_GPIO_TEST/AXI_MGPO_AXI_GPIO_TEST.sdk/AXI_GPIO_TEST_wrapper.hdf.
13:09:06 INFO : Checking for hwspec changes in the project AXI_GPIO_TEST_wrapper_hw_platform_0.
13:09:31 INFO : Connected to target on host '127.0.0.1' and port '3121'.
13:09:31 INFO : 'targets -set -filter {jtag_cable_name =~ "Platform Cable USB 00000000000000" && level==0} -index 1' command is executed.
13:09:40 INFO : FPGA configured successfully with bitstream "F:/Miz702/Miz702_code/Miz702_use_AXI_MGPO_AXI_GPIO/AXI_MGPO_AXI_GPIO_TEST/AXI_MGPO_AXI_GPIO_TEST.sdk/AXI_GPIO_TEST_wrapper_hw_platform_0/AXI_GPIO_TEST_wrapper.bit"
13:10:01 INFO : ps7_init is completed.
13:10:01 INFO : ps7_post_config is completed.
13:10:01 INFO : Processor reset is completed for ps7_cortexa9_0


问题2其它解决方法(留着以后用):

1.

Is this a Win7 PC? Do you recall getting the Firewall warnings? Did you make sure to check the boxes to Allow Access? You can check this with the following steps:

  1. Open Control Panel
  2. Select Windows Firewall
  3. Select "Allow a program or feature through Windows Firewall"
  4. Look for "eclipse"
    • You should have an entry for each version of Xilinx tools you have installed. Select and click Details to see which version is which. I have both Domain and Home/Work boxes checked.
  5. 2013.4 and prior have entries for hw_server
  6. Look for "Java(TM) Platform SE binary"
  7. Look for "rdi_xmd" for 2014.1 and newer
  8. 2013.3 has an entry for vcse_server
  9. 2013.4 and prior have entries for "xmd"

 
We have heard of corrupt Xilinx tool installs from users who installed from an archive that wasn't cross-checked with the checksum. Did you check the archive checksum before installing?
 
Have you tried the command-line XMD advice given to you on the Xilinx forums?
http://forums.xilinx.com/xlnx/board/crawl_message?board.id=EMBEDDED&mess...
 
Bryan

2. One more thought -- did you modify the Run Configuration to NOT source the initialization TCL? That would be bad.

3.Within the SDK once you have created an application right click on the application in the Project Explorer pane on the left. Select either "Run As" or "Debug As" and select 'Configurations. In the "Target Setup" tab in the configuration you can make sure that "Run ps7_init" is checked.




  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Zynq开发平台是由赛灵思公司推出的一种可扩展的嵌入式开发解决方案,在此平台上,使用者可以将处理器系统(PS)与可编程逻辑(PL)相结合,以构建高性能的嵌入式系统。 SDK(Software Development Kit)是赛灵思提供的用于开发和调试Zynq开发平台应用的集成开发环境(IDE)。下面是一份基本的Zynq开发平台SDK应用教程: 1. 安装SDK:首先,下载并安装最新版本的Zynq开发平台SDK。安装过程中可能需要安装其他依赖软件和工具。 2. 创建新工程:打开SDK,点击“File”菜单,选择“New”-“Application Project”,填写工程的名称和位置,然后选择目标设备和工程模板。 3. 添加源文件:在工程导航器中,右击工程名,选择“New”-“Source File”或者“New”-“Source Folder”,添加你的源代码文件。 4. 设置编译选项:在工程导航器中,右击工程名,选择“Properties”,在对话框中选择“C/C++ Build”-“Settings”-“Tool Settings”-“ARM v7 gcc compiler”,设置编译选项如优化等级、调试信息等。 5. 编写代码:在添加源文件的目录下,双击源文件,在编辑器中编写你的代码。可以使用C或C++编程语言。 6. 编译和生成可执行文件:点击SDK工具栏上的“Build”按钮进行编译。在编译输出窗口中查看编译的状态和任何错误或警告信息。成功编译后,可执行文件(.elf)将生成在工程的Debug或Release文件夹中。 7. 调试和运行应用:将Zynq开发平台与PC连接,点击SDK工具栏上的“Debug”按钮进行调试。可以设置断点、监视变量和单步调试。成功调试后,点击“Run”按钮将应用上传并运行到目标设备上。 以上是一个基本的Zynq开发平台SDK应用教程的概述。通过SDK,开发者可以使用赛灵思提供的一系列工具和资源来开发、调试和运行他们的嵌入式应用程序

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值