pio_partition_table
Validate the ESP32 flash partition layout before flashing: checks alignment, overlaps, size fit, OTA consistency, and optional live-device comparison to catch stale or corrupt tables.
Instructions
Validate the ESP32 flash layout before it bites. Reads the partition CSV the env uses (board_build.partitions, project partitions.csv, or the Arduino framework default), checks alignment, overlaps, fit against the chip's flash size, OTA slot/otadata consistency, nvs/coredump presence, whether the built firmware.bin fits the smallest app slot, and whether the build dir's partitions.bin is stale. With read_device=true it also reads the live table at 0x8000 over serial (esptool) and diffs it against the CSV, catching the silent-corruption case where an app-only flash left an old table on the chip. Returns partitions plus issues with fixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| port | No | ||
| project_dir | No | ||
| read_device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||