Skip to content

Commit b943b9c

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

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
@@ -159,10 +159,10 @@ static uint32_t begin_critical_flash_section(void) {
159159
}
160160

161161
static void end_critical_flash_section(uint32_t state) {
162+
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
162163
#if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
163164
psram_init(MICROPY_HW_PSRAM_CS_PIN);
164165
#endif
165-
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
166166
restore_interrupts(state);
167167
if (use_multicore_lockout()) {
168168
multicore_lockout_end_blocking();

0 commit comments

Comments
 (0)