The MegaFlash is a ROMBoard similar to the MegaROM. It provides up to 32 virtual ROMs (Numbered 0 to 31) in a single 512K Flash ROM, but unlike the MegaROM, the MegaFlash can be populated directly from the CPC using TFMs MegaFlashROManager (available for Basic and FutureOS) or with Roman by Brueggi without the need for an EPROM Burner or any additional hardware. Other ROManagement software will currently not work with the MegaFlash.
Being based on Flash technology it also doesn't require a battery like other solutions did in the past. Unfortunately, due to complexity, the PCB design needs to be double-sided, making this project a little more difficult for hobbiests to build than the MegaROM was.
The complete hardware of the MegaFlash was developed by Bryce and released in August 2011.
If you have any further questions regarding this project contact Bryce through the Wiki Forum.
Warning / Disclaimer
Although I have taken the utmost care preparing this documentation, I do not guarantee that it is error free and I accept no responsibility for damage to anyone’s CPC, other personal equipment or injury inflicted on you or others.
The main component on the PCB is the Flash Memory. This must be a W29C040-90 (ie: the Winbond version) to be fully compatible with TFMs MegaFlashROManager The five other ICs are standard TTL Logic devices and only need to be of the type 74LSxx (74HCxx, 74Fxx etc will also work but are not necessary in this application). The finished PCB is approx. 70mm x 55mm.
This is the Parts list for the Centronics version:
|100µf 16V Electrolytic Capacitor||1|
|100nf Ceramic Capacitor||6|
|1K 1/4W Resistor||3|
|220ohm 1/4W Resistor||1|
|3mm LED (red)||1|
|32 Pole PLCC IC Socket||1|
|50 (2x25) way Header RM 2.54||1|
|3 way header RM 2.54 (for jumpers)||2|
|DPDT Slider switch RM 2.54||1|
|50 way Centronics plug||1|
|50 way flat cable||1|
|50 flat cable connector||1|
Note: In the picture above and also in the parts list, I have chosen to use a header connector on the PCB. I did this because I intend using the MegaFlash on both a UK CPC464 and a German CPC6128 and by using a header connector I can swap the connection cable to suit which CPC I'm connecting to. You may choose a direct connection to the PCB if you don't need this feature, dropping the price another few cents.
As the PCB design is double-sided there are no bridges this time. The components may be added in the order you prefer.
The polarity of C7 and diodes D1 to D3 is critical, the other capacitors and resistors R1 to R4 may be soldered in either direction. The orientation for the ICs can be found in the part position layout file below (Coming Soon).
Closing an IDC connector on a 50way flat cable can be a difficult task and if not done properly, may cost you a connector or two. I recommend first putting the cable in position and pushing it slightly closed to keep the cable in place, then place the connector in a bench vice with rubber between the metal of the vice and the connector, then slowly closing the vice on the connector until it reaches it's home position. You may have to re-position the connector a few times until it's completely closed. Bad connections with these connectors are the cause of many peripherals not working, the pins in the centre cause the most issues, so turn the connector 90° in the vice for a final squeeze to make sure these pins are properly connected. Don't try closing an IDC connector with a hammer, pliers or other tool that only applies pressure to a tiny area of the connector, it will break!
Using The MegaFlash
It is possible to populate the Flash Memory with a good EPROM Burner. If you choose to do this, the ROMs should be saved to the following addresses. The Memory allocation file is also available below in PDF Format.
When using the ROManager software to write ROMs to the MegaFlash and other functions such as Delete / Park, you will be requested to switch to Write-mode. Only switch to write mode when requested to do so. Leaving the write mode switched on, or restarting the CPC while write-mode is enabled can cause the saved ROM images to be corrupted. The red LED is lit when in write-mode.
The CPC464 and 664 only initialises ROMs 7 to 0 at start up and all other CPCs initialise ROMs 15 to 0. The additional ROM positions can be either initialised by installing the Booster ROM in position 15 or by manually initialising them. Because ROMs 16 to 31 are largely ignored by the computer, this area of memory does not have to adhere to the normal ROM header rules and can also be used to store generic data such as graphics or music data.
On the PCB there are two jumpers, which need to be set. Jumper 1 enables or disables ROM 0 on the MegaFlash to allow users to replace the internal ROM on the CPC. Jumper 2 enables or disables ROM 7 on the MegaFlash to choose between the CPCs internal OS ROM or an alternative OS on the MegaFlash. The jumpers need to be set to the correct position otherwise the CPC may not boot. Using the ROManager software it is also possible to enable or disable any of the other 30 virtual ROMs as required.
The MegaFlash is compatible with all CPC464, CPC664, CPC6128, 464+, 6128+ and KCcompact and can be used to host standard ROM images such as AMSDOS, BCPL, FutureOS, MAXAM, Protext, Utopia, VDOS, XD-DOS.
CPC Specific Limitations:
- CPC464/664 - The 464 and 664 only scan and initialise ROMs 7 to 0 at start-up. ROMs 15 to 8 are only accessable if manually initialised.
- CPC6128 - Classic CPC6128 can not overwrite the internal ROM 7 with an external device, to make use of the external ROM 7 the CPC must be modified to allow the internal ROM 7 to be disabled (eg: By adding a switch to the internal ROMs Chip Enable pin)
The MegaFlash fully decodes the Address and Data buses, so it should not clash with any other official expansions installed in parallel or plus cartridges. However, adding two ROMBoards to a CPC in Parallel will cause crashes in some circumstances.
File:MegaFlash Layout.zip - PCB Track Layout (Cadsoft Eagle brd format)
File:MegaFLASH DIP.zip - Alternative PCB Track Layout by wilco2009 (Cadsoft Eagle brd format)
File:MegaFlash Memory Map.pdf - EPROM Memory Allocations Chart
A full list of available ROMs can be found here.
CPC crashes at startup?
In the unlikely event that you program a ROM (in positions 0-15) with a bad image / experimental program / a picture of your cat, then there's a chance that the CPC will crash when trying to initialise the ROMs. And you can't erase the rubbish without a running CPC. For ROMs 0/7 this isn't a problem, because you can manually disable them with the jumpers, but not with the other positions.
Here's the solution to get out of this catch 22:
First disconnect the MegaFlash from the CPC and carefully remove the Flash from its socket. The socket has two slits on opposite corners of the IC, using a very small screw-driver you can slowly ease the IC out of the socket.
Now plug the Flash-less MegaFlash into the CPC and start as normal (make sure both ROMs 0 and 7 are disabled on the MegaFlash). The CPC will start as normal and you can now replace the Flash in its socket (do this at the Basic prompt, don't start any programs beforehand). It only fits in one direction, due to one corner of the IC being tapered.
You can now start the ROManager software and erase the offending image.
First you need to add a push button: One side of the button goes to GND. The negative pin of the 100µf capacitor is probably the safest location to solder the wire to GND. The negative pin is the one nearest the Flash socket. The other side of the button should go to the centre pin of the ROM7 jumper.
If you want to start the CPC with no MegaFlash ROMs enabled, just remove the ROM 7 jumper completely and hold the button pressed while you are switching the CPC on, then replace the ROM 7 jumper as soon as you get the Ready Prompt. DON'T press this button while the Jumper is still in place! In fact to make it safer, you could use a two pin jumper-header instead of a button. Then you just move the Jumper from the normal ROM 7 jumper-pins to your new pins and move it back when ready has appeared.
It's not a really great solution, but it's safe for your CPC, your MegaFlash and the PLCC socket will get to live a lot longer.
Activate the Autostart option of RSX |RMA of the MegaFlashROManager ROM version (located at ROM position 15) using SOFTBRENNER. Reset your CPC, the FlashROManager will start immediately. This way can be a bit tricky.
For ROMs you can download to use in the MegaFlash, refer to the ROM Software Table.
Also,Cholo has created this ROM pack to get you started. The contents are as follows:
- Amsdos 720K (19xx)(-)(720KAMSD.ROM).zip
- Amstrad Eprom Programmer (19xx)(Fleet Microsystems Ltd & F.Kup)(FLTEPRM.ROM).zip
- Amstrad Toolkit v1.4 (1986)(Bee Bug Soft)(TOOLKIT.ROM).zip
- Communication Interface Unit Driver Softare 1.5 (1986)(Panda Electronics Ltd)(PIADR.ROM).zip
- Copy Lock v6.0 (1988)(Romantic Robot)(COPYl60.ROM).zip
- Copymate + v3.2 (1990)(Marco Vieth)(De)(COPYM32.ROM).zip
- CPC 464 Modified OS (19xx)(-)(Da)(CPC464DK.ROM).zip
- CPM Accessory Rom 1 (1988)(Graduate Software)(CPMACC1.ROM).zip
- Disc Demon v1.1 (1986)(Bee Bug Soft)(DDEMON.ROM).zip
- Disc Power (19xx)(-)(DISCPWR.ROM).zip
- Discology Disccopier (1987)(Meridien Software)(DISCOLOG.ROM).zip
- Discology Filecopier (19xx)(-)(Fr)(DISCFILE.ROM).zip
- Discology v6.0 (19xx)(Meridien Software)(DOLOGY6.ROM).zip
- Dos Copy v1.3 and Crime v1.3 (1991)(-)(DOSCRIME.ROM)[ROM v2.1].zip
- Dragon Breed Rom 1 (19xx)(Dragon Breed)(DBREED1.ROM).zip
- FutureOS (1989-2018) (FutureSoft)
- Kns Rom 6128 v1.01 (1989)(MFW)(KNSROM.ROM).zip
- Micro Music Creator #1 (1988)(First Byte)(MMC1.ROM).zip
- Micro Music Creator #2 (1988)(First Byte)(MMC2.ROM).zip
- Micro Style Rom v2.11 (1989)(Micro Style - PotPlant Systems)(STYLE.ROM).zip
- Nigdos 2.24 (1988)(-)(NIGDOS.ROM).zip
- Programmer's Toolbox 1.0a (19xx)(-)(TOOLBOX.ROM).zip
- Programmers Tool Box v1.2a (19xx)(-)(PT12A.ROM).zip
- Rodos v2.11 (19xx)(Romantic Robot)(RODOS211.ROM).zip
- Rodos v2.15 (19xx)(Romantic Robot)(RODOS215.ROM).zip
- Super Rom v1.0 (1991)(Vorax)(SUPER.ROM).zip
- Super Romplus - Auto Rom Control System 1.6 (1986)(Britannia Software Ltd)(ARCS16.ROM).zip
- T3m Rom (19xx)(-)(T3MROM.ROM).zip
- UNCR v2.4 - Cruncher Accessory ROM for CPM (1988)(Graduate Software)(CPMCRCH.ROM).zip
- Utility Suite (19xx)(-)(ROB3ROM.ROM).zip
- Vorax's CPM Plus Rom #1 (19xx)(Graduate - Vorax)(CPM1.ROM).zip
- Vortex Ram - Expansion Card ID (19xx)(Vortex)(De)(VRAMID.ROM).zip
- X-Ddos (1987)(-)(XDDOS111.ROM).zip
- XROMs (expansion ROMs for FutureOS)