Skip to content

2. How to flash your MagSpoof

Andrea ZGuz edited this page Sep 22, 2026 · 5 revisions

Bootloader Mode

MagSpoof has a Bootloader Mode that is activated when the board is plugged in/energized while making a short circuit between the JP1 pads.

Pins-MagSpoof-V5

  • 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.

Driver installation

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.

  1. Download and install Zadig.
  2. 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.
  3. Select "Unknown Device #1" in Zadig.
  4. Select the WinUSB or libusb-win32 driver. By checking the "Edit" box, you can also change the name of the device.

  1. Click on "Install Driver" or "Replace Driver".
  2. 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.

Upload the MagSpoof firmware

Uploading the MagSpoof firmware restores the functionality of the MagSpoof to a factory mode, restoring its CLI capabilities.

  1. Download and Install Arduino IDE.
  2. Download and open the MagSpoof V5 firmware.
  3. Go to Arduino IDE > File > Preferences
  4. 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.json

If 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.

  1. Go to: Arduino IDE > Tools> Board > Board Manager.
  2. Search for CH55 and install the board package "CH55xDuino MCS51 plain C core (non-C++)".
  3. Plug your board and set it to normal mode (no bootloader mode).
  4. Go to: Arduino IDE > Tools and 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
  5. Upload the firmware to the board.

Recover MagSpoof (Program CH5552 chip)

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.

  1. Download the CH552 firmware.
  2. Download and install WCHISP Tool V3.3.
  3. Open the WCHIPSP Tool application.
  4. 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.

  1. Click Download and wait for the programming process to complete.

  1. 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.