How is ESP flash memory laid out/used

Maybe this can help.

ESP32 flash layout. The variables are defined here.