GideonZ / 1541ultimate

Official GIT archive of 1541 ultimate II sources
GNU General Public License v3.0
181 stars 46 forks source link

Ultimate 64 crash using ExFAT #416

Open markusC64 opened 8 months ago

markusC64 commented 8 months ago

I have got a hint that the Ultimate 64 with firmware 3.11 crashes with ExFAT. Therefore I have done the following test:

  1. With drive sizes of 1 GB, 2 GB, 4 GB, ..., 128 GB (always exact power of two, no rounding error) I formatted them all to ExFAT with MacOS 14.
  2. On the Ultimate I enabled 16 MB REU and tried to save REU image (that should create a 16 MB file)

Results:

For up to 32 GB the test has been successfull. For 64 GB and 128 GB the test has failed, the Ultimate 64 has crashed.

I can repeat the test with a 1541 U2+(L) if that helps. I also can test drive sizes in between. My IODD ST300 can emulate all drive sizes, so testing arbitrary drive sizes is not a problem.

markusC64 commented 8 months ago

It seems to be the cluster size of larger drives.

GideonZ commented 8 months ago

Hmmm... yes, the cluster size would have been my guess. This is not good! We had a cluster size issue before when it comes to reading. Maybe there is something similar going on with writing. But I thought that I had fixed it for both, at least in the partition layer. This might also be an issue in ChanFAT. I guess the best way to tackle this is to run it on U64 with the debugger enabled.