初用xilinx EDK10.1的XMD遇到的一些问题

来源:互联网 发布:网络交易中间商 模式 编辑:程序博客网 时间:2024/06/07 00:53

最近开始学习EDK,在XPS中写完程序后使用XMD打算可以debug一下但是总是出现如下错误:

Failed to run ELF executable on Target. Error initializing: XMD couldn't connect to remote target. Error::ERROR: Could Not Detect MDM Peripheral on Hardware. Check: 1. If FPGA is Configured Correctly 2. MDM Core is Instantiated in the Design
Error initializing: XMD couldn't connect to remote target. Error::ERROR: Could Not Detect MDM Peripheral on Hardware. Check: 1. If FPGA is Configured Correctly 2. MDM Core is Instantiated in the Design

反反复复摸索了好长时间,大致有一下几点原因吧:

1.1确定PPC或MicroBlaze配置正确,在最初选择debug选项时,以Microblaze为例选择On-chip H/W debug module


1.2在所有外设都配置好后,EDK中需要generate netlist,generate bitstream;

1.3确定MDM是否设置好,software platform setting->software platform->xmdstub_periheral是否设置成debug_module。

1.4XPS中project->property中c/c++builder选项中configuration为Debug;

1.5我试了下在Run->XMD Taget  connection中connection type选择hareware(MDM)是可以连接上的但是xmdstub就不行了。

大概差不多总结这么多,以后继续加油了,这东西网上资料还真少。

还有就是如果是从EDK进入dubugger的话好像是先lanuch XMD,然后打开确保端口号和XMD中的一样然后就可以连接上了

原创粉丝点击