EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: slugrustle on August 30, 2023, 10:59:36 pm

Title: JTAG Boundary Scan Software
Post by: slugrustle on August 30, 2023, 10:59:36 pm
I'd like to use JTAG boundary scan for bringup of new prototype boards at work.  These boards typically have one MCU on them, and I would be mostly testing the functionality of hardware controlled by the MCU.

It would be nice to be able to set pin states, read pin states, and maybe toggle a single pin at a particular frequency.  That would let me test things like static levels on logic circuits, gate drivers, relay coil drivers, etc.  as well as transition effects.  Right now, I basically do that manually by wiring the MCU in reset and soldering in my signal generator at I/O pins of interest.

What software is good for this purpose?  Does anyone else here use JTAG boundary scan in a similar way?

I've done a little looking around:

Finally, I suppose it is also possible to go hardcore and control an FTDI FT232HL or similar chip in MPSSE JTAG mode from a computer using FTDI's D2XX drivers.  I've used those drivers before, and they have a nice API.
Title: Re: JTAG Boundary Scan Software
Post by: RoGeorge on August 31, 2023, 05:20:03 am
Many of the JTAG programmers are made around a FTDI chip nowadays, so certainly it is possible to control one.  I bet there are plenty of such software projects out there, talking about the FOSS ones.  If you go that way, use the FT2232H (IIRC that's the dual channel and the fastest one, but please double check against the available dual channel FTDI models, I'm not sure about the last letter, a dual channel FTDI would be preferable so to have both JTAG and a serial port with your devboard at the same time, and with the same USB cable).

This link tells the JTAG state machine, and gives an example of controlling it:  https://www.fpga4fun.com/JTAG.html (https://www.fpga4fun.com/JTAG.html)  Not for FTDI chips, but I like that link for it keeps it simple and very brief about JTAG.

I've seen a SVF player for an Arduino as a JTAG programmer and saved these links (but didn't test it), it might need voltage level adapters if your hardware is not 5V tolerant:
https://eeandcs.blogspot.com/2015/08/jtagxsvf-library-for-arduino.html (https://eeandcs.blogspot.com/2015/08/jtagxsvf-library-for-arduino.html)
https://github.com/mrjimenez/JTAG (https://github.com/mrjimenez/JTAG)
Title: Re: JTAG Boundary Scan Software
Post by: Noy on August 31, 2023, 07:20:12 am
In our Company we are using Boundary Scan for EOL testing / functional testing.

We are using solutions from Göpel, the software is called "cascon":

https://www.goepel.com/embedded-jtag-solutions (https://www.goepel.com/embedded-jtag-solutions)

But i'm not sure if this is your prefered price region..