Project

General

Profile

foft's activity

From 08/10/2018 to 09/08/2018

09/03/2018

FO 09:31 AM EclaireXL Bug #74: Mounted disks don't always load
Ok good. That’s as I hoped. I still need to make switching from slow to fast sio and back more reliable, I just fixed something that made it enter that state too often. foft

09/02/2018

FO 09:53 PM EclaireXL Bug #74: Mounted disks don't always load
Farb, are you still running into this with the latest builds? foft
FO 09:37 PM EclaireXL Feature #73: Implement ATX disk image support
So this is what I ended up with as a patch to atx.c.
I'm updating gTrackInfo on every disk change or access to different drive, to save space.
I think I had issues with not being able to change globals if I assigned a value, so I r...
foft

09/01/2018

FO 04:40 PM EclaireXL Feature #73: Implement ATX disk image support
That's great, thanks. foft
FO 01:44 PM EclaireXL Feature #73: Implement ATX disk image support
Could it be changed somehow like this? i.e. move the avr parts to another file and add byte swapping? foft

08/31/2018

FO 09:47 PM EclaireXL Feature #73: Implement ATX disk image support
I put this up as atxv5.
So 107 all passes, but 107 track35 seems to have a lot of NOKs...
foft
FO 09:39 PM EclaireXL Feature #73: Implement ATX disk image support
Updated to the v9 code.
I need to split out the eclaireXL changes to make this easier to update. I was going to make a diff from v8 and apply with patch, but I don't see v8 any more? Anyway merged and don't think I missed anything si...
foft

08/28/2018

FO 09:45 PM EclaireXL Bug #74: Mounted disks don't always load
Added more structure to the command handling (common ack/nak etc) and looking much better. More to do though... foft
FO 09:57 AM EclaireXL Bug #74: Mounted disks don't always load
I guess a disk revolution at 288rpm is 200ms, so it must be ok timing wise to do the ack first. foft

08/27/2018

FO 09:34 PM EclaireXL Bug #74: Mounted disks don't always load
The time spent on iii is in pf_open, the fat file system open. I guess this must do some work.
Perhaps if I ack first then the Atari will give me more time to handle this in piece... This will mean with the current approach that code ...
foft
FO 09:22 PM EclaireXL Bug #74: Mounted disks don't always load
So 3 problems...
i) Sometimes bad checksum, must be a sync issue with pokey clock I guess.
ii) Flip flopping between fast and slow too quickly to make sense.
iii) Seems to be very slow to ready 16 bytes from sd card (atr header), Atar...
foft

08/26/2018

FO 09:41 PM EclaireXL Bug #74: Mounted disks don't always load
Hmmm, gets a failed checksum on the first sector read and switches to high speed sio. Then takes a while to resync.
Now need to see why I get a bad checksum (tomorrow).
foft
FO 08:45 PM EclaireXL Bug #74: Mounted disks don't always load
Setting up the logic analyser to check the cause of the first few fails on the scanalyzer... foft
FO 08:51 AM EclaireXL Feature #73: Implement ATX disk image support
Thanks. It loaded more on the 400/800 rom (but not that far) and stopped early on the XL/XE. I think I have the patched xformer rom, perhaps that is why.
From the check suite 102:
I am getting OK/NOK/OK/OK and then the L3 highlighted...
foft

08/25/2018

FO 05:31 PM EclaireXL Feature #73: Implement ATX disk image support
Hmm, will check the timing some more.
Does flight sim II work on the max? I remember that being time sensitive and get lots of system errors loading it.
foft
FO 08:41 AM EclaireXL Feature #73: Implement ATX disk image support
Hmm, Bandits just worked with no change. Perhaps related to the other sector error issue. foft
FO 08:31 AM EclaireXL Feature #73: Implement ATX disk image support
I'll put it up as atxv4 shortly.
Tested the few you sent. They all seem to work, except Bandits still does not play... Does this atx work fully via sdrive to Eclaire (800 mode) but not via this? Wondering if the remaining problem is a...
foft

08/24/2018

FO 09:42 PM EclaireXL Feature #73: Implement ATX disk image support
Now M.U.L.E. works:-) + Bruce Lee. foft
FO 09:41 PM EclaireXL Feature #73: Implement ATX disk image support
Ooops, had the subtraction backwards in waitForAngularPosition, doh. foft

08/23/2018

FO 08:40 PM EclaireXL Bug #74: Mounted disks don't always load
Probably about time I fix this, might be impacting some atx loading too. foft

08/22/2018

FO 12:50 PM EclaireXL Feature #73: Implement ATX disk image support
What is a phantom sector? Same sector number and valid/crc error/weak on same track? Do you have examples for one on one of the disks you sent? foft
FO 07:03 AM EclaireXL Feature #73: Implement ATX disk image support
Why does the code default to 0xf7? It says that means ‘data crc or weak sector’ in the hardware manual. The comment in atx.c says default in case sector not found. Shouldn’t that be 0xef which means ‘record not found’?
Btw scanalyzer ...
foft

08/21/2018

