Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: nitneuq on February 22, 2021, 07:46:37 PM

Title: Unable to list JTAG targets after CPLD update
Post by: nitneuq on February 22, 2021, 07:46:37 PM
Hello,

Me and the engineering team of my company have created a custom board based on the TE0706 and using TE0820 rev3. To program the board, a TE0790 is used.

In order to select JTAG mode I have tried to update the CPLD firmware with the JTAG/QSPI variant.
I have followed this procedure (https://wiki.trenz-electronic.de/display/PD/TE0820+CPLD+Firmware) and used files for the TE0820 rev3 board (https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/Modules_and_Module_Carriers/4x5/TE0820/REV03/Firmware).

The Lattice programmer tool told me the update was successfull but I had two problems:

So I have updated again the CPLD with the default variant (which is QSPI/SD variant according to this document (https://wiki.trenz-electronic.de/display/PD/TE0820+CPLD+Firmware#TE0820CPLDFirmware-AvailableCPLDFirmware), but this other document (https://wiki.trenz-electronic.de/pages/viewpage.action?pageId=71630849#TE0820TRM-InitialDeliveryState) states that the default variant is QSPI).

But even by downloading again the default variant I am unable to list any target and I get the following error message when I list targets with xsdb tool:

xsdb% targets
  1 whole scan chain (DR shift through all zeroes)
xsdb%jtag targets
  1  JTAG-ONB4 251633005463A (error DR shift through all zeroes)



While before this operation I was able to list some targets.

Please, can you tell me how to solve this problem and return to the default CPLD state.

Any help would really be appreciated!

Best regards,
Title: Re: Unable to list JTAG targets after CPLD update
Post by: JH on February 22, 2021, 09:55:49 PM
Hi,
can you tell me all dip switch positions of the TE0706 and TE0790?

br
John
Title: Re: Unable to list JTAG targets after CPLD update
Post by: nitneuq on February 23, 2021, 03:31:44 PM
I have used following DIP switch positions for the TE0790 (from S2-1 to S2-4) : OFF, OFF, OFF, ON while programming the CPLD and ON, OFF, OFF, ON for normal operations to access to Zynq JTAG targets.

The TE706 switches were always (while programmming CPLD or trying to access to Zynq JTAG) set to PROGMODE = ON (low state) and MODE = OFF (not connected state).
Note that I don't understand how the Lattice programmer tool had successfully the CPLD while the PROGMODE was set to ON (according to this table (https://wiki.trenz-electronic.de/display/PD/TE0706+TRM#TE0706TRM-4-bitDIP-switch), CPLD can be programmed only when PROGMODE = OFF).
Title: Re: Unable to list JTAG targets after CPLD update
Post by: bastionbooger on February 23, 2021, 08:03:51 PM
you have updated the firmware of the TE0790's CPLD.
Title: Re: Unable to list JTAG targets after CPLD update
Post by: Antti Lukats on March 08, 2021, 09:55:42 AM
Quote from: nitneuq on February 23, 2021, 03:31:44 PM
I have used following DIP switch positions for the TE0790 (from S2-1 to S2-4) : OFF, OFF, OFF, ON while programming the CPLD and ON, OFF, OFF, ON for normal operations to access to Zynq JTAG targets.

The TE706 switches were always (while programmming CPLD or trying to access to Zynq JTAG) set to PROGMODE = ON (low state) and MODE = OFF (not connected state).
Note that I don't understand how the Lattice programmer tool had successfully the CPLD while the PROGMODE was set to ON (according to this table (https://wiki.trenz-electronic.de/display/PD/TE0706+TRM#TE0706TRM-4-bitDIP-switch), CPLD can be programmed only when PROGMODE = OFF).

you indeed did reprogram the CPLD on TE0790 accidentially, meaning you need to first re-program TE0790 with default firmware, and then repeat the update procedure. You are not seeing any JTAG devices as the TE0790 is not holding correct firmware.