[X]关闭

求助,程序下到板子里面运行不了

文档创建者:王杜
浏览次数:7791
最后更新:2016-10-14
  我在往zynq上下了程序的之后,C的程序一直无法运行,请问这是怎么回事呢?(我试了教程里的hello world的例子,能成功连上板子,但是debug之后一直无法运行程序,未出现hello world的输出)
软件提示的错误如下:

22:45:12 ERROR        : Timeout occured while waiting to get reply for command "xconnect arm hw -cable type xilinx_tcf url TCP:127.0.0.1:3121 -debugdevice cpunr 1"
22:45:12 ERROR        : Unexpected error while launching program.
com.xilinx.sdk.targetmanager.TMException:
        at com.xilinx.sdk.targetmanager.internal.TM.connectToProcessor(TM.java:484)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runTargetSetup(XilinxAppLaunchConfigurationDelegate.java:464)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.debugApplication(XilinxAppLaunchConfigurationDelegate.java:701)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:311)
        at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
        at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
        at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
22:45:55 ERROR        : Failed to connect to hardware server on host '127.0.0.1' and port '3121'.
Reason: 'connect -url tcp:127.0.0.1:3121' is cancelled.
22:46:20 ERROR        : Unexpected error while launching program.
com.xilinx.sdk.targetmanager.TMException:
    Unknown Error Occured
    Cable is not powered-on

        at com.xilinx.sdk.targetmanager.internal.TM.connectToProcessor(TM.java:484)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runTargetSetup(XilinxAppLaunchConfigurationDelegate.java:464)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.debugApplication(XilinxAppLaunchConfigurationDelegate.java:701)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:311)
        at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
22:47:04 ERROR        : Unexpected error while launching program.
com.xilinx.sdk.targetmanager.TMException:
    Unknown Error Occured
    Cable is not powered-on

        at com.xilinx.sdk.targetmanager.internal.TM.connectToProcessor(TM.java:484)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runTargetSetup(XilinxAppLaunchConfigurationDelegate.java:464)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.debugApplication(XilinxAppLaunchConfigurationDelegate.java:701)
        at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:311)
        at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)



22:48:31 ERROR        : Unexpected error while opening JTAG UART:
java.lang.RuntimeException: Error while opening JTAG UART server: MDM Uart NOT Present in the System
Could not detect MDM peripheral on hardware. Please check:
    1. If FPGA is configured correctly
    2. MDM Core is instantiated in the design
    3. If the correct FPGA is referred, in case of multiple FPGAs
    4. If the correct MDM is referred, in case of a multiple MDM system


        at com.xilinx.sdk.targetmanager.internal.TM.startJTAGUARTServer(TM.java:951)
        at com.xilinx.sdk.debug.core.internal.comm.JTAGUARTStreamsProxy.<init>(JTAGUARTStreamsProxy.java:32)
22:49:35 INFO        : FPGA Cable Disconnected. All active launches will be terminated.
22:49:35 WARN        : Terminating existing sessions on processor ps7_cortexa9_0









发表评论已发布 1

leehowal

发表于 2016-10-14 10:15:13 | 显示全部楼层




你试一下在工程中debug as那个选项下操作debug来试下。


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则