Jump to content

Skunkboard stability


Recommended Posts

I have Skunkboard v2 (Sillyventure version) and I have faced a problem with skunkCONSOLEWRITE. After few  jcp "run from ram" times following code causes a red screen after Jag reset ( "jcp -r")

			bsr		skunkRESET
			lea		Napis,A0
			bsr		skunkCONSOLEWRITE
			lea		Napis,A0
			bsr		skunkCONSOLEWRITE


Below My Skunk rom and jcp version:

jcp v02.04.02 built on Jul 10 2016

Boot version 03.00.02, Serial 6510

Should I upgrade jcp and Skunk rom?






Edited by Cyprian
Link to comment
Share on other sites

This reminds me of the "fun" I had while adding support to the JagCD encryption program. My first try was to call skunkFILEWRITE with the maximum allowed size, which would freeze the machine. Once we ruled everything else out I just went ahead and reduced the write size to 32 bytes just to see what happens. The transfer became slower but we didn't mind. I mean, how many JagCDs are you going to encrypt in a single session? More than one? :)


So yeah, probably try sending less messages or apply a rate limiter.

Link to comment
Share on other sites

Yeah, I also recently found that if I call skunkFILECLOSE() then skunkFILEOPEN() one right after the other, the Jaguar jumps off into nowhere. I should debug, but if I put a skunkCONSOLEWRITE("hello world") between the two, it works fine, so I didn't bother. There's something not quite right in these routines, but I haven't been able to track it down by inspection thus far.

Link to comment
Share on other sites

  • 4 weeks later...

Those old console routines I wrote are long suspected of being a little unstable, and there were definitely some 16/32 bit issues in the earlier versions. But if you suspect timing just drop a skunkNOP between them and they will probably work. ;) (That's there to guarantee order of delivery between the two buffers, otherwise it's somewhat unpredictable.)


As for the red screen - IIRC accessing the HPI to communicate with the USB disables reads from the flash, so if you crash/reset while in that state, the Jag won't have a ROM to boot from. If a power cycle clears it, that's a good confirmation.


And obviously, make sure your buffers are word aligned and your strings are terminated with a zero byte. ;)


(Also: nothing to do with the Skunkboard ROM. The console functions talk directly to the hardware.)


Edited by Tursi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...