more of a personal note to remember some commands that were useful. I figure this is more likely to survive or be found compared to a gist/repo/onenote/whatever.
Powershell for getting the partition table from any esp32/etc based device
*assuming the partition table is at 0x8000, but it can also be at 0x9000 on newer boards.
if you get an error and a board is in bootloader mode attached then change offset to 0x9000 and repeat. You need to have already run .\export from the esp-idf folder (for IDF_PATH).
Should only read 0xc00 bytes instead of 0x1000 but wanted to be sure and read two full blocks, doesn't hurt. Change 0x1000 to 0xc00 if you have sense / or want to google what the frick this does
$offset="0x8000"; rm .\esp32c3_$($offset)_0xc00.bin ; python "$($env:IDF_PATH)/components/esptool_py/esptool/esptool.py" read_flash $offset 0x1000 esp32c3_$($offset)_0xc00.bin ; python "$($env:IDF_PATH)/components/partition_table/gen_esp32part.py" .\esp32c3_$($offset)_0xc00.bin
Lottie Element oEmbed test of open window animation: