最近开始学习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中的一样然后就可以连接上了