首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

关于Zynq平台运行SDK程序的错误解决方法

关于Zynq平台运行SDK程序的错误解决方法

按照书上的教程,写了一个流水灯的例子。先Program FPGA,然后Run as -> Launch on Hardware,就报下面错误:
16:22:28 ERROR        : Unexpected error while launching program.
java.lang.RuntimeException: Error while running ps7_init method.
Cannot Read from target

MMU page translation fault
at com.xilinx.sdk.targetmanager.internal.TM.run_ps7_init(TM.java:1069)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runTargetSetup(XilinxAppLaunchConfigurationDelegate.java:403)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runApplication(XilinxAppLaunchConfigurationDelegate.java:505)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:254)

解决方法是:
打开串口助手,Reset板子,启动到u-boot的时候,按任意键,不要让系统进入Linux,只停留在uboot阶段。如下,
U-Boot 2012.04.01-dirty (Jun 24 2013 - 10:59:35)

DRAM: 512 MiB
WARNING: Caches not enabled
MMC: SDHCI: 0
Using default environment

In: serial
Out: serial
Err: serial
Net: zynq_gem
Hit any key to stop autoboot: 0

然后,再lauch on hardware就OK了。
16:24:20 INFO        : ps7_init is completed.
16:24:20 INFO        : ps7_post_config is completed.
16:24:20 INFO        : Processor reset is completed for ps7_cortexa9_0

原文链接: http://craftor.org/?p=102
记录学习中的点点滴滴,让每一天过的更加有意义!
返回列表