MM1 Serial JTAG interface board

From Milkymist Wiki

Jump to: navigation, search

Contents

[edit] Hardware

File:install2-300x200.jpg

 Features:
 * Chip: FT2232H
 * USB 2.0  480 Mbs interface  VID:PID == 20b7:0713
 * 3.3V UART with speeds up to 12 Mbs
 * 2.0-3.3 V JTAG

Note: On MM1 RC2 you might need to clip the serial header pins in order to align JTAG and serial connector with the interface card.


[edit] Software

[edit] Enabling UART kernel support

Recent Linux kernels contain kernel support, enable CONFIG_USB_SERIAL_FTDI_SIO in your kernel config file:

 make menuconfig
 
 Select:
  Device drivers/
    USB Support/
      USB Serial Converter Support/
        USB FTDI Single Port Serial Driver

This will build the ftdi_sio module. Then after loading the module you should see something like below in the dmesg.

 [ xxxx.xxxxxx] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0

Now connect your terminal emulator of choice and have fun.

[edit] Using the JTAG interface

The JTAG enables you to:

1. Reprogram the FPGA or flash chip of the MM1, see Flashing the Milkymist One

2. Do some JTAG assisted debugging, TODO

[edit] Compiling JTAG tools

Get the source:

 # git clone git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag

Alternatively you can download a snapshot from [gitweb] which saves some space and bandwidth

Create the configure files

Before you attempt to compile URJTAG make sure you have the following:

1. libftdi-1.0 Build the libftdi-1.0 and new ftdi eeprom

you can skip building the eeprom tool if your device is already preconfigured.

2. gettext

A recent version of gettext is needed if autogen complains about the missing cvs

 ./autogen.sh

Once you see ft2232 listed as a cable driver, you are ready for the next step.

Make & install

 make
 make install

Test

 jtag
 > cable milkymist
 > detect

Your FPGA type should be detected.

Personal tools