esp32: Core dump API to retrieve current core data layout in flash

This commit is contained in:
Alexey Gerenkov
2018-03-13 17:07:42 +03:00
committed by bot
parent a55cc99f50
commit 30e766ee6b
3 changed files with 80 additions and 1 deletions

View File

@@ -14,6 +14,11 @@
#ifndef ESP_CORE_DUMP_H_
#define ESP_CORE_DUMP_H_
/**************************************************************************************/
/******************************** EXCEPTION MODE API **********************************/
/**************************************************************************************/
/**
* @brief Initializes core dump module internal data.
*
@@ -61,4 +66,20 @@ void esp_core_dump_to_flash();
*/
void esp_core_dump_to_uart();
/**************************************************************************************/
/*********************************** USER MODE API ************************************/
/**************************************************************************************/
/**
* @brief Retrieves address and size of coredump data in flash.
* This function is always available, even when core dump is disabled in menuconfig.
*
* @param out_addr pointer to store image address in flash.
* @param out_size pointer to store image size in flash (including CRC). In bytes.
*
* @return ESP_OK on success, otherwise \see esp_err_t
*/
esp_err_t esp_core_dump_image_get(size_t* out_addr, size_t *out_size);
#endif