Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > VSP crash (not solved yet)
2012-01-22 21:01
Zer0-X
Account closed

Registered: Aug 2008
Posts: 78
VSP crash (not solved yet)

I recently found my C64C to be very prone to crash with certain demos and finally managed to create a reproducible crash while banging the $d011 register so I hooked up my logic analyzer and here are some logs of the event taking place.

http://oms.wmhost.com/misc/VSP_Crash_100MHz.zip

A testprogram was looped at address $0ff0. It could've been placed at pretty much any $xxf0 address and it still would crash within few seconds. Running the code at lower offset on the memorypage quite effectively prevented it from crashing on the machine used for testing. A shorter version with only inc/dec/inc/jmp not crossing the page boundary crashes.

The symptoms were always the same; low address byte of the 2nd inc at $xxf7 and/or the opcode of the jmp at $xxff are suddenly trashed. The byte at $xxf7 ends up being 0x00, 0x01, 0x10 or 0x1d. Byte at $xxff ends up being 0x0c, 0x40, 0x48 or 0x4d.

As a post-work the decoupling caps of the memorychips in the C64C used were replaced and a new thick wire delivering power directly to the memorychips was soldered in place. This had no effect and the machine still crashes with this code, as well as with Booze Design demos Royal Arte and Tsunami for example. Powersupply used is a C128 PSU with C64 powercable soldered next to the C128 powercable.

Logfiles VSP Crash 100MHz 3_31.csv/txt have the actual crash event taking place.
 
... 98 posts hidden. Click here to view all posts....
 
2012-02-01 12:54
Graham
Account closed

Registered: Dec 2002
Posts: 990
Quoting ChristopherJam
Intriguing. I have in the past had C64Cs that were very prone to crashing, one to the extent that I nearly despaired of my $d011 scroller being suitable for commercial use.

I think I never released any VSP/AGSP stuff because of that. On my machine you had to power-cycle it about 30 times until you reached "that weirdo stable non-crashing state" so you could actually code VSP/AGSP. But I wanted stuff which always works.
2012-02-01 17:15
Skate

Registered: Jul 2003
Posts: 494
Actually, development is much easier now thanks to reliable emulators since they don't have VSP crashing bugs (even if they should).

VSP is like the cancer of C64. No existing cure but not always kills. We may try different PSUs, and some hardware modifications and call it "chemotherapy". :)
2012-04-01 14:25
Zer0-X
Account closed

Registered: Aug 2008
Posts: 78
Continuing from Controlling that colour change bug thing

<some_time_later>

Of the available caps I had I've successfully tried 2.2nF cap and then 4.7nF which again renders the C64C unable to start up.

For the couple of demos I've tried so far:

Royal Arte:
The scrolling logo used to crash in couple of seconds. It still crashes now, but takes several minutes.

Dutch Breeze:
Couldn't get past the diagonally scrolling Dutch Breeze -logo. Now haven't been able to crash it so far.

Tequila Sunrise:
Previously it was luck to get it even to start/show something on screen. Again, now no crashes/glitches detected so far.

The little inc/dec/inc/dec/inc-loop I've been using to crash the machines still crashes, but that too now takes a while before it happens.

So delaying the VIC Chip Select -signal could be a step into the right direction.
2012-04-03 15:06
Zer0-X
Account closed

Registered: Aug 2008
Posts: 78
Yesterday added some more caps to delay few other signals in the testing machine and the most crashing Tequila Sunrise has now been running for around 18 hours without any sign of corruption.

On the other hand, Royal Arte is still almost as crashing as it was before.

My own code at the moment seems to crash only when the memory has been filled certain way. Fill it with some steady value and the code keeps running just fine.
2012-04-03 16:54
Frantic

Registered: Mar 2003
Posts: 1646
This thread is like a thriller! I love it.
2012-04-11 22:44
Zer0-X
Account closed

Registered: Aug 2008
Posts: 78
Spent couple of hours chatting and looking at logic analyzer logs with Jens at Revision. That was fun.

At the moment all the delay-caps have been removed, so the grey dots are back, and another tiny fix is being testdriven.

My $d011 inc/dec-code, couple of test routines, Tequila Sunrise, Tsunami, Dutch Breeze, IK+VSP, perhaps some others I forgot, and Royal Arte... None are glitching or crashing.

Now running some 18 hour Royal Arte -marathon to see if I could still get it to crash.

[ ] Achievement unlocked...
2012-04-12 08:48
WVL

Registered: Mar 2002
Posts: 895
I should have a standalone version of those double scrollers from Arcanum somewhere, so you can run it endlessly. Will have a look for it, might make a nice test program.
2012-04-12 09:14
Skate

Registered: Jul 2003
Posts: 494
@Zer0-X: Great work pal. What if we try your hw patch with a working c64? Would it still run or start crashing? I mean if you find a certain way to stop VSP crashes, will we be able to patch all c64s the same way without even testing them if they already crash or not?
2012-04-12 10:10
Zyron

Registered: Jan 2002
Posts: 2381
Just showing my enthusiasm. This thread is very interesting.
2012-04-12 14:39
Zer0-X
Account closed

Registered: Aug 2008
Posts: 78
Royal Arte has been running for the past 16 hours now and still no visible glitches. Previously that demo (or rather the Royal Arte logopart) would've worked for 10 minutes at best.

And the fix is of such generic type that it can be made into C64, C64C and C128 all with minimum effort. Should any side-effect whatsoever to be observed, removing it will be just as easy. Ofcourse then we would have to find yet another way to fix the bug.

WVL: Wish I had more powersupplies to test more than one machine at a time. Tho if you can work on some of your old sources I can give it a testdrive.

Now to test this on my other C64C, which is less crashy, and one of the C128s that trashes whole lot of memory when the crash happens.
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Xiny6581/Dees Produc..
Linus/MSL
The Syndrom/TIA/Pret..
Exile/Anubis
sLASH
wacek/arise
goerp/F4CG/HF
hedning/G★P
Brittle/Dentifrice^(?)
serato/Finnish Gold
Jazzcat/Onslaught
CreaMD/React
Mojzesh/TGR🇬🇧
Digger/Elysium
psych
Picrard/Mayday
WVL/Xenon
DKT/Samar/sidDivers
rambo/Therapy/ Resou..
Perff/No Name
Strepto/Lethargy
kbs/Pht/Lxt
katon/Lepsi De
bexxx
Slaxx/Q/HF/MYD!
t0m3000/hf^boom!^ibx
MAT64
celticdesign/G★P/M..
TheRealWanderer
tlr
TPM/Silicon Ltd
alwyz/udi
Peacemaker/CENSOR/Hi..
Guests online: 139
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Fishbomb  (9.6)
7 Halloweed 4 - Blow Y..  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.042 sec.