Post Go back to editing

JTAG pinout for using Altera UsbBlaster on BF609 EZ-BOARD

Hello,

I'm a little bit confused on how to properly connect Altera UsbBlaster to BF609 EZ-BOARD. Tool named bfin-jtag (of bfin linux toolchain) can properly detect UsbBlaster so it should be possible to use, but it has 10 pin connector while board JTAG connector has 14 pins.

So i looked at the board schematics and ICE-1000 pinout:

Also also there's this table from UsbBlaster:

So i get it i should connect TMS, TDI, TDO, TCK to their relatives, but do i need to connect anything to EMU and TRST? Does bfin-jtag use this signals via UsbBlaster? I couldn't find anything about it. And not less importantly: pin 1 on the ICE is GND - isn't it a mistake? Shouldn't it be Vcc instead as on the board and be connected to Vcc pin of UsbBlaster?

Thank you for your time

  • Okay, no replies, so I did the following connection:                 

    Altera UsbBlaster

    Header 2JTAG connector on EZ-BOARD

    1 TCK 8 TCK
    2, 10 GND 7, 9, 11, 13 GND
    3 TDO 14 TDO
    4 Vcc 1 Vcc
    5 TMS 6 TMS
    9 TDI 12 TDI

    EMU and TRST signals are left unused as EMU can be ignored and TRST seems to be able to be not used and replaced by special sequence via TMS.

    Here's the output i get when i try to detect JTAG devices in chain:

    alxpd@adi-dev-host:~$ bfin-jtag

     

    UrJTAG 0.10 #
    Copyright (C) 2002, 2003 ETC s.r.o.
    Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

     

    UrJTAG is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    There is absolutely no warranty for UrJTAG.

     

    warning: UrJTAG may damage your hardware!
    Type "quit" to exit, "help" for help.

     

    jtag> cable probe
    Found USB cable: UsbBlaster
    Connected to libftdi driver.
    jtag> detect
    warning: TDO seems to be stuck at 0
    jtag> print
    error: illegal state: Run "detect" first
    jtag>

     

    So obviously something's wrong here. I double-tested the cable - it's ok. I also know that UsbBlaster is working fine at least with Altera FPGA (and i have two of them UsbBlasters, they behave the same). I checked with an oscilloscope what the signals look like when i try to run "detect" command. Here's TMS (orange) against TCK (blue). Doesn't look healthy at all (note the time scale).

    Here's TDI (orange) against TCK (blue). Seems better but 1V amplitude still bothers me.

    What could be wrong here? Could it be driver? Did anyone try to get Linux working on blackfin DSP with Altera UsbBlaster? What was your experience?

    By the way, i'm running Ubuntu development host inside oracle virtual box in Win 10. Could virtual environment somehow screw driver-device communication?

  • Hello,

    I know 4 years is probably too late, however I am currently doing the same with a bf539 dsp, and from what I can tell to enable jtag emulation for debug you need to pull trst high with a 1k ohm resistor to vcc.

    I haven't attempted it yet, what are you trying to debug? Boundary scan? Etc,

    If you already figured it out I'd appreciate any help

    Thanks

  • Hello,

    I had to power up my board, once it was up, I could run detect:

    I'm using urjtag and openwince-jtag.