Jump to content

Amstrad 6128 Gotek Floppy Emulator Installation

From RetroTechCollection
Gotek fitted in an Amstrad CPC 6128 (Simulant)
A Gotek board fitted in the drive bay of a CPC 6128, with a 26-to-34-way adaptor on its data header (photo: Simulant)

A Gotek USB floppy emulator running the FlashFloppy firmware can stand in for the 3-inch drive of the Amstrad CPC 6128, reading and writing CPC disc images (DSK files) on a USB stick.[1] Owners use it to replace an internal drive that cannot be repaired, or as a second drive for copying 3-inch discs to image files.[2][3] There are three documented ways to connect it: as drive B: on the 6128's second-drive socket, as drive A: on the same socket with one link added, or inside the case in place of the 3-inch drive through a 26-to-34-way adaptor.[3][4][2]

Ways to connect a Gotek to a CPC 6128
Method Gotek appears as Changes to the 6128 Sources
On the second-drive socket B: (the internal drive stays A:) None; needs a cable and a separate 5 V supply McNeill[3]
On the second-drive socket, with pins 11 and 12 linked A: (the internal drive is disabled) None; the link is made on the cable or adaptor Loxley[4]
Inside the case, in place of the 3-inch drive A: or B:, set on the adaptor The 3-inch drive comes out; two wires swapped in the drive power plug Simulant, Gotek Retro, Sordan, FlashFloppy[2][5][6][1]

Symptoms

[edit | edit source]

Fit a Gotek when the 3-inch drive will not read after the usual repairs, or when the drive works and you want to copy discs to images.[3] Rule out the common drive faults first: a perished belt (the motor runs but the disc does not turn), a dirty head and a missing write-protect pin are covered in the Amstrad 6128 Disc Drive Belt Replacement, and Amstrad's disc flow chart is summarised in the Amstrad CPC 6128 Troubleshooting Guide. A drive that starts working again after a new belt can be kept as drive A: with the Gotek as drive B:.[3]

Safety

[edit | edit source]
  • The 6128's internal drive power lead carries 12 V as well as 5 V, in the opposite positions to a standard floppy power lead. The Gotek runs on 5 V only. Plugging the unmodified lead into a standard Gotek damages the Gotek and any USB stick in it.[1][2]
  • Switch off the computer, the monitor that powers it and any supply for the Gotek before connecting or disconnecting cables.[3]
  • The external socket is an unkeyed edge connector. Fitted upside down, the cable grounds signals shared with the internal drive, and drive A: stops working until it is turned round.[3]

Tools and parts

[edit | edit source]
  • A Gotek with FlashFloppy firmware. Several vendors sell them already programmed. To program one yourself, McNeill used a USB-to-TTL serial adaptor and the stm32flash tool on pin headers soldered into the Gotek's programming holes; FlashFloppy can also be installed by USB (DFU) with a USB-A to USB-A lead. Later firmware updates load from the USB stick.[3]
  • A USB stick formatted FAT32, with FlashFloppy's example FF.CFG in its root directory.[3]
  • For the external methods: a straight 34-way floppy cable (no twist) with an IDC socket for the Gotek and an edge-connector socket for the 6128, and a 5 V supply with a 4-pin Berg plug for the Gotek. McNeill powered his from an external drive case through a 4-pin Molex to Berg adaptor.[3]
  • For the internal method: a 26-to-34-way adaptor (Simulant, Gotek Retro and Sordan sell them, based on a free design by "Duke" of the CPCWiki forum), and a bracket to hold the Gotek in the drive bay.[2][5][6]
  • A multimeter, a small flat screwdriver to release the contacts in the power plug, and the tools for opening the case listed in the Amstrad 6128 Disc Drive Belt Replacement.[2]

Procedure

[edit | edit source]

Preparing the Gotek and the USB stick

