Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Wed Aug 23, 2017 4:16 am

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Write error #22 - minimig DE1 can't write to virtual disks
PostPosted: Fri May 10, 2013 6:02 am 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
I am a fresh (several days) user of Minimig DE1. I downloaded and programmed .pof file from git.

It works, but it cannot write anything. When it tries to write something (Workbench config, game record) it popups minimig window with write error #22.

Is it a known error? Or maybe I have something wrong with my DE1? (for example write protection permanently set, SD slot damaged or something like this?). SD card has no write protection (tested in PC). What can be wrong?


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Fri May 10, 2013 8:07 am 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
Hi pik33, welcome!

This error usually pops up when a non-standard ADF is required, I guess you are using floppy images? There are some games that have custom floppy format, and won't be able to save to the floppy image with the current firmware. Maybe in the future, this will be updated.

But Workbench should use the standard floppy format, so writing the config should work fine. Can you please double check that the SD card is not write-protected *AND* that the ADF files themselves are not marked with the read-only property (in windows, right-click on file->properties, and there under attributes make sure 'Read Only' is not checked).

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Fri May 10, 2013 4:06 pm 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
I checked all of these settings. Files are writable, SD (2GB) is writable in PC. It is FAT formatted with 32k cluster size.

I tried to format a "disk" (adf file) in minimig with Kickstart 1.3 and Workbench 1.3 This generated a lot of errors #22, but worked, and at the end it put a window with "Not a DOS disk" text.

Then I formatted this image with WinUAE. This went OK and disk was usable.

So I tried to format it once again in Minimig, gettina a lot of #22 error, but this tme disk was still usable. I tried to copy sone files to it. Errors #22, but icons appeared in this disk window. After closing this window I tried to open it once again. Got some #22, empty window and popup "Disk read/write error". No icons, but now the bar at the left side of the window shows that this disk is not empty.

Then I mounted this with winuae. Disk was empty.

Where to search an error?

Can it be caused by damaged DE1? bad SD format? SD incompatibility?

At next step I will try another SD card.

------------
And one more question: where can I find an information about functions of switches. I found this in readme:

SW9 - scandoubler enable
SW7 - audio L/R switch
SW6 - audio mix (mix some left audio to right channel and vice-versa)
KEY3 - left mouse button
KEY2 - right mouse button
KEY0 - reset

but it seems other swithes may "do something" too.


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Fri May 10, 2013 5:35 pm 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
pik33: I'm sorry, it seems I mislead you. I just tested formatting a blank ADF image, and it fails for me too. I mostly use harddisk images (which work just fine), and I haven't tested writing to floppies in a while.

So this is a proper bug, I'll see if I can fix it tonight.

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Sat May 11, 2013 6:34 am 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
OK, I think I fixed the bug, place the attached firmware .bin file on the root of your SD card, replacing the existing file (un-zip it first!).

The reason for the bug is that the OR1200 CPU core, which handles the floppy emulation, is much faster than the TG68 core that was used before, and requires a lot of added delay when talking to the floppy interface in minimig, so by adding more delay, the problem *should* be fixed.

Looks like neither me or any other minimig-DE1 user tried to write anything to a floppy since the OR1200 core was used ;)

Enjoy!


Attachments:
de1_boot.zip [37.14 KiB]
Downloaded 175 times

_________________
** my minimig builds: http://somuch.guru/ **
Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Sat May 11, 2013 7:09 am 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
pik33 wrote:
And one more question: where can I find an information about functions of switches.


Here are the functions of the switches in the current core:
SW9 - scandoubler enable
SW8 - keyboard joystick emulation enable
SW7 - audio L/R switch
SW6 - audio center mix enable
SW5 - UART select core / control (amiga or debug)
SW4 - no function
SW3 - turbo chipset (doesn't work properly)
SW2 - no function
SW1 - no function
SW0 - PLL reset
KEY3 - left mouse button
KEY2 - right mouse button
KEY1 - no function
KEY0 - control block reset

If you're using the core from github, not all of these will work.

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Sat May 11, 2013 2:37 pm 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
Now Workbench 1.3 works and can format disk and write settings. Bug seems to be fixed.


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Sat May 11, 2013 9:38 pm 
Offline

Joined: Tue Jan 01, 2013 7:46 pm
Posts: 5
Thanks for the update Chaos, I was having trouble writing to .adf's too, not something I have tried before, that's saved me a lot of digging. :D


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Mon May 13, 2013 7:56 am 
Offline

Joined: Thu May 09, 2013 11:32 am
Posts: 32
... and now I got error #27 instead of #22 - Pinball Fantasies, 3x ADF version trying to write hiscores

Tried to find this in source files - comment is: "track number reported in sector header is not the same as current drive track" - ?


Top
 Profile  
 
 Post subject: Re: Write error #22 - minimig DE1 can't write to virtual dis
PostPosted: Tue May 14, 2013 11:02 am 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
pik33: perhaps the delay needs to be extended a little more, I'll try that.

Any original minimig user successfully saved highscores in Pinball Fantasies ADF?

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr