EasyManua.ls Logo

Espressif ESP32-S2 - Page 774

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
ESP_PARTITION_SUBTYPE_APP_TEST = 0x20
Test application partition.
ESP_PARTITION_SUBTYPE_DATA_OTA = 0x00
OTA selection partition.
ESP_PARTITION_SUBTYPE_DATA_PHY = 0x01
PHY init data partition.
ESP_PARTITION_SUBTYPE_DATA_NVS = 0x02
NVS partition.
ESP_PARTITION_SUBTYPE_DATA_COREDUMP = 0x03
COREDUMP partition.
ESP_PARTITION_SUBTYPE_DATA_NVS_KEYS = 0x04
Partition for NVS keys.
ESP_PARTITION_SUBTYPE_DATA_EFUSE_EM = 0x05
Partition for emulate eFuse bits.
ESP_PARTITION_SUBTYPE_DATA_UNDEFINED = 0x06
Undefined (or unspecied) data partition.
ESP_PARTITION_SUBTYPE_DATA_ESPHTTPD = 0x80
ESPHTTPD partition.
ESP_PARTITION_SUBTYPE_DATA_FAT = 0x81
FAT partition.
ESP_PARTITION_SUBTYPE_DATA_SPIFFS = 0x82
SPIFFS partition.
ESP_PARTITION_SUBTYPE_ANY = 0xff
Used to search for partitions with any subtype.
API Reference - Flash Encrypt
Header File
components/bootloader_support/include/esp_flash_encrypt.h
Functions
static bool esp_flash_encryption_enabled(void)
Is flash encryption currently enabled in hardware?
Flash encryption is enabled if the FLASH_CRYPT_CNT efuse has an odd number of bits set.
Return true if flash encryption is enabled.
esp_err_t esp_flash_encrypt_check_and_update(void)
esp_err_t esp_flash_encrypt_region(uint32_t src_addr, size_t data_length)
Encrypt-in-place a block of flash sectors.
Note This function resets RTC_WDT between operations with sectors.
Return ESP_OK if all operations succeeded, ESP_ERR_FLASH_OP_FAIL if SPI flash fails,
ESP_ERR_FLASH_OP_TIMEOUT if flash times out.
Parameters
src_addr: Source offset in flash. Should be multiple of 4096 bytes.
data_length: Length of data to encrypt in bytes. Will be rounded up to next multiple of 4096
bytes.
void esp_flash_write_protect_crypt_cnt(void)
Write protect FLASH_CRYPT_CNT.
Espressif Systems 763
Submit Document Feedback
Release v4.4

Table of Contents