[edit | edit source]
Gotek floppy emulator, rear connectors and jumpers
The back of a Gotek: power socket (marked +5V and GND on the board), the jumper block and the 34-way data header (photo: Nicolasfoster, CC0)
  1. Program the Gotek with FlashFloppy, or buy one already programmed. If you program it yourself, follow FlashFloppy's own instructions; McNeill removed the read protection with stm32flash -k and then wrote the firmware with stm32flash -vw, which took one to two minutes.[3]
  2. Format the USB stick as FAT32 and copy FlashFloppy's example FF.CFG to its root directory.[3]
  3. Copy your CPC disc images (DSK files) to the stick. If a copy-protected image will not load, FlashFloppy's edsk_fix_gaps.py script can sometimes repair it.[1]
  4. To have the Gotek's display number match the file names, set nav-mode = indexed in FF.CFG and name the images DSKA0000.DSK, DSKA0001.DSK and so on.[7][3]
  5. To copy discs onto the Gotek, put blank images on the stick first. FlashFloppy writes only to images that already exist and cannot format a new one, and CPC DATA and SYSTEM discs use different sector numbers. McNeill made blank images with libdsk (dskform -format cpcdata -type dsk cpc-data.dsk and dskform -format cpcsys -type dsk cpc-sys.dsk) and copied them to numbered file names.[3]

As drive B: on the second-drive socket

[edit | edit source]
  1. Switch everything off.[3]
  2. On the Gotek, fit a jumper at S1 only, so that it answers as the second drive. Remove the JC jumper if it is fitted.[3]
  3. Clean the 6128's second-drive edge connector. McNeill lost a lot of time to a dusty connector on one machine.[3]
  4. Plug the cable into the Gotek with the red wire at pin 1, which is on the right when the Gotek is seen from the front.[3]
  5. Plug the other end into the 6128 with the red wire at pin 34, on the left as you sit at the keyboard. The whole cable is turned through 180 degrees because Amstrad numbered the connector the other way round from the usual 34-way floppy connector.[3][4] On Amstrad's interface diagram the socket, PL-9, has READY at pin 1 and DRIVE SELECT 1 at pin 23, with the even-numbered pins at ground.[8]
  6. Connect the Gotek's power: ground to one of the two middle pins of its power socket and +5 V to the outer pin nearest the 34-way data header. The board is marked +5V and GND beside the socket.[3]
  7. Switch on the Gotek, then the 6128. The Gotek shows "F F" briefly, then an image number such as 000.[3]
  8. If drive A: no longer works, switch off and turn the connector on the 6128 round.[3]

As drive A: on the second-drive socket

[edit | edit source]
Amstrad CPC6128 disc interface, drive select and drive connectors (service manual p. 34)
Amstrad's interface diagram: the µPD765AC IC201 with its unit-select outputs, the 74LS38 drive-select gates IC206 with R214, the internal drive connector CD201 and the 34-way second-drive connector PL-9

Some software works only when loaded from drive A:. This method lets the Gotek act as drive A: without opening the case, and switches the internal drive off while the link is in place.[4]

  1. Connect the Gotek to the second-drive socket as above, jumpered at S1 as the second drive.[4][3]
  2. Link pin 12 (drive select B) to pin 11 (ground), counting in the usual 34-way numbering at the Gotek end of the cable. Loxley found this link described in several places and worked out from Amstrad's schematic why it works. He planned to switch it with a double-pole switch.[4] On Amstrad's own numbering at the 6128 end, drive select B is DRIVE SELECT 1 at pin 23.[8]
  3. Switch on. With the drive select B line held at 0 V the Gotek answers to every drive access, including drive A:, and the internal drive is never selected.[4]
  4. Remove the link to use the internal drive again.[4]

The 6128 has a single unit-select output from its disc controller, US0 at IC201 pin 29. Drive select B for the second drive comes from it through an inverter, and drive select A for the internal drive is made from drive select B through a second inverter with a pull-up resistor, so selecting one drive deselects the other.[4] On Amstrad's diagram the gates are the open-collector 74LS38 IC206, with R214 (2.2 kΩ) as the pull-up.[8] The same arrangement explains why, with two drives connected, drive B's light stays on except while drive A: is being read.[4]

