8000 Merge pull request #10111 from eightycc/issue-10104 · FoamyGuy/circuitpython@612d22c · GitHub
[go: up one dir, main page]

Skip to content

Commit 612d22c

Browse files
authored
Merge pull request adafruit#10111 from eightycc/issue-10104
Fix RP2350 Hang During storage.erase_filesystem
2 parents bc36b94 + 38b5788 commit 612d22c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/raspberrypi/supervisor/internal_flash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ void supervisor_flash_init(void) {
9191
// Read the RDID register to get the flash capacity.
9292
uint8_t cmd[] = {0x9f, 0, 0, 0};
9393
uint8_t data[4];
94+
common_hal_mcu_disable_interrupts();
9495
supervisor_flash_pre_write();
9596
flash_do_cmd(cmd, data, 4);
96< 508E /td>97
supervisor_flash_post_write();
98+
common_hal_mcu_enable_interrupts();
9799
uint8_t power_of_two = FLASH_DEFAULT_POWER_OF_TWO;
98100
// Flash must be at least 2MB (1 << 21) because we use the first 1MB for the
99101
// CircuitPython core. We validate the range because Adesto Tech flash chips

0 commit comments

Comments
 (0)
0