Microchip JTAG DirectC is a command line application used to program Microchip Polarfire/Polarfire SoC over JTAG, using a BeagleBone Black or Raspberry Pi.
- PolarFire/Polarfire SoC
- BeagleBone Black or Raspberry Pi 2 and newer model
Libero SoC Design Suite should be used to generate and extract the bitstream.
- Clone or download the Icicle kit reference design repository
- Open Libero SoC Design Suite
- Open the execute script dialog (CTRL+U)
- Execute the "MPFS_ICICLE_KIT_REFERENCE_DESIGN.tcl" script
- Add EXPORT_FPE argument to run the full design flow
- With the EXPORT_FPE argument, the design flow will automatically start running. There is no action required by the user until the design flow is completed
- After completion, in the Design Flow tab, go to Handoff Design for Production, double-click Export Bitstream and select export
- Choose DAT as the format in the Export Bitstream window and click OK to generate the DAT file in the default location:
icicle-kit-reference-design/MPFS_ICICLE/designer/MPFS_ICICLE_KIT_BASE_DESIGN/export
Connect the following GPIO pins of BeagleBone Black or Raspberry Pi to the JTAG Programming Header (J23) on the target device.
Target Device |
BeagleBone Black |
Raspberry Pi |
---|---|---|
TCK | P9_12 (GPIO_60) | Pin 07 (GPIO04) |
TDI | P9_15 (GPIO_48) | Pin 03 (GPIO02) |
TMS | P8_15 (GPIO_47) | Pin 05 (GPIO03) |
TRST | P8_16 (GPIO_46) | Pin 08 (GPIO14) |
TDO | P8_26 (GPIO_61) | Pin 10 (GPIO15) |
GND | GND | GND |
Note:
- "Raspberry Pi is a trademark of Raspberry Pi Foundation"
- "BeagleBone is a trademark of BeagleBoard.org®"
Before building the application, copy the DAT file to the working directory.
To build the application:
$ make
To enable JTAG programming:
$ ./directc_programmer -a`<action>` programmingfile.dat
To display help:
$ ./directc_programmer -h
To program the bitstream, select the program action:
$ ./directc_programmer -aprogram programmingfile.dat
For example when the device_info action is selected:
$ ./directc_programmer -adevice_info programmingfile.dat
Getting Started with BeagleBone Black
Getting Started with Raspberry Pi
Polarfire SoC Icicle Kit quick start guide