Inside the case, in place of the 3-inch drive

[edit | edit source]
Amstrad CPC drive power lead with the wires to swap for a Gotek (Simulant)
A drive power plug with red and orange wires, with Simulant's note to swap the 5 V and 12 V wires before fitting a Gotek (photo: Simulant)
  1. Open the case and take out the 3-inch drive as described in opening the case and removing the drive: two screws at the drive end, the base screws, the drive's two mounting screws and earthing wire, then the 26-way ribbon and the power lead from the back of the drive.[9]
  2. Plug the 26-to-34-way adaptor onto the Gotek's 34-way data header.[2][6]
  3. Set the adaptor's jumpers: drive A: to replace the internal drive, and the side jumper for double-sided images if you use them.[2][5][6]
  4. Identify the 12 V and 5 V wires in the 6128's drive power plug with the multimeter, with the computer powered and the plug not connected to anything. Take care not to short the contacts together.[2]
  5. Switch off. Release the two contacts from the plug housing with a small screwdriver and swap them, so that the 5 V wire meets the Gotek's +5V pin. Simulant and Gotek Retro say these are usually the red and orange wires.[2][5] The general method for releasing crimped contacts is on Connector Pin Replacement and Crimping.
  6. Switch on again and check with the meter, before plugging into the Gotek, that the contact that will meet the Gotek's +5V pin carries 5 V. If it reads 12 V, the swap is wrong.[2][1]
  7. Switch off. Plug the 6128's 26-way ribbon into the adaptor, with its red (sometimes blue) wire at pin 1 as on the original drive, and the modified power plug into the Gotek.[2][9]
  8. Mount the Gotek in the drive bay with a bracket and close the case.[2]

Testing

[edit | edit source]
  • At power-on the Gotek shows "F F" briefly and then the number of the selected image.[3]
  • Select an image with the Gotek's buttons; it is mounted after a couple of seconds.[3] With the Gotek as drive A:, type CAT; the image's directory and free space are listed under "Drive A:", as in Simulant's photograph of a fitted drive.[2]
  • With the Gotek as drive B:, boot CP/M Plus from the 3-inch drive with |CPM; the banner should show two drives.[3]
  • To copy a disc to an image with the Gotek as drive B:, run DISCKIT3, press f7 to copy a disc, f8 to copy from A: and f6 to copy to B:, and confirm with Y. Check that the selected image is a blank of the right format (DATA or SYSTEM) before confirming, and write-protect the source disc.[3]
  • The Gotek has no eject button. When DISCKIT3 asks you to remove both discs, take out the 3-inch disc, press the Gotek's next-image button and then a key at once; the Gotek takes about two seconds to mount the next image, which DISCKIT3 sees as an empty drive.[3]
  • McNeill found the Gotek about a third slower than the 3-inch drive when reading and writing.[3]
