spi_flash: failed to get chip size assertion at boot
Posted: Thu Oct 24, 2019 11:06 pm
This afternoon I upgrade my project from v3.1.1 ESP_IDF to the very latest v4 release branch. All the sdkconfig settings were brought across, as far as I can tell, and I sorted out all the CMakeList.txt files reasonably easily to achieve a build.
However, at boot the (2 Mbyte) ESP32 chip that the build had previously worked on complains:
...repeatedly and does nothing more. I've checked the build size and it's not too big (700 kbytes flash) The partition table is the default "single factory app no OTA". The SPI FLASH settings in menuconfig are the same as they were before (DIO, 40 MHz, 2 Mbytes, VDDSDIO 1.9V). CONFIG_ESPTOOLPY_FLASHSIZE_2MB is set and CONFIG_ESPTOOLPY_FLASHSIZE is set to "2MB"
Can anyone suggest what might be going wrong and how to fix it?
FYI, I've tried enabling the legacy SPI driver but then the build fails to link because it can't find esp_flash_default_chip. I've also tried disabling flash size checking by esp_tool.py but that made no difference (the download process correctly identifies the flash as 2 MB anyway).
However, at boot the (2 Mbyte) ESP32 chip that the build had previously worked on complains:
Code: Select all
E (341) spi_flash: failed to get chip size
assertion "flash_ret == ESP_OK" failed: file "C:/Users/rob/esp/esp-idf/components/esp32/cpu_start.c", line 401, function: start_cpu0_default
Can anyone suggest what might be going wrong and how to fix it?
FYI, I've tried enabling the legacy SPI driver but then the build fails to link because it can't find esp_flash_default_chip. I've also tried disabling flash size checking by esp_tool.py but that made no difference (the download process correctly identifies the flash as 2 MB anyway).