博客首页 | 排行榜 |

king0105的博客

个人档案
博文分类
【FPGA博客大赛】SDK11.2中遇到的一些问题  2010/02/05 15:14

11.2版本中的SDK设计流程有了一定的修改,在旧的版本中,打开SDK时会自动生成软件平台,比如microblaze_0,但在新的版本中,需要自己建立软件平台。然后再建立软件工程。

SDK

图中的TestApp就是自己建立的软件平台,而TestApp_Memory为软件工程。

SDK中可以根据需要调整硬件环境,可以通过菜单Hardware Design Import Hardware Design... 会弹出下图所示对话框。通过选择包含所需硬件设计的.xml文件来更改硬件平台,该文件可以有XPS生成。

Add Hardware

在做EDKlab5时,遇到了一个很奇怪的问题。就是SDKDebug功能无法正常使用。

这个问题是这样的,首先,在Debug的开始阶段,软件无法定位到main函数的第一条语句,或者就一直显示程序在运行中,但是板子的LED灯却没有变化,这由说明该程序没有运行。而且不能使用暂停和停止,使用的话会报错。很奇怪!

之后我想了个怪招,通过XMD命令行的方式,键入stop停止运行程序,然后键入rst,使系统重启,接着就可以按继续按钮,程序会停留在函数的第一条语句。

最后,询问了Parimal,他说是由于xbash中的一个问题导致了SDK出现错误。其解决方案可以参见Xilinx网站上的回答AR #33068。其详细的解决方案如下:

The Xilinx Microprocessor Debugger (XMD) is a key part of SDK's communication with the FPGA. XMD runs on top of Xilinx's distribution of bash called xbash. Some of SDK's communication problems are linked to a problem found in xbash. A tactical patch has been created to address this problem which occurs only on Windows.

To install the patch:

1. Make a backup of C:\Xilinx\11.1\EDK\bin\nt\unwrapped\xbash.exe
2. Download the file at:
ftp://ftp.xilinx.com/pub/swhelp/ise11_updates/33068_11_xbash_patch.zip

3. Extract the contents of the file to C:\Xilinx\11.1\EDK

The patch is intended for both 11.1 and 11.2. This fix will become mainstream in the 11.3 release of the software.

Note: Installing this patch will disable XMD's auto completion feature. To re-enable auto completion while using XMD outside of SDK, set the environment variable RUNNING_EDK_XBASH to 1. The environment variable must be turned off when using SDK.

另外还需要另一个补丁,相关的回答编号为AR #32858,其解决方案如下:

A tactical patch has been created to address this issue. You can download the patch from:
ftp://ftp.xilinx.com/pub/swhelp/ise11_updates/32858_111_sdk_patch.zip

Unzip the archive into C:\Xilinx\11.1\EDK.

In addition to installing the patch, Window XP users will need to use Cygwin version 1.5.20 or newer. This can easily be accomplished for Windows XP users by changing the C:\Xilinx\11.1\EDK\cygwin directory to C:\Xilinx\11.1\EDK\cygwin_xp and the C:\Xilinx\11.1\EDK\cygwin_vista to C:\Xilinx\11.1\EDK\cygwin.


This problem is scheduled to be fixed in 11.3.
 

另外,在Debug模式下不要使用继续、暂停和停止功能。如果需要暂停,在XMD CONSOLE窗口中输入stop,如果需要继续,就键入con,停止功能在最后暂停程序之后再使用。一旦停止按钮按下之后,再使用Debug功能就会出错。所以停止按钮最好在最后再按。

这些奇怪的问题,会在11.3中解决。

类别:EDK基础实验 |
上一篇:【FPGA博客大赛】Chipscope iba核中总线宽度不同带来的错误 | 下一篇:【FPGA博客大赛】Petalinux移植遇到的问题
以下网友评论只代表其个人观点,不代表本网站的观点或立场