Repository navigation
2. How to flash your MagSpoof
MagSpoof has a Bootloader Mode that is activated when the board is plugged in/energized while making a short circuit between the JP1 pads.

- When you connect your MagSpoof, and it is not in bootloader mode, LED D3 is ON for a brief moment, and then it turns OFF (normal mode).
- To put your MagSpoof in bootloader mode, disconnect your board and proceed to make a short circuit between the pads of JP1 and keep it (As shown in the previous image).
- Connect the board to your computer; the LED D3 must be turned on statically for 10s, and after this time, the LED D3 will fade away, entering normal mode.
Important
MagSpoof V5 is the direct evolution of MagSpoof V4, meaning that both versions feature the same microcontroller. The process to reprogram is applicable to both versions. Bootloader mode in MagSpoof V4 can be set by doing a connection or soldering the JP1 pads.
It is needed to install a driver that will allow the PC to detect the board when the bootloader mode is launched. This process is only available for Windows.
Important
This process and the "Upload the MagSpoof firmware" process are only needed if the MagSpoof firmware is bricked or you need to reflash it.
- Download and install Zadig.
- Enter bootloader mode on the MagSpoof. Plug in/turn on while making a short circuit between the JP1 pads. The green LED must turn on and remain on while the short circuit is on the JP1 pads. Now, you should see an "Unknown Device" in the "PORTS (COM)" section on the Device Manager.
- Select "Unknown Device #1" in Zadig.
- Select the WinUSB or libusb-win32 driver. By checking the "Edit" box, you can also change the name of the device.
- Click on "Install Driver" or "Replace Driver".
- Once the WinUSB or libusb-win32 has been installed for the device and the board is still in bootloader mode, you should be able to see the name of the device in the Device Manager.
Uploading the MagSpoof firmware restores the functionality of the MagSpoof to a factory mode, restoring its CLI capabilities.
- Download and Install Arduino IDE.
- Download and open the MagSpoof V5 firmware.
- Go to
Arduino IDE > File > Preferences - Copy and paste the following URL into the "Additional Boards Manager URLs" input field:
https://raw.githubusercontent.com/DeqingSun/ch55xduino/ch55xduino/package_ch55xduino_mcs51_index.jsonIf there is already a URL from another manufacturer in that field, click the button at the right end of the field. This will open an editing window allowing you to paste the above URL onto a new line. Save the changes by pressing the "OK" button.
- Go to:
Arduino IDE > Tools> Board > Board Manager. - Search for
CH55and install the board package "CH55xDuino MCS51 plain C core (non-C++)". - Plug your board and set it to normal mode (no bootloader mode).
- Go to:
Arduino IDE > Toolsand select the following:-
Board:
CH55x Boards > CH552 Board. - Port: Select the COM port assigned to your board.
- Clock Source: 16MHz (interal), 3.3V or 5V
-
Board:
- Upload the firmware to the board.
If your MagSpoof is not recognized by your computer, or if the firmware upload process fails, you may need to reprogram the CH552 microcontroller on the board. This can happen if the board has been inadvertently bricked, for example, by uploading firmware with an incorrect Clock Source configuration, as described in the previous section.
- Download the CH552 firmware.
- Download and install WCHISP Tool V3.3.
- Open the WCHIPSP Tool application.
- Configure the programming fields as shown below.
Important
To enable programming mode, put the MagSpoof into bootloader mode. Once detected, it will appear in the Dev List. Then, load the downloaded .hex firmware into the Object File1 field.
- Click Download and wait for the programming process to complete.
- Disconnect the board and reconnect it in normal operating mode. Wait for it to be detected by your operating system, then proceed with the firmware update process.
- MagSpoof Overview
- Turning ON MagSpoof
- MagSpoof and its different modules
- Magnetic Stripes
- MagSpoof Versions
- Bootloader Mode
- Driver installation
- Upload the MagSpoof firmware
- Recover MagSpoof (Program CH5552 chip)
- It is possible to intercept data with my MagSpoof?
- What can I do if the coil desolders from the board?
- My board is not being detected by my PC
- I need a case