Bad Flash or bad code responsible for big-file-download crashes?
Posted: Wed Jun 30, 2021 9:44 am
I have observed that downloading of files >150k crashes my ESP32-WROOM-32E at about every 2nd(!) attempt triggered by a Watch-Dog-Timer firing. After a lot of struggle and tests with other ESP32s, I found that this happens when Flash from one specific manufacturer is used in the ESP device. This final result is shown here https://github.com/me-no-dev/ESPAsyncWe ... -869516169
This manufacturer's ID is 0x68. Looking though ESP-IDF source code files I found this is Boya/Bohong Microelectronics https://github.com/me-no-dev/ESPAsyncWe ... -870580168
Other manufacturers, whose Flash behaved perfectly or at least almost perfectly had ID 0xc8 (GigaDevice) and 0x20 (Unknown).
The code for handling flash in the idf is in folder esp-idf/components/spi_flash. This folder is not present under Arduino framework - I guess the code is in its pre-compiled libs.
What I am wondering are two things:
This manufacturer's ID is 0x68. Looking though ESP-IDF source code files I found this is Boya/Bohong Microelectronics https://github.com/me-no-dev/ESPAsyncWe ... -870580168
Other manufacturers, whose Flash behaved perfectly or at least almost perfectly had ID 0xc8 (GigaDevice) and 0x20 (Unknown).
The code for handling flash in the idf is in folder esp-idf/components/spi_flash. This folder is not present under Arduino framework - I guess the code is in its pre-compiled libs.
What I am wondering are two things:
- are the WDT crashes due to a bug in the code, or does the hardware of Boya/Bohong Microelectronics have a principle defect?
- how can I make sure to buy only devices with flash from manufacturer with IDs 0xc8 or 0x20, since I do not see the type of flash used listed anywhere?