6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 7:36 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Sep 01, 2017 10:21 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
I have my ATF1504AS setup in a PLC-44 to DIP44 adapter. I have it powered with 5V on my breadboard (all VCC/GND) with good decoupling caps (that I can tell).

I've connected the ATDH1150USB-K cable up....connected ribbon cable to JTAG-A.

Next, I connected wires from GND and the four JTAG pins.

To the best of my knowledge, the following is connected:

Code:
JTAG GND 2 to board GND
JTAG TCK 1 to CPLD TCK 32
JTAG TDO 3 to CPLD TDO 38
JTAG TMS 5 to CPLD TMS 13
JTAG TDI 9 to CPLD TDI 7


Using ATMISP, I confirmed the USB cable/adapter is successfully detected. But it doesn't seem to detect the CPLD.

Code:
Setting up USB connection...OK
Scanning for USB cable connection
Setting up USB connection...OK
Calibration constant set to 1
total number of device(s) set in software: 1
total real number device(s) found in hardware: 0
causes can be: devices in reverse order, wrong cable selected, or off power


Now I followed the instructions that came with the cable (to create the "chain"?). Then I chose the "atf1504.jed" file out of the ATF1504AS folder and clicked RUN.

Not sure what that was about. But that's when I get the error.

At this point, I literally just want to blink an LED. Any idea on what I need to do to get to that point? Other than 6 weeks of studying...lol

Thanks for any tips.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 02, 2017 4:33 am 
Offline

Joined: Sun Jul 28, 2013 12:59 am
Posts: 235
I'll be the first to admit that I know very little about JTAG interfacing, but... I sortof expect that you'd want to connect TDO to TDI and vice versa, on the theory that the output of one device should connect to the input of the next.


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 02, 2017 8:26 am 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
Yes, under normal circumstances you want to connect TDO->TDI and TDI->TDO between devices, making a serial chain.
However, I have seen JTAG debuggers that label their pins the other way meaning "this pin should connect to the Test Data Output" rather than "this pin is the Test Data Output".
Best to check the manual if you have one.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 02, 2017 9:56 am 
Offline

Joined: Sat Jan 02, 2016 10:22 am
Posts: 197
I've used the 84 pin version of the ATF1504AS in a project (replacing the original MAX7000).

The JTAG header is straight wired - TDO->TDO etc. The circuit diagram can be found here, apologies in advance though, the board it self is Z80 (sorry!)
http://primrosebank.net/computers/mtx/projects/mtxplus/cpu/mtxplus_cpu.htm

The board is connected to the JTAG-A output on the programmer:
Attachment:
File comment: Hardware connection, JTAG-A to straight wired header
JTAG connected.jpg
JTAG connected.jpg [ 73.62 KiB | Viewed 3904 times ]


Once the board is back in the system, and the power connected, the ATMISP screen setup looks like this:
Attachment:
File comment: ATMISP ready to program
ATMISP view.jpg
ATMISP view.jpg [ 119.72 KiB | Viewed 3904 times ]


edit: A thought have you connected the 5v on the programming header ?


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 02, 2017 2:47 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Martin A wrote:
A thought have you connected the 5v on the programming header ?


I'm an idiot. That was it!! I forgot the VCC.

Now it works.

As a note, I didn't swap TDO/TDI. I left them the same and it works. Oh well...lots to learn!

Thanks everyone.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 13, 2017 7:30 am 
Offline

Joined: Fri Oct 13, 2017 7:03 am
Posts: 1
Hi all!

Sorry for my bad english and some off-top, but i have same problem with ATF1508AS PLDs.

There is a board with sequentionally chained 3 PLDs (that was previously programmed by producers of PCB) (TDO of 1st -> TDI of 2nd etc.) and ST(M)PSD813F1A connected to 1st PLD. TDI of JTAG port on board connected to TDI of PSD813 and TDO of JTAG port on board connected to TDO of 3rd PLD. When we try read the PLDs via ATMISP 6.7/7.2 and ATDH1150USB-K programmer, it`s generates an error message - "Number of devices in chain file does not match number of devices in software" (in software we set 4 - 1 unknown and 3 PLDs, but it`s sees 0 devices in hardware chain).

Its seems like the ATMISP software is not able to properly communicate with the JTAG devices, and one possibility is that the JTAG port of the ATF1508AS had been disabled by previously programming it with a JEDEC file that disable the JTAG port feature. How can we unlock PLDs and enable the JTAG port feature again?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: 6502user and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: