Formatting user disks on PC9821 with HxC flashed Gotek

HxC Floppy Emulator on PC88 / PC98 and compatible support
Post Reply
Color
Posts: 1
Joined: Tue Oct 24, 2023 3:55 am

Formatting user disks on PC9821 with HxC flashed Gotek

Post by Color »

Hello! This is my first post and I would like to start off by saying thanks for all of your hard work. I've been reading a lot of the other posts on here to see if a similar problem has been resolved already, but I can't seem to find a solution. I've seen a lot of helpful people around and it's given me the courage to post here.

Recently purchased 2 goteks and flashed them with HxC firmware version HxCFEUSB_V5_2_1_2a.
Everything seems to be working well when they need to read from disk images on USB flash memory, and even writing to existing disk images seems to work for the most part, but I've noticed that formatting seems to fail every time, regardless of the disk image.

For one example, Prince of Persia, the original hfe that I created from the user disk FDI file allows saving to the image via the gotek, but not creating a new user disk on the same image using the game's utility function. I tried exporting the original FDI as a raw IMG but it errors out when the gotek tries to load it. Tried to make a blank raw disk that matched closely to what I was seeing in the track viewer, but honestly I have no idea what I'm doing. Even though I set my custom raw floppy to 357 rpm when I export it to hfe it changes, etc...The game recognized it as a disk to be formatted, but it errored out in the same way as the other hfe. I did verify that it wasn't my fdd cable, because when using an actual floppy drive and a 3.5" disk, it formats the user disk perfectly. I also tried a bunch of other usb sticks to no avail so unless they're all slow, I don't think it's the memory. That being said, I do think I'm on one of the cheaper at32 goteks so perhaps? Sounded like some of them don't have enough memory to buffer a full track or something?

I also tried making a standard 3.5 inch floppy raw img but that and the subsequent hxe have also failed to create a user disk, and it also failed in MS-DOS 6.22 when trying to use the format tool on them.

Sorry for the long rant, but I'm at a loss. I can keep my original floppy drive installed, but I would prefer two goteks. A lot of pc98 games require two drives and I only have one legit. Having to format a real floppy user disk, then to dump, convert, and save it to the gotek seems like a hassle, and creating a user disk for each game by hand also sounds pretty rough. I'm hoping it is possible to troubleshoot this to the point where a standard blank 3.5" 2HD image could be formatted from any software on the machine, but maybe that's a pipe dream. Either way, this is all very intriguing, and I hope to learn more over time.

I'm attaching a zip with a bunch of images. Hopefully my naming makes sense. Please let me know if you need anything else! Thanks again. :)
Attachments
Color_Failed_FormattingPC9821.zip
Images and stuff
(154.7 KiB) Downloaded 2375 times
Jeff
Site Admin
Posts: 8331
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Formatting user disks on PC9821 with HxC flashed Gotek

Post by Jeff »

Color wrote: Tue Oct 24, 2023 7:23 am
[...]

That being said, I do think I'm on one of the cheaper at32 goteks so perhaps? Sounded like some of them don't have enough memory to buffer a full track or something?

[...]
Sorry for the late response :wink:

This is indeed the issue; these AT32F415 Goteks are not recommended for "advanced" / long write operations such as formatting. There is only 32 KB of RAM and if the USB stick has latency, you can lose some part of the data stream during some write operations.
The USB stick write latency has an important impact on the success or failure with the very small cache buffer available in these Goteks.

Old STM32 Goteks or the new AT32F435 Goteks are way better than the AT32F415 Goteks.

You can get more information in this thread:

https://hxc2001.com/floppy/forum/viewtopic.php?p=23825#p23825


A workaround is to use raw image files, which are generally less demanding than the HFE format. With the firmware released today, you can now directly use the NEC / Anex86 FDI images with the HxC firmware for Gotek. No need to convert them anymore :

https://hxc2001.com/floppy/forum/viewtopic.php?p=26876#p26876
3 August 2026 : Firmware STM32/AT32 USB HxCFloppyEmulator v5.3.1.1a

- NEC / Anex86 *.FDI file format direct support added :
Read and write operations supported.
All header sizes are supported.


- Amstrad CPC / ZX Spectrum EDSK & DSK : Image load time reduced.

- RAW files (*.IMG,*.DSK...) : Memory cache strategy improvement.
HXCFEUSB_Gotek_HxC_firmware.zip

USB_HFE_hxc_floppy_emulator_firmware_release_notes.txt

This should solve the issue.
Post Reply