To get the last reset reason, call esp_reset_reason() function. Reset Reason ĮSP-IDF applications can be started or restarted due to a variety of reasons. This is similar to the functionality of atexit POSIX function. When the function is called, execution of the program stops, both CPUs are reset, the application is loaded by the bootloader and starts execution again.Īdditionally, the esp_register_shutdown_handler() function can register a routine that will be automatically called before a restart (that is triggered by esp_restart()) occurs. To perform software reset of the chip, the esp_restart() function is provided.
0 Comments
Leave a Reply. |