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.
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
U4on the baseboard to position 0 (P4 side). - Hold
BOOTon the P4-MINI, tapRESET, then releaseBOOT. - 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
U4to position 1 (C6 side). - Hold
C6_BOOTon the M-EXT board, tapC6_RESET, releaseC6_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.
- p4/bootloader.binESP32-P4 bootloader (offset 0x2000).
- p4/partition-table.binPartition table (offset 0x8000).
- p4/app.binApplication image (offset 0x10000).
- c6/bootloader.binESP32-C6 bootloader (offset 0x0).
- c6/partition-table.binPartition table (offset 0x8000).
- c6/app.binApplication image (offset 0x10000).
- c6/storage.binSPIFFS UI bundle (offset 0x200000).