JTAG programming with Raspberry Pi

All about the TF536 port to the ST.
Post Reply
stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

JTAG programming with Raspberry Pi

Post by stephen_usher » Fri Oct 16, 2020 7:39 pm

Does anyone know what JTAG comms should look like on an oscilloscope?

I'm using xc3sprog with the following command line when logged in as root to see if I have a connection:
xc3sprog -c sysfsgpio_creator -j
From what I can see I'm getting activity on TMS (normally high, pulses low), TDI (normally high, pulses low), TDO (normally low, pulses high) and TCK (normally low, pulses high).

I've put debug statements into xc3sprog and it's just not reading anything, whether or not I have the connector on the TF536 or not.

I've quadruple checked the cable connections.

TMS: Pin 7
TCK: Pin 11
TDO: Pin 13
TDI: Pin 15

Any ideas?
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Sun Oct 18, 2020 1:42 pm

I've got it working now.

I've powered the TF536 directly from the power input on the board and removed it from the ST, but the biggest change was swapping the Raspberry PI.

I replaced the original Model B (256MB) with a later 512MB Model B and I think that did the trick. The GPIO on the original Pi may be suspect.

Both the "matrix_creator" and "sysfsgpio_creator" GPIO access methods work.

Now to program the TF536 with the latest firmware.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Sun Oct 18, 2020 2:01 pm

Next roadblock. Nothing's ever simple is it?

When trying to write the new firmware I'm getting
Erase still running 00
failed

Mismatch at fuse 3: 1 vs 0
Has the image been locked?
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

User avatar
supaduper
Posts: 312
Joined: Thu Nov 08, 2018 12:05 pm

Re: JTAG programming with Raspberry Pi

Post by supaduper » Sun Oct 18, 2020 2:43 pm

No that is not the firmware it`s the xilinx chip it is write protected, I have had the odd one like that when using ras pie to program the T330, in the end I had to use the xilinx programmer `Impact` to clear the write protect and them I could program the chip, I do not know or think the xc3sprog has the facillty to unprotect the chip

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Sun Oct 18, 2020 2:57 pm

OK. So it looks like I'll have to buy a programmer. Any recommendations?
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

User avatar
supaduper
Posts: 312
Joined: Thu Nov 08, 2018 12:05 pm

Re: JTAG programming with Raspberry Pi

Post by supaduper » Sun Oct 18, 2020 3:04 pm

I just bought a cheap knockoff xilinx programmer on the bay but it was a pain to get it to run on my windows 8 machine( I aint no expert :)
just look at a thread further down you will see one regarding the xilinx programmer and the headache to get it run on Windblows.

link to thread
viewtopic.php?f=13&t=3468

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Sun Oct 18, 2020 3:36 pm

Thanks!
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Wed Oct 21, 2020 10:30 pm

Got the knock-off programmer and have spent 2 nights trying to get the Xilinx LabTools working under Linux on an old Athlon 64 laptop.

Of course, the 6 year old Linux distro I'm using is too new for the software as that requires the ancient 2.6 kernel!

Still there are hacks and I've just now got it to recognise, sort of, the programmer. I'll have to get power to the TF and hook up the cable to see if it really sees it... then the fun of working out how to send the JED file. :-)
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

stephen_usher
Trusted Guru
Trusted Guru
Posts: 1122
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: JTAG programming with Raspberry Pi

Post by stephen_usher » Mon Oct 26, 2020 9:52 pm

OK. I'm getting nowhere with programming the TF536.

I've got a cloned Xilinx programmer (Waveshare DLC10) and I've tried it with the ISC 14.7 software... That fails with iMPACT discovering an infinite number of phantom devices on the JTAG chain after finding the Xilinx device and so fails. Manually adding the device, as detected in the boundary check fails too.

So, I built the main-line xc3sprog, with the help of the Pi cmake files as the originals are broken and I get the same lock problem as I had on the Pi. But it does only find the one device during the boundary check.

There seems to be no bleedin' way to update the firmware on my card! Aaaaargh!
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

Post Reply

Return to “TF536 ST EDITION”