GRMON3-UM
June 2019, Version 3.1.0
58 www.cobham.com/gaisler
On Linux systems, the path to Quartus shared libraries has to be defined in the LD_LIBRARY_PATH environment
variable, i.e.
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/quartus/linux
$ grmon -altjtag
GRMON3 LEON debug monitor v3.0.0 32-bit professional version
...
On Windows, the path to the Quartus binary folder must the added to the environment variable PATH, see Ap-
pendix F, Appending environment variables in how to this. The default installation path to the binary folder should
be similar to C:\altera\11.1sp2\quartus\bin, where 11.1sp2 is the version of Quartus.
Extra options for Altera Blaster:
-altjtag
Connect to the target system using Altera Blaster cable (USB or parallel).
5.3.4. FTDI FT4232/FT2232
JTAG debugging using a FTDI FT2232/FT4232 chip in MPSSE-JTAG-emulation mode is supported in Linux
and Windows. GRMON has support for two different back ends, one based on libftdi 0.20 and the other based
on FTDI's official d2xx library.
When using Windows, GRMON will use the d2xx back end per default. FTDI’s D2XX driver must be installed.
Drivers and installation guides can be found at FTDI's website [http://www.ftdichip.com].
In Linux, the libftdi back end is used per default. The user must also have read and write permission to the device
file. This can be achieved by creating a udev rules file, /etc/udev/rules.d/51-ftdi.rules, containing
the lines below and then reconnect the USB cable.
ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="666"
ATTR{idVendor}=="0403", ATTR{idProduct}=="6011", MODE="666"
ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", MODE="666"
ATTR{idVendor}=="0403", ATTR{idProduct}=="cff8", MODE="666"
Extra options for FTDI:
-ftdi [libftdi|d2xx]
Connect to the target system using a JTAG cable based on a FTDI chip. Optionally a back end can be
specified. Defaults to libftdi on Linux and d2xx on Windows
-ftdidetach
On Linux, force the detachment of any kernel drivers attached to the USB device.
-ftdimhz <mhz>
Set FTDI frequency divisor. Values between 0.0 and 30.0 are allowed (values higher then 6.0 MHz are
hardware dependent) The frequency will be rounded down to the closest supported frequency supported
by the hardware. Default value of mhz is 1.0 MHz
-ftdivid <vid>
Set the vendor ID of the FTDI device you are trying to connect to. This can be used to add support for
3rd-party FTDI based cables.
-ftdipid <pid>
Set the product ID of the FTDI device you are trying to connect to. This can be used to add support for
3rd-party FTDI based cables.
-ftdigpio <val>
Set the GPIO signals of the FTDI device. The lower 16bits sets the level of the GPIO and the upper bits
set the direction.
Bits 0-3 Reserved
Bits 4-3 GPIOL 0-3 level
Bits 8-15 GPIOH 0-7 level
Bits 16-19 Reserved
Bits 20-23 GPIOL 0-3 direction
Bits 24-31 GPIOH 0-7 direction