idf.py build. The SDK determines generated headers, compiler selection, partition layout and image production. A register description does not configure any of these.
To change ESP32 target, follow the SDK’s set-target workflow and inspect the resulting configuration changes. It can clear the build directory and replace configuration. Rebuild before programming, and select the correct port/probe and image.
ESP32 variants use different architectures and debug arrangements. Do not reuse an Xtensa debugger or target script merely because another product shares the ESP32 family name.
IDF command reference · Espressif extension workflows