[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 1.2 1.3 1.4 FlashFloppy wiki, "Host Platforms", section "Amstrad CPC" (retrieved 2026-10-25). Support for CPC DSK images; copy-protected images using "GAPS protection" and the edsk_fix_gaps.py script; the CPC power cable has +5 V and +12 V reversed, so a standard Gotek needs an adaptor or it and the USB stick will be damaged; Gotek clones made for the CPC use the cables as they are. General notes: most systems use the Shugart interface and a jumper at S0.
  2. ↑ 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 Simulant, "Amstrad CPC / Spectrum +3 gotek Floppy Adaptor for internal or external floppy emulator drive" (retrieved 2026-10-25). Adaptor that uses the computer's own 26-way ribbon; jumpers to set the Gotek as drive A: or B: and for double-sided discs; the internal power lead carries 12 V and 5 V, the internal drive uses 12 V and the Gotek does not, so the orange and red wires usually have to be swapped, prising the contacts out with a small screwdriver, after checking the wires with a multimeter; mounting bracket sold separately; photographs of the adaptor, the power lead, a fitted drive and a CAT listing from the Gotek as drive A:.
  3. ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 3.26 3.27 3.28 Ewen McNeill, "Copying Amstrad CPC discs with a Gotek and FlashFloppy", 23 June 2018 (retrieved 2026-10-25). Programming FlashFloppy over the serial loader with stm32flash; updates from the USB stick; connecting the Gotek to the CPC6128's external drive socket as drive B: with jumper S1 only, a straight 34-way cable turned through 180 degrees (red wire to pin 1 on the Gotek and to pin 34 on the 6128, on the left from the typing position), a clean edge connector and a separate 5 V supply; an upside-down connector stops drive A: working; FF.CFG nav-mode = indexed; blank DATA and SYSTEM images made with libdsk dskform, because FlashFloppy cannot format a new image; copying with DISCKIT3 (f7, f8, f6); the Gotek has no eject; about a third slower than the real drive.
  4. ↑ 4.00 4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08 4.09 Richard Loxley, "RetroMatic 2000 update 8: Jumpers! In an Adventure with Floppy Cables!", 14 April 2017 (retrieved 2026-10-25). The Gotek's MO, S1 and S0 jumpers; the 6128's external port is wired for drive select B only; the community fix of linking pins 11 and 12 (Shugart numbering) so that an external drive jumpered as drive B answers as drive A and the internal drive is disabled; his reading of the 6128 disc interface schematic (one unit-select output, US0, makes drive select B through an inverter, and drive select A is made from drive select B through a second inverter with a pull-up resistor); the 6128's connector is numbered with the 34-way header turned through 180 degrees.
  5. ↑ 5.0 5.1 5.2 5.3 Gotek Retro, "Gotek 26pin Interface (Armstrad CPC664, CPC6128, Spectrum +3)" (retrieved 2026-10-25). Adaptor built from a free design by "Duke" of the CPCWiki forum; jumpers for single or double side; the CPC's power pinout differs from a standard floppy connector, so check that the 5 V wire reaches the right pin on the Gotek; usually the orange and red wires must be swapped.
  6. ↑ 6.0 6.1 6.2 6.3 Sordan, "Gotek Interface Adapter Amstrad CPC 6128 Spectrum+3 Internal FDD" (retrieved 2026-10-25). Converts the Gotek's 34-pin connector to the Amstrad 26-pin connector, with a 4-pin floppy power adaptor; jumpers for drive A or B and single or double side.
  7. ↑ FlashFloppy wiki, "FF.CFG Configuration File" (retrieved 2026-10-25). interface = jc (the default: jumper JC open gives the Shugart interface); nav-mode = indexed navigates DSKA0000, DSKA0001 and so on; indexed-prefix defaults to "DSKA".
  8. ↑ 8.0 8.1 8.2 Amstrad Consumer Electronics plc, CPC6128 Micro Computer / CTM644 Colour Monitor / GT65 Green Monitor Service Manual, pp. 33–34 "Interface Circuit Diagram". Hosted as File:Amstrad CPC6128 Service Manual.pdf, described at Amstrad CPC 6128 Service Manual. IC201 µPD765AC with US0 at pin 29; drive-select gates IC206 (74LS38) and pull-up R214 2.2 kΩ; internal drive connector CD201 (26-way); second-drive connector PL-9, a 34-way 0.1-inch edge connector, pin 1 READY, pin 23 DRIVE SELECT 1, pin 25 DRIVE SELECT 0, even pins GND.
  9. ↑ 9.0 9.1 DataServe Retro, "Servicing the Amstrad CPC6128 Disk Drive" (retrieved 2026-10-25). Opening the 6128, removing the drive and refitting the 26-way ribbon with the red wire at pin 1.