Skip to content

Commit db1955d

Browse files
MichaelBellGadgetoid
authored andcommitted
ports/rp2: Reset flash timing before PSRAM timing.
Signed-off-by: Mike Bell <[email protected]>
1 parent 7bea104 commit db1955d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/rp2_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ static uint32_t begin_critical_flash_section(void) {
149149
}
150150

151151
static void end_critical_flash_section(uint32_t state) {
152+
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
152153
#if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
153154
psram_init(MICROPY_HW_PSRAM_CS_PIN);
154155
#endif
155-
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
156156
restore_interrupts(state);
157157
if (use_multicore_lockout()) {
158158
multicore_lockout_end_blocking();

0 commit comments

Comments
 (0)