Board logo

标题: 关于Zynq平台运行SDK程序的错误解决方法 [打印本页]

作者: pengpengpang    时间: 2014-12-7 20:49     标题: 关于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




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0