歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Ubuntu下ZedBoard USB-Jtag驅動安裝及雙核調試

Ubuntu下ZedBoard USB-Jtag驅動安裝及雙核調試

日期:2017/3/1 10:08:25   编辑:Linux編程

開發環境說明 Ubuntu 12.04 LTS

Xilinx最新的基於zynq-7000 AP SOC平台的ZedBoard開發板的USB-Jtag驅動安裝方法

運行前准備
% sudo dpkg-reconfigure -plow dash
Install as /bin/sh? No
這個主要是為了能夠安裝由mento 提供的xilinx的gnu toolchain,否則安裝過程中arm工具鏈就無法安裝上去
1.在運行Xilinx的ISE安裝工具時,運行命令為./xsetup,但是會提示說安裝USB Cable驅動失敗,暫時可以不理
2.下載的Digilent Plugin和Adepet Runtime
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,768&Prod=DIGILENT-PLUGIN
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,66,828&Prod=ADEPT2

下載完成後解壓安裝,一般目錄下都有一個install.sh文件,使用sudo 運行

注意一定要安裝Digilent Plug-in for Xilinx 14.x否則就會出現impact無法識別digilent usb的驅動,這個的文件的目錄位於$HOME目錄下的.cse文件夾下
完整路徑為~/.cse/lin/14.2/plugins/Digilent/libCseDigilent/
在該路徑下需要放置相關插件
libCseDigilent.so 和 libCseDigilent.xml

如果沒有這個插件運行impact將無法識別zedboard

在export to sdk的過程中出現了如下錯誤
ERROR:EDK -
Error while running "gmake -f system.make exporttosdk".
ERROR: [Common 17-49] Internal Data Exception: xps application failed!

之前以為是路徑錯誤,結果發現原來是gmake命令不存在的緣故,這裡將自己創建一個gmake的鏈接指向make,命令如下
sudo ln -s /usr/bin/make /usr/bin/gmake

連接另外一個CPU的芯片的方法
在xmd命令行下 connect arm hw -debugdevice cpunr 2
XMD% connect arm hw -debugdevice cpunr 2

CortexA9 Processor Configuration
-------------------------------------
Version.............................0x00000003
User ID.............................0x00000000
No of PC Breakpoints................6
No of Addr/Data Watchpoints.........1

Connected to "arm" target. id = 65
Starting GDB server for "arm" target (id = 65) at TCP port no 1235
XMD% User Interrupt, Processor Stopped at 0x001000a8

前面采用正常的下載程序的方式進行Debug,連接上去以後不要運行

然後采用remote debug的方式連接上去
IP Address 設置為localhost,Port設置為1235

然後用targets命令可以看到當前連接到主板上的cpu和fpga的調試TAP如下
targets
------------------------------------------------
System(0) - Hardware System on FPGA(Device 1) Targets:
------------------------------------------------
Target(64) - Cortex-A9(1) Hardware Debug Target
Target(65) - Cortex-A9(2) Hardware Debug Target*
Target(352) - Cortex-A9 CoreSight Debug Target

Copyright © Linux教程網 All Rights Reserved