Hi all ![]()
I’ve successfully collected and decoded ESP32 core dumps using PlatformIO, custom partition tables, and esp-coredump. I’m wondering if it’s possible to replicate this setup using Arduino CLI only.
The setup involves:
• Enabling ESP32 core dumps in ELF format to a dedicated flash partition, and
• Using a custom partitions.csv, and
• Triggering a crash with a sketch with PlatformIO
• Retrieving and decoding the core dump using esp-coredump (I ended up installing the entire esptools with ESP-IDF in VS Code)
All details are available here in a GitHub repo:
⸻
My Questions:
1. Can I pass custom Kconfig-style flags (like CONFIG_ESP_COREDUMP_...) via Arduino CLI?
2. Can a custom partitions.csv from Arduino CLI be used?
3. Any recommended workflow to retrieve the core dump from flash in an Arduino CLI project? (Maybe the closest: GitHub - earlephilhower/arduino-littlefs-upload: Build and uploads LittleFS filesystems for the Arduino-Pico RP2040, RP2350, ESP8266, and ESP32 cores under Arduino IDE 2.2.1 or higher)
If this isn’t fully supported yet, I would like to understand which pieces are missing and whether there's a way to hook into them (e.g., with custom build scripts or hooks. If they're missing, has anybody asked for such features?