Altera_Forum
Honored Contributor
8 years agoMAX10 Dual Purpose/JTAG issues
I am using an M08 device and trying to set up dual mode pins. I enabled JTAG pin sharing and disabled nCONFIG, nSTATUS...
I only needed two pins for my user mode (TCK and TMS), but I also added TDI and TDO to the port list and assigned them as std_logic (they are not connected to any signals in the code). This is because according to the config document, all JTAG pins must be assigned as single-ended IO. On the board there are 10k pull-ups on TMS, JTAGEN, TDO, and TDI (and nSTATUS, CONFIG, and CONFIG_DONE), and 10k pull-down on TCK. When I try to program the device with a .sof file, the programmer initially recognizes the part, but as soon as I click "Start" I get a "Failed" message and the tool no longer recognizes the device. When I cycle power (re-loading the old, non dual use code), the JTAG recognizes the device again. What have I done wrong or missed? Is there a good way to prevent use of the JTAG pins in user mode when I want to re-program? Additional Question: I just saw that in the Device and Pin Options window, under Dual Use Pins, it says "n/a in Internal Configuration". Does this mean I cannot use dual-use with internal configuration? Or just that I cannot use that window when Internal Configuration is set. I did not see anything about this in the Config user Guide. Thanks Bret