Another PiStorm Blog

Blogs & guides and tales of woo by forum members.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

OK, so the README.md is almost impossible to read using less. Apparently openocd isn't used. so...

Code: Select all

root@PiStorm:/home/steve/pistorm-atari# rtl/pistormflash -s rtl/EPM240_bitstream.svf 
WARNING: Setting JTAG clock frequency to 100000 ignored!
root@PiStorm:/home/steve/pistorm-atari# rtl/pistormflash -v -s rtl/EPM240_bitstream.svf 
xsvftool-gpio, part of Lib(X)SVF (http://www.clifford.at/libxsvf/).
Copyright (C) 2009  RIEGL Research ForschungsGmbH
Copyright (C) 2009  Clifford Wolf <clifford@clifford.at>
Lib(X)SVF is free software licensed under the ISC license.
Playing SVF file `rtl/EPM240_bitstream.svf'.
WARNING: Setting JTAG clock frequency to 100000 ignored!
Total number of clock cycles: 162300
Number of significant TDI bits: 123611
Number of significant TDO bits: 61520
Finished without errors.
root@PiStorm:/home/steve/pistorm-atari# ./ataritest --memory tests=rw
[INIT] CPU clock is 600 MHz
[INIT] CORE clock is 250 MHz
[INIT] Using clock divisor 2.000 with PLLD
[INIT] GPIO clock is 125.000 MHz
^C
ATARITEST aborted

root@PiStorm:/home/steve/pistorm-atari# ./ataritest -v --memory tests=rw
[INIT] CPU clock is 600 MHz
[INIT] CORE clock is 199 MHz
[INIT] Using clock divisor 1.592 with PLLD
[INIT] GPIO clock is 125.000 MHz
And it just sits there. I wish ataritest had a verbose mode.
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
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

It needed the Pi4 specific svf file for the CPLD.

But... ataritest isn't working.

Sometimes it just stops after the init.

Other times it gives random memory errors, e.g.

Code: Select all

[INIT] CPU clock is 1800 MHz
[INIT] CORE clock is 500 MHz
[INIT] Using clock divisor 4.000 with PLLD
[INIT] GPIO clock is 125.000 MHz

ATARITEST
ATARI MMU configured to use 512 KB
Testing 512 KB of memory - Starting address $000600
Priming test data

ESC[7mTesting Reads...ESC[0m

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test 1
READ8:              [BYTE] Reading RAM...
READ8:              Running ........................
READ8:              ESC[7mData mismatch at $06001C: 00 should be 1CESC[0m

READ8:              Test 1 Completed with 1 error in 261 ms (1.96 MB/s)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test 2
READ16:             [WORD] Reading RAM aligned...
READ16:             Running ................................
READ16:             Test 2 Completed with 0 errors in 133 ms (3.84 MB/s)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test 3
READ16_ODD:         [WORD] Reading RAM unaligned...
READ16_ODD:         Running ........................
READ16_ODD:         ESC[7mData mismatch at $060005: 0606 should be 0600ESC[0m
READ16_ODD:         ESC[7mData mismatch at $06001D: 1E1E should be 1E00ESC[0m

READ16_ODD:         Test 3 Completed with 2 errors in 261 ms (1.96 MB/s)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

OK, this test is interesting, it looks like it's byte swapped!

Code: Select all

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test 7
WRITE16:            [WORD] Writing to RAM aligned... 
WRITE16:            Running ........
WRITE16:            Data mismatch at $020078: 7800 should be 0078
WRITE16:            Data mismatch at $020080: 8000 should be 0080
WRITE16:            Data mismatch at $0200A2: A200 should be 00A2
WRITE16:            Data mismatch at $0200C2: C200 should be 00C2
WRITE16:            Data mismatch at $060026: 2600 should be 0026
WRITE16:            Data mismatch at $060040: 4000 should be 0040
WRITE16:            Data mismatch at $060068: 6800 should be 0068

WRITE16:            Test 7 Completed with 7 errors in 264 ms (3.87 MB/s)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Or is it that the system thinks that UDS is asserted but LDS isn't?
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
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

Trying to run 'emulator' results in a load of "bad status" errors and a crashed machine.
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
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

I've posted on the PiStorm discord but seeing as all the active developers are dealing with bigger life issues I doubt I'll get any useful info, so this is probably going to have to go onto the back burner.
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
Darklord
Site sponsor
Site sponsor
Posts: 1619
Joined: Wed Sep 20, 2017 1:41 pm
Location: Prestonsburg
Contact:

Re: Another PiStorm Blog

Post by Darklord »

I can't remember which ones are which, but I downloaded a couple of the Pi4b .SVF files
when I was playing around with my setup.

Crap - unrecognized format. Let me zip them up:

EPM240_bitstream_dev1.zip
(46.68 KiB) Downloaded 45 times

Don't know if they will help you or not but there's 4 different ones there you can play
around with.

Cryptodad and I literally spent hours and hours trying to find some combination that
would work with my STacy. Gotta give him full credit for his perseverance.

I wound up with a set that would boot up into EmuTOS, but only in lo-res. As soon as I
try to change it to medium res, it crashes hard. Go figure.

With a Pi3a and the PiSTorm board with the 373 latches, we did get one working okay
in both lo and med resolution...but...it's using an SVF file that he doesn't have the
original file for - so I have the file, but he literally doesn't know what was in it
and he was trying to change things and everything would break something when he
did. So he doesn't know exactly what's in that file that makes it work. Bummer, eh?

Hope one of these will work for you. :)
Welcome To DarkForce! www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS-Telnet:darkforce-bbs.dyndns.org 1040
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

I've now tried every CPLD firmware file I can get my hands on and none of them help.

Definitely stuck now without the developers' help.
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
Darklord
Site sponsor
Site sponsor
Posts: 1619
Joined: Wed Sep 20, 2017 1:41 pm
Location: Prestonsburg
Contact:

Re: Another PiStorm Blog

Post by Darklord »

stephen_usher wrote: Thu May 02, 2024 8:34 pm I've now tried every CPLD firmware file I can get my hands on and none of them help.

Definitely stuck now without the developers' help.
Sorry, I was hoping maybe one of those would work. :(

You're a regular here so this is a ridiculous question but I'm assuming you followed the
github instructions and did all the file copying and unzipping, etc, etc,...

I missed one step the first time I went through it and it caused me some grief until I
did finally get it ironed out.

Hope you get it sorted out soon. The PiSTorm movement really needs a lot more
developers and testers. There's crazy potential there...
Welcome To DarkForce! www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS-Telnet:darkforce-bbs.dyndns.org 1040
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

Darklord wrote: Fri May 03, 2024 2:26 am
stephen_usher wrote: Thu May 02, 2024 8:34 pm I've now tried every CPLD firmware file I can get my hands on and none of them help.

Definitely stuck now without the developers' help.
Sorry, I was hoping maybe one of those would work. :(

You're a regular here so this is a ridiculous question but I'm assuming you followed the
github instructions and did all the file copying and unzipping, etc, etc,...

I missed one step the first time I went through it and it caused me some grief until I
did finally get it ironed out.

Hope you get it sorted out soon. The PiSTorm movement really needs a lot more
developers and testers. There's crazy potential there...

Yeah, I checked and double checked.

Via the Discord I was asked to try a "hidden" --clock option to ataritest but that made no difference as looking through the source to ataritest it doesn't parse a --clock option anyway.
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
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Another PiStorm Blog

Post by stephen_usher »

Cryptodad on Discord has sent his dev version of the ataritest so that I can use the --clock option to try to tune the GPIO clock and also another test firmware.

Unfortunately I won't have any time to test until at least Monday evening now.
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 “MEMBER BLOGS”