esp_flash_get_physical_size() is only used within ESP-IDF.
 
Symbols
loading (1/5)...
Files
loading (3/5)...
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

ESP_OK on success, or a flash error code if operation failed.

Notes

Most flash chips use a common format for flash ID, where the lower 4 bits specify the size as a power of 2. If the manufacturer doesn't follow this convention, the size may be incorrectly detected.

References