FO 09:17 PM EclaireXL Feature #73: Implement ATX disk image support
OK, have to call it a day for today. I'll put up v3 with the latest anyway, though I suspect not much really helped yet... foft
FO 09:15 PM EclaireXL Feature #73: Implement ATX disk image support
OK, can reproduce the same results in the linux sim... Which is good. So its not a missed byte swap (there is no byte swapping on x64). foft
FO 09:05 PM EclaireXL Feature #73: Implement ATX disk image support
Yeah I wired status up right after building atxv2. I am getting back 0xf7 though. Its not finding the sector in the loop, so it returns the default.
I'm getting the linux build working so I can debug more easily...
foft
FO 08:33 PM EclaireXL Feature #73: Implement ATX disk image support
OK, little better. Now getting 247 on 19,20,... and 28,32. Investigating why the status is not 239 now. foft
FO 08:26 PM EclaireXL Feature #73: Implement ATX disk image support
I think the first few errors may be related to the bug 74 you raised.
I do see failure on those sectors though I was returning NAK instead of ERR and data. I'll try the latter.
foft
FO 07:00 PM EclaireXL Feature #73: Implement ATX disk image support
If it’s that broken I wonder why air strike, Bruce Lee and lode runner work.
I’ll try that tool...
foft

08/20/2018

FO 09:54 PM EclaireXL Feature #73: Implement ATX disk image support
An aside, but noticed I seem to have a bunch of hexdumps still in this code. Better remove them since I'm sure they trash mem on some programs! foft
FO 09:51 PM EclaireXL Feature #73: Implement ATX disk image support
Nope, still seems to hang on most things. Hmmm. foft
FO 09:50 PM EclaireXL Feature #73: Implement ATX disk image support
Trying to hook up sector status to 0x53 to see if that helps foft
FO 09:34 PM EclaireXL Feature #73: Implement ATX disk image support
Fixed that and put it up as atxv2.
Load a bit quicker, but still only a few things seems to work (baker street and airstrike so far...)
foft
FO 09:09 PM EclaireXL Feature #73: Implement ATX disk image support
Seems that it was just a + vs - issue when calculating the wait on rotation. Doh. foft
FO 06:31 PM EclaireXL Feature #73: Implement ATX disk image support
I think something might be wrong with track step or something. Since its loads slow, slow slow, then occasional fast. I'd expect fairly fast then pause for track step etc. foft
FO 06:30 PM EclaireXL Feature #73: Implement ATX disk image support
I've put the rpd there now. foft
FO 07:51 AM EclaireXL Feature #73: Implement ATX disk image support
Oh, forgot to copy that! Will do that this evening.
I was thinking a test suite would be great. On an atx that boots on the Atari then checks a few comment metrics/protection types. Do you know if there is anything like that at all yet?
foft

08/19/2018

FO 09:04 PM EclaireXL Feature #73: Implement ATX disk image support
Farb, I've put the latest test version here. Can you give it a try please since you are more familiar with how the beeps should sound/what current works?
http://www.64kib.com/autobuild/private/prototype_v2/atxv1.jic and http://www.64kib...
foft
FO 08:44 PM EclaireXL Feature #73: Implement ATX disk image support
Added byte swapping and changed the wait_us delays to be in us. For some reason wait_us(3.22*1000) was hanging rather then ending up as wait_us(3220).
Some files are loading.
foft

08/18/2018

FO 09:52 PM EclaireXL Feature #73: Implement ATX disk image support
Looks an an endian issue. I see AT8X ok, then version is 256... foft

08/17/2018

FO 09:33 PM EclaireXL Feature #73: Implement ATX disk image support
If I comment loadAtxSector it does not hang, so must be something stuck in a loop in there. Will instrument and printf debug I guess :-) foft
FO 09:27 PM EclaireXL Feature #73: Implement ATX disk image support
Now the core is working again in general: USB, atr, xex. I can insert atx disks, but they fail to load - firmware hangs. Unfortunately debugging is a pain, might see if I can get the linux build Hias made working again... foft

08/16/2018

FO 10:03 PM EclaireXL Feature #73: Implement ATX disk image support
I got the core building but I've broken it enough that usb no longer works... ooops, will have to debug another day. foft
FO 10:02 PM EclaireXL Feature #73: Implement ATX disk image support
There are the default (original) sdrive delays in us iirc. If an ack is sent too soon it can arrive before the sio code is ready I think etc. Since the atx code does not appear to specify when to ack/cmpl I left them in. foft
FO 09:46 PM EclaireXL Feature #73: Implement ATX disk image support
Changed the timer/pause reg to be in microseconds and exact (USB clock/48 with clock domain crossing by toggle)
Added a register timer2, which has a threshold for reset. Using that to track the angle (in us)
Used the pokey 17-bit lsfr ...
foft

08/12/2018

FO 09:34 PM EclaireXL Feature #73: Implement ATX disk image support
DELAY_T2_MIN (100uS)
ACK
loadAtxSector
(NAK if failed)
DELAY_T5_MIN (300uS)
CMPL
DELAY_T3_PERIPH (150uS)
send buffer
send checksum (Should I be recomputing this?)
foft
FO 09:31 PM EclaireXL Feature #73: Implement ATX disk image support
Also plumbed into the atari_drive_emulator.c in a similar fashion to the xex loader.
gAtxFile = file;
u08 status; // what use is this?
...
foft
FO 09:28 PM EclaireXL Feature #73: Implement ATX disk image support
Made a start on this...
* Made atx.c/h build by pointing to different headers.
* Pointed delay_ms to existing wait_us. This is approximate based on a clock of 1.79MHz, will 1-2% error matter here? Will re-implement based on USB 12MHz...
foft
 

Also available in: Atom