CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: lost84 on 00:58, 21 January 14

Title: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 00:58, 21 January 14
Hi guys,

Using the CPM sw its says I have an a and b drive. I only have a 3.5 that I fitted and its set to a. Works fine for everything else. The problem causes CPM to crash. Is this a hardware problem or software?

Any help is appreciated :-)
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 03:51, 21 January 14
Do you have a special version of CP/M?
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: AMSDOS on 09:10, 21 January 14
Are you using CP/M 2.2 or CP/M Plus or something else I don't know about? Both 2.2 or Plus will detect how many Disc Drives are there, usually it's between 1 or 2.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TotO on 10:17, 21 January 14
I suggest that the ribbon cable device ID set both drives when you switch to external A.
Is, |B command under BASIC allow you to see the same floppy content when you make a |DIR ?
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: arnoldemu on 10:26, 21 January 14
Quote from: lost84 on 00:58, 21 January 14
Hi guys,

Using the CPM sw its says I have an a and b drive. I only have a 3.5 that I fitted and its set to a. Works fine for everything else. The problem causes CPM to crash. Is this a hardware problem or software?

Any help is appreciated :-)
is the disc motor always on?

Does the computer think the drive is always ready? (type CAT without a disc in and if it hangs it things it's always ready).
Or does it think it's always write protected?
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Badstarr on 11:31, 21 January 14
A long time ago I accidentally connected the drive B select signal and drive A signal to the same drive. It seemed quite handy at first as I could make the drive function as both A and B or so it seemed. It led to erratic behaviour especially in CPM so I had to set the connections correct. It may be that your drive is receiving both A and B select, either a problem with the IDC cable or possibly the drive itself.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 23:19, 21 January 14
Hi guys, tried |b and that does not see the disk.

So I think the floppy is OK. CPM is ver 1. I downloaded it from this forum. Maybe I should try a later version, if I can find one.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 23:32, 21 January 14
Ps cat without disk works as expected.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Badstarr on 12:29, 22 January 14
When I installed a 3.5" drive on my 464plus there was two motor enable signals, one for drive A and one for B. It still could be that both drive enable signals are somehow routed to the same drive but the motor enable is not connected for drive B which would result in an unsuccessful read when you select drive B, as the drive won't spin up. Did you carry out any modification to the drive when you fitted it? Did you follow any particular guide?

So my suggestion would be, try another version of CPM and see if everything works as expected. If things are still going wrong report back and I'm sure we will think of something else to try. I would imagine if Bryce spots this thread he will be able to zero in on the problem in a snap.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Bryce on 12:45, 22 January 14
I've already read the thread, but my knowledge of CP/M is limited (ie: Zero), so I don't think I can help much.

From a hardware point of view: How is the 3.5in drive connected? Is it connected to the internal header or the external port? What cable are you using?

Bryce.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 13:06, 22 January 14
Its using an internal cable from urban retro. The cable has been modified by me to provide a ready signal and a switch to change the disk side.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Bryce on 14:18, 22 January 14
Convert the drive to send the ready signal and get rid of the ready jumper, that will make things easier and avoid CP/M and AMSDOS issues. This is most likely what's causing the issue. CP/M is probably selecting B and testing for a ready signal. Your ready jumper is telling CP/M that a disk is in the drive even when B is selected.

Bryce.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 14:22, 22 January 14
Thanks Brice, will do
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 18:46, 22 January 14
Quote from: Bryce on 14:18, 22 January 14
Convert the drive to send the ready signal and get rid of the ready jumper, that will make things easier and avoid CP/M and AMSDOS issues. This is most likely what's causing the issue. CP/M is probably selecting B and testing for a ready signal. Your ready jumper is telling CP/M that a disk is in the drive even when B is selected.

Bryce.


That's exactly correct. CP/M does indeed sense for a set Ready signal, if it finds one, then it assumes (usually for good reasons) that there is a drive.


Now if you set the Ready signal ON by default, then any drive will be found, because everything is 'Ready' all the time.



Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 19:08, 22 January 14
Quote from: lost84 on 14:22, 22 January 14
Thanks Brice, will do
Quote from: TFM on 18:46, 22 January 14

That's exactly correct. CP/M does indeed sense for a set Ready signal, if it finds one, then it assumes (usually for good reasons) that there is a drive.


Now if you set the Ready signal ON by default, then any drive will be found, because everything is 'Ready' all the time.





But I only have one drive connected.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 19:16, 22 January 14
Just noticed that when I do |b the floppy does make a sound like some things happening before returning "bad command".

In cpm+ if I try to change to the b drive I get the error invalid drive, bros function = 14

Also realised I'm using cpm2.2.

Being new to this I didn't know cpm2.2 and cpm+ came with the cpc6128, and cpm+ is v1.

Hope that makes sense!
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 20:45, 22 January 14
You cut the Ready signal short, so it's always on for all drives. Your cable provides the Ready to the FDC, doesn't matter which drive you select.


Well, CP/M Plus displays v1.1 (or 1.0) but it's actually CP/M 3.0 or 3.1. It seems to be able to sense the problem as AMSDOS does, but CP/M 2.2 seems to crash, because it't not prepared for the crazy all time ready READY.


As Bryce suggested, try go get the Ready working on the B-drive itself and don't use that short cut cable.  :)





Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 21:15, 22 January 14
My eyes have been opened! Thank you sir. :)
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 22:23, 22 January 14
I wish you all the luck! Let's hope its only that Ready signal and nothing worse.  :)
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 01:04, 23 January 14
I have a matsumi drive, it looks like I need to move a smd resistor. Not messed with smd's before, but will give it a go.

Is it also possible to fool the drive into thinking the disk is low density, so I don't need to do the tape thing? Any thoughts on whether this is worth doing at the same time.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Bryce on 09:42, 23 January 14
Yes, the SMD resistor needs to be moved, but it's only a bridge (short circuit), not a resistor, so you can remove the existing resistor and just use a wire to short the other pins. You can also sort the sensor for DD/HD and it will think all disks are DD.

Bryce.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 18:17, 23 January 14
But he wants DD not HD  ;)
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: lost84 on 20:56, 23 January 14
Hi, the drive is more modern than any guide I can find. I'm bottling out of this one as I'm sure I knack my drive trying. Maybe the simplest option is to put a switch on the ready signal (via the cable) so I can manually switch it off.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 21:27, 23 January 14
Better get a well drive which can handle the Ready signal properly. Shouldn't be more expansive then 5 Bucks.

Title: Re: cpm software detects 2 drives, but I only have 1
Post by: Bryce on 09:26, 24 January 14
Quote from: TFM on 18:17, 23 January 14
But he wants DD not HD  ;)

Oops, meant DD. Post edited.

Bryce.
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 17:59, 24 January 14
I wouldn't be surprised if you would make HD possible.  :laugh:
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: steve on 14:50, 25 January 14
The Amiga used HD floppy drives by making it run at half speed, is this possible now with the CPC?
Title: Re: cpm software detects 2 drives, but I only have 1
Post by: TFM on 01:15, 26 January 14
The drives we're using will run always with 300 rpm. However if you increase the speed of the FDC (f.e. in the 6 MHz CPC), then this may be sufficient to use HD formats. It may be not as easy though.

Powered by SMFPacks Menu Editor Mod