mithro / ixo-usb-jtag

usb-jtag - Altera USB Blaster Emulation with a FX2
GNU General Public License v2.0
69 stars 30 forks source link

Openocd with Xilinx Platform Cable (DLC9G) #8

Open rajeshkrmeena opened 5 years ago

rajeshkrmeena commented 5 years ago

I tried to run openocd with Xilinx Platform Cable (DLC9G) but failed. I used 'usb-jtag.cfg' for configuring Interface (Platform Cable) . But failed to run Openocd. The following error message is shown with Openocd

Openocd debug log is following .... Debug: 83 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 84 5 command.c:143 script_debug(): command - init ocd_init Debug: 86 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 87 5 command.c:143 script_debug(): command - ocd_target ocd_target init Debug: 89 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 90 5 command.c:143 script_debug(): command - ocd_target ocd_target names Debug: 91 5 target.c:1324 handle_target_init_command(): Initializing targets... Info : 92 5 ublast_access_ftdi.c:85 ublast_ftdi_init(): usb blaster interface using libftdi Error: 93 11 ublast_access_ftdi.c:91 ublast_ftdi_init(): unable to open ftdi device: device not found Debug: 94 11 command.c:626 run_command(): Command failed with error code -100 User : 95 11 command.c:687 command_run_line():

I think, the firmware is not loaded properly because message of lsusb : Bus 003 Device 004: ID 03fd:000f Xilinx, Inc. is showing proper ID.

Can you help me, how I can load firmware properly for openocd.

vengelhardt commented 2 years ago

Hi, First you have to ensure to have proper rights on your USB port. Check on which port your USB is plugged by typing lusb. then chmod 666 /dev/bus/usb/001/???

Then load the hex file with : fxload -D /dev/bus/usb/001/xxx -t fx2 -I /lib/firmware/ixo-usb-jtag/usbjtag-xpcu_x.hex

thomascp commented 2 years ago

Hi @rajeshkrmeena, Did you succeed? I saw you are involved in another dicsussion. Any luck to enable openocd ontop of Xilinx Platfrom Cable?

rajeshkrmeena commented 2 years ago

Xilinx Platform Cable (DLC9G) firmware was corrupted and I was not able to program the firmware in DLC9G hence, later I did not use it. But, I successfully enabled Openocd with Digilent Cables.

thomascp commented 2 years ago

Thanks for the quick reply! @rajeshkrmeena.