Get SPI flash unique ID
Posted: Thu Aug 19, 2021 4:25 am
Is there any code example that is able to read SPI flash unique ID?
Trying out ESP-IDF example https://github.com/espressif/esp-idf/bl ... ple_main.c but it said
I tested the code on ESP32-WROVER module with 4MB SPI flash.
In the sample code, esp_flash_read_id() is the API to get the flash ID but how can I get the esp_flash_t* ext_flash of the ESP32 module default SPI flash? Any recommendation?
Trying out ESP-IDF example https://github.com/espressif/esp-idf/bl ... ple_main.c but it said
Code: Select all
E (450) example: Failed to initialize external Flash: ESP_ERR_INVALID_RESPONSE (0x108)
In the sample code, esp_flash_read_id() is the API to get the flash ID but how can I get the esp_flash_t* ext_flash of the ESP32 module default SPI flash? Any recommendation?