FDSStick: writing back .raw files

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

Post Reply
NewRisingSun
Posts: 1199
Joined: Thu May 19, 2005 11:30 am

FDSStick: writing back .raw files

Post by NewRisingSun » Sun Jun 21, 2020 11:33 pm

I have written a converter between FDS disk image formats that also aims to be able to create FDSStick .raw files (6 MHz flux-level images, it seems). It can successfully parse .raw images that were dumped by FDSStick as well as those generated by my converter. FDSStick GUI however does not want to back to write the converter-generated files, just saying "Done" without actually writing anything. What is it looking for in a .raw file? I notice that FDSStick-generated files seem to have some sort of 60-byte header of unknown meaning, and something that looks like a footer, again with unknown meaning.

User avatar
loopy
Posts: 396
Joined: Sun Sep 19, 2004 10:52 pm
Location: UT

Re: FDSStick: writing back .raw files

Post by loopy » Mon Jun 22, 2020 6:55 am

If you send me sample files I'll try to figure out what's wrong.
There is no header / footer, that's just junk data.

NewRisingSun
Posts: 1199
Joined: Thu May 19, 2005 11:30 am

Re: FDSStick: writing back .raw files

Post by NewRisingSun » Mon Jun 22, 2020 9:26 am

A one-side Game Doctor game, and a two-side normal FDS game (Silviania).
Attachments
Sample-GeneratedFDSStickRAW.7z
(151.84 KiB) Downloaded 16 times

User avatar
loopy
Posts: 396
Joined: Sun Sep 19, 2004 10:52 pm
Location: UT

Re: FDSStick: writing back .raw files

Post by loopy » Sun Jul 19, 2020 7:47 pm

The FDSStick software looks for the first few bytes of a disk header ("block type 1"). It doesn't find it and gives up.
I don't know how you're generating your raw files but something doesn't look right. Compare with a dumped image. Values in a .raw file are just timing between pulses on the data pin. Looks like maybe you're generating a waveform but have polarity flipped or taking the wrong edge, something like that?

Code: Select all

Silviana-A.raw: .. 3F 3E 3F 1F 3F 9C 3F 3E 3F 3E 3F 3E 20 7D 7D 9C 3F 1F 3F 3F
dumped:         .. 3E 3E 3E 5D 3C 5F 3C 3F 3D 3E 3D 3E 5E 7C 7C 5C 3C 5D 3D 3E

NewRisingSun
Posts: 1199
Joined: Thu May 19, 2005 11:30 am

Re: FDSStick: writing back .raw files

Post by NewRisingSun » Tue Jul 21, 2020 4:57 pm

Thanks, fixed all bugs in the MFM encoder. Now the generated flux-level RAW and RAW03 files write back properly.

Post Reply