We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242063e commit 28179a3Copy full SHA for 28179a3
supervisor/shared/external_flash/external_flash.c
@@ -218,11 +218,12 @@ void supervisor_flash_init(void) {
218
do {
219
spi_flash_read_command(CMD_READ_STATUS, read_status_response, 1);
220
} while ((read_status_response[0] & 0x1) != 0);
221
- // The suspended write/erase bit should be low.
222
- do {
+ if (!flash_device->single_status_byte) {
+ // The suspended write/erase bit should be low.
223
+ do {
224
spi_flash_read_command(CMD_READ_STATUS2, read_status_response, 1);
- } while ((read_status_response[0] & 0x80) != 0);
225
-
+ } while ((read_status_response[0] & 0x80) != 0);
226
+ }
227
228
spi_flash_command(CMD_ENABLE_RESET);
229
spi_flash_command(CMD_RESET);
0 commit comments