PhreakByte the Octopus
@nieldk@infosec.exchange
About Me I’m Niel, a father at first, working as a Cloud Security Specialist and drive my own business doing penetration tests and Security advisories. My Interests: programming Photography Mobile Platforms Security RFID
infosec.exchange
RE: https://infosec.exchange/@nieldk/116871917491185090
In case you missed it, look again .
A fully standalone #blackmagicprobe (or, of course, you can use it with your PC, as usually) on #cardputer #m5stack
https://codeberg.org/nieldk/blackmagic-cardputer
Laptop-Free Standalone Operation: Acts as a completely self-contained field tool. You can scan, attach, read registers, hex-dump memory, and flash firmware directly using only the Cardputer's keyboard and screen—no PC required.
Dynamic USB Mass Storage (usbmode msc): Overcomes the ESP32-S3's hardware USB limitations by letting you toggle the device into a USB flash drive. You can drag and drop .elf or .bin files directly from a PC into its internal 3MB storage, then swap back to debugger mode.
Error-Proof Auto Pin Detection: The swd_scan command automatically tests both Grove pin orderings. If you accidentally swap your SWDIO and SWCLK wires when connecting to a target, the firmware automatically detects it and adjusts the logic.
Built-In Target Emulator (monitor emulate): Spawns a synthetic STM32F103 target completely in the Cardputer's internal memory. It tricks the Black Magic stack into thinking a real chip is attached, allowing you to test flashing, GDB commands, and memory dumps on a plane or couch without any hardware wires.
Smart Flash Protection & Auto-Detection: The on-device flash command reads file headers to automatically distinguish between ELF and raw binary formats. It will cleanly reject a file if the target address falls outside the connected chip's actual flash/RAM map, preventing accidental corruption.
On-Device Command Console (REPL): Features a full interactive command line on the tiny screen that supports the Cardputer's full keyboard shift layers, allowing you to type native Black Magic monitor commands and symbols (_, !, @, #) on the fly.
50-Line Scrollback Buffer: Includes a dedicated screen history layout navigated via keyboard shortcuts (Fn + ; and Fn + .), ensuring you don't lose track of long register dumps or multi-line error messages on the small display.
Dual USB-CDC Mirrored Output: Simultaneously mirrors all on-screen command outputs to a secondary virtual COM port as raw text. You can plug it into a laptop terminal to easily log, view, or capture a full day of field debugging text.
Quoting
It now has a 'builtin' stm32f1 emulator https://codeberg.org/nieldk/blackmagic-cardputer