Archive

Archive for December, 2010

The story about the uniJTAG

December 19th, 2010 9 comments


After a couple of weeks designing, and deciding how the layout should, we ordered a couple of PCBs to test.
This friday we recieved the PCBs and soldered the first prototype. The soldering went fine, except a minor mistake with the packaging of the ordered Atmel EEProm. After bending some of the EEProm leads, everything was soldered and we were ready to test.

When we connected the uniJTAG the first time, it enumerated, and 4 devices was identified – two serial ports, and two USB Serial Converters.
With the FT_Prog tool from FTDI we changed the settings stored in the EEProm to 1 JTAG device (245 FIFO+MPSSE) and 1 Serial device (232 UART).

Then we started researching on the software part – looking at datasheets, codes and other examples done with the FT2232 chip.
FTDI had a couple of DLL’s which could be used to talk to the FT2232. After a couple of hours we finally had a BitBanger application, made in Visual Basic .NET, using the D2XX.dll from FTDI!
This worked pretty well, so now for the JTAG part.

JTAG seemed a bit more difficult than BitBanging, even though FTDI had the FTCJTAG.dll for the JTAG protocol part. So after a search on Google, we ended up trying OpenOCD.
It was pretty difficult to get OpenOCD running, as we are running a 64-bit version of Windows. First thing to notice is that OpenOCD is open source, but is going to be build before it can be used. On a Windows machine this can be pretty tough, as you have to use Cygwin. Though we found an already build version of OpenOCD including the open source FTDI driver – both 32-bit and 64-bit.
The open source driver is used instead of the original FTDI driver, so we had to uninstall the FTDI driver in Device Manager, and then install the open source driver instead.

Many hours later we finally had OpenOCD working with our own interface configuration, matching the uniJTAG. We connected the JTAG port to one of our LPC boards and made quick chain scan.
Success, it found our LPC1766 device – now for programming. A couple of commands later the LED connected to our LPC board started blinking – programming succeeded.

We have tried scanning an FPGA JTAG chain with success, though we haven’t tried programming FPGA’s with the uniJTAG yet.
Now there is only one big thing left; to check if it’s possible to use the original driver and the FTCJTAG.dll and our own software.

Categories: Tools Tags:

uniJTAG – The Universal JTAG Programmer

December 19th, 2010 13 comments

We have been looking for an inexpensive Universal JTAG Programmer for while, but we haven’t been able to find one! Instead we decided to make our own, inexpensive, FT2232 based JTAG programmer – the uniJTAG!

uniJTAG


The uniJTAG is a 5 by 5 cm board, with a USB port at one side, and JTAG and IO headers at another.

The JTAG port supports a wide range of voltages, as it is connected to a couple of voltage translators (74LVC2T45). This makes the uniJTAG even more universal, as you can use it together with any JTAG’able device, running at 1.2V to 5.5V.

The IO header can be used as 8 single controllable IO’s, or it can be used as a full standard UART port. With a jumper you can chose whether the IO’s should be at a 5V level, or a 3.3V level.

The board has also an onboard EEProm for storing the FT2232 configurations, so the uniJTAG is a plug and play solution, and it automatically enumerates as a JTAG and a Serial device.


Read the whole story about the uniJTAG development here: http://blog.tkjelectronics.dk/2010/12/the-story-about-the-unijtag/

Categories: Tools Tags:

LPC1766 & LPC2368 STAMP boards

December 19th, 2010 No comments

This friday I recieved two STAMP boards as a donation from MCUZone.

LPC STAMP Board


They are both STAMP boards, which means almost every pin is spread out for easy interfacing, but there is also a JTAG port and a USB port on the board.

The first one contains NXP’s LPC1766, which is a Cortex-M3 ARM processor with 256kB FLASH, USB Device/Host/OTG, Ethernet and more.
The other one contains NXP’s LPC2368, which is an ARM7 with 512kB FLASH and almost the same periphirals as the LPC1766, except the USB Host and OTG function.

In the video below you can see the two boards, and the LPC1766 in action, blinking an LED

Categories: ARM, Development boards, Reviews Tags:

Silent night, holy night

December 19th, 2010 No comments

Yes, we’ve been very silent the last couple of months, but now there is a light at the end of the tunnel. Christmas is coming and we have a lot to present in the new year.
But for those who can’t wait till new year, we will be posting a couple of projects and videos in the following days. For the curious, theese projects will be about:

  • uniJTAG – Our Universal JTAG Board
  • Renesas RDKRX62N Evaluation Board
  • LPC1766 and LPC2368 boards
  • USB LED Dot Matrix Revision 2
  • VGA Breakout Board

So keep updated on our blog, our Youtube account, and our Twitter account!

Categories: TKJ Electronics Tags: