ESP32 release config

Check the ESP32 settings as detailed on this page

menuconfig particular settings to check:

Panic handler behaviour (CONFIG_ESP_SYSTEM_PANIC configuration)

What happens when a fatal issue occurs and the CPU has to halt.
Component config > ESP System Settings > Panic handler behaviour = Print registers and reboot

Releasing files and setup for production programming

See the production programming page here.