C4CPC is a cartridge replacement for the Amstrad Plus range and the GX4000.
* Insert the C4Cpc cart with a prepared SD in the cartridge slot, DIP switch facing up on 464/6128, DIP on joystick port side on GX4000
<gallery>
ImageFile:C4CPC_GX4000.jpg|In GX4000ImageFile:C4CPC_6128.jpg|In 6128/464 plusFile:DipSwitchToSlot.png|Dip Switch to Slot table
</gallery>
* Select your favourite cart slot on the DIP switch
* Power on ...
* et voilà !
=== Cartridge selector ===
[[File:C4CPC CprSelect.png|right|384px]]
CprSelect is a special cartridge that allows browsing the SD cart for cartridges to load.
The main area displays the current folder contents. Browsing is done using either one of the joysticks or the keyboard.
* Keyboard controls : cursors for browsing, space/enter/copy to select and esc to return to parent folder* Joystick controls : left/right/up/down for browsing, fire 1 to select, fire 2 to return to parent folder
Left/Right jump from page to page if the folder cannot be displayed in one screen.
=== How it works ===
At power up, CPC/USB whichever is the first, the uC will check for a valid .CPR/.BIN file to loadin the DIP switch selected slot.
* If the file is smaller than 160KB, it will be loaded directly
* If no file is available or the file is bigger than 160KB, a bootloader is 1st loaded. The bootloader will then load the cart file if any.
Note that C4CPC is powered either by the CPC or /and the USB port. That means that power cycling the CPC will NOT initiate a new cart loading if the cart is also powered by USB.
=== From SD card ===Just select your cartridge slot and power your CPC === From Cart loading from USB ===
A connected cart should appear as a serial port (COMx on windows, /dev/ttyACMx on linux, /dev/tty.modemxxxx on OSX).
Windows require a .inf file to install the proper drivers.
Loading is done using a python3 script which has the following syntax :
<code>C4CpcCom.py -p port -c cart.cpr</code>
where port is the serial port assigned to the cart.
== Firmware upgrade ==
C4CPC uC firmware is user upgradable through the USB port and requires the following tools and drivers :* dfu-programmer for updating the code* driver : provided with dfu-programmer windows version, native support on recent linux and OSx === Windows dfu-programmer ====== dfu-programmer is part of the C4CPC upgrade package. * Windows version is precompiled* Linux ===version can be installed either by using you distribution package manager or compiling it. * OSx version has to be compiled from source and installed with the provided script === OSx Upgrade procedure ===The upgrade require :* to connect the C4CPC card to you computer using a USB cable. It is recommended to either remove it from the CPC/GX4000.* have DIP switch 4 ONOnce the C4CPC is powered (Power led on), push the reset switch. The uC will enter the DFU mode.On windows, a driver will be asked for the 1st time : the .inf file is in the C4CPC upgrade package. You now just need to run the update script :* Linux/OSx, you need to have root/admin right<code>UpdateCartEmu.sh</code>* Windows<code>UpdateCartEmu.bat</code>
==Cartridge Games==