All flashers

ESP32‑P4‑HUB·KEYLOGGER WebFlasher

No device

Step 01 of 07

Read this first.

This writes the ESP32-P4 hub keylogger firmware onto the Spotpear ESP32-P4-MINI-B-M-EXT. It replaces whatever firmware is on both chips. Order matters — the P4 side goes first, then the C6. The U4 switch on the baseboard multiplexes the Type-C port; the wrong combination will silently fail.

Flashing overwrites the app and (for the C6) the SPIFFS storage partition. Only run this on your own Spotpear P4-MINI-B-M-EXT, N32R32 variant so the 16 MB MSC partition fits.

Already done a side? Skip it.

Step 02 of 07 · P4

Put the P4 in download mode.

Route the Type-C to the ESP32-P4’s USB-Serial-JTAG and hold it in the ROM boot loader.

  • Flip U4 on the baseboard to position 0 (P4 side).
  • Hold BOOT on the P4-MINI, tap RESET, then release BOOT.
  • Your PC enumerates a fresh serial port — that is the P4 ROM.

Chrome, Edge, Opera, Brave or Arc only — Firefox and Safari have no WebSerial.

Step 03 of 07 · P4

Connect to the P4.

Pick the P4’s new port in the browser prompt. It appears under vendor 303A (Espressif) as a USB serial port.

Step 04 of 07 · P4

Flash the P4.

Write bootloader, partition table and app at their offsets, then hard-reset. About 15 seconds. Do not unplug until the log says it is done.

0 / 0 KB 0 / 0 parts ready

Image
firmware/p4
Chip
ESP32-P4

Switching branches is disabled for now — the page only ships the newest working build. Hub-safe mode helps when the CH334 hub drops the port mid-write (usually shows up as “the device has been lost”).

Step 05 of 07 · C6

Put the C6 in download mode.

Now route the Type-C to the on-board ESP32-C6-MINI instead. The C6 hosts the Wi-Fi AP and the web UI.

  • Flip U4 to position 1 (C6 side).
  • Hold C6_BOOT on the M-EXT board, tap C6_RESET, release C6_BOOT.
  • Another fresh serial port appears — that is the C6 in ROM.

Step 06 of 07 · C6

Connect to the C6.

Pick the C6’s new port. This flasher checks that the chip family matches, so if you left the switch on the P4 side it will refuse rather than brick the wrong chip.

Step 07 of 07 · C6

Flash the C6.

Write bootloader, partition table, app and the 2 MB SPIFFS storage. About 30 seconds because the storage bundle is big. When it is done, flip U4 back to 0 and reset.

0 / 0 KB 0 / 0 parts ready

Image
firmware/c6
Chip
ESP32-C6

Switching branches is disabled for now — the page only ships the newest working build. Hub-safe mode makes writes slower (~90 s for 2 MB) but survives the CH334 hub’s spurious disconnects during storage.bin.

Complete

Both halves flashed.

Flip U4 back to 0 (P4 side) and reset. The P4 is what the target PC will see over USB (HID + MSC). The C6 sits on-board and serves the Wi-Fi AP.

  • Join the Wi-Fi P4-KeyLogger · password changeme123.
  • Open http://192.168.4.1 for the web UI. The old dashboard is still at /klog.
Repo
Log