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 2101084 commit 38b5788Copy full SHA for 38b5788
ports/raspberrypi/supervisor/internal_flash.c
@@ -91,9 +91,11 @@ void supervisor_flash_init(void) {
91
// Read the RDID register to get the flash capacity.
92
uint8_t cmd[] = {0x9f, 0, 0, 0};
93
uint8_t data[4];
94
+ common_hal_mcu_disable_interrupts();
95
supervisor_flash_pre_write();
96
flash_do_cmd(cmd, data, 4);
97
supervisor_flash_post_write();
98
+ common_hal_mcu_enable_interrupts();
99
uint8_t power_of_two = FLASH_DEFAULT_POWER_OF_TWO;
100
// Flash must be at least 2MB (1 << 21) because we use the first 1MB for the
101
// CircuitPython core. We validate the range because Adesto Tech flash chips
0 commit comments