Site Search

hello.

I'm Hanako Altera, and I provide technical support for Altera® FPGA products at Macnica.

 

MAX ® 10 has a function that allows you to use 4 pins of JTAG pins (TCK, TMS, TDI, TDO) used for programming etc. as user I/O pins in user mode.
In Quartus ® Prime, adapt with the following options:

 

Enable JTAG pin sharing = On

 

This option is found in the General category of Assignments menu > Device > Device and Pin Options.

When this feature is turned on, the JTAGEN pins that can be used as standard user I/O pins during user mode become dedicated pins!
By driving this JTAGEN pin high or low on the board, the JTAG pins in user mode can be dedicated pins or user I/O pins.

Precautions when using as user I/O pins

Note the following when using JTAG pins as user I/O pins in user mode.

 

★ In user mode, assign all JTAG pins as single-ended I/O pins or voltage-referenced I/O pins.

(The recommended input buffer is a Schmitt trigger input.)

 

* In this case, the TDO pin is used as an output or bidirectional pin.

* If you program a design with the TDO pin as an input attribute (including the As input tri-stated setting for unused pin processing),

Even if JTAGEN is pulled high, JTAG access will not be possible and you will not be able to reprogram or erase.

⇒ Here's how to recover if you accidentally get into this state!

 

[Reference: FAQ (from the manufacturer's website)]
  Why can't I access the MAX 10 device via JTAG when the TDO pin is used as a user input pin in user mode?
(Will be improved in a future version, but not yet fixed in Quartus Prime 17.0.)

  

★ Use the JTAGEN pin as follows, depending on how the JTAG pin is handled.

Configuration stage

Enable JTAG pin sharing

option

Handling JTAGEN Pins

JTAG pins

(TCK/TMS/TDI/TDO)

User mode

ON

Connect to pull-down through a 1KΩ resistor

User I/O pins

Connect to pull-up (*) via 10KΩ resistor

Dedicated JTAG pins

OFF

Used as user I/O pins

Dedicated JTAG pins

* Connect the pull-up power supply to VCCIO bank 1B (bank 1 for the 10M02 device).

To change the behavior of the JTAG pins, Altera uses a 3-pin header with jumpers.

Alternatively, it recommends using some other switching mechanism.

★ Signal Tap Logic Analyzer IP, JTAG-to-Avalon Master Bridge IP, and other JTAG related IP cannot be used.

 

 

Observe these when using JTAG pins as user I/O pins in user mode.

Recovery method when JTAG access is disabled by mistake

When Enable JTAG pin sharing = On and JTAG pins in user mode are used as user I/O pins, TCK, TMS, TDI, TDO all JTAG pins can be single-ended I/O pins or voltage-referenced Must be assigned as an I/O pin and only TDO must be used as an output pin or bidirectional pin.

However, if a design incorrectly assigns an input pin to the TDO pin, or treats the TDO pin as an unused pin and the input attribute is applied (As input tri-stated, As input tri-stated with bus-hold circuitry, As input tri-stated). -stated with weak pull-up), pulling JTAGEN high will not allow JTAG access, making it impossible to reprogram or erase.


We will show you how to restore it.

 

1. Force the nCONFIG, nSTATUS, or CONF_DONE pin low.

If a program already written to the CFM was processed with "Enable nCONFIG, nSTATUS, and CONF_DONE pins = OFF"

If it was a POF file, power off the board and set any of the nCONFIG, nSTATUS, or CONF_DONE pins to

Power on the board while forcibly holding it low.

 

2. Erase the MAX 10 CFM through the Quartus Prime Programmer.

Please refer to this document for Erase method in Programmer.

 

This restores access to JTAG.

Click here for recommended articles/materials

Considerations when using configuration pins as user I/O pins in MAX® 10

Click here for recommended FAQ

Is it possible to erase the data written to the configuration device?

How do I gain access to the JTAG pins of my MAX 10 device if I have enabled the JTAG pin sharing option, and the Quartus Prime Programmer is unable to auto detect the device?