Where is app_main() called on the ESP32 (ESP-IDF)?
app_main() is called from the FreeRTOS main_task() in port_common.c().
For version 4.4.1 of the ESP-IDF, this is the link to the location where it is called.
Check out similar posts by category:
Embedded, ESP8266/ESP32
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow