Skip to content

Commit

Permalink
ports/rp2: Reset flash timing before PSRAM timing.
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Bell <[email protected]>
  • Loading branch information
MichaelBell authored and Gadgetoid committed Sep 26, 2024
1 parent 6d08994 commit c98c139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/rp2/rp2_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ static uint32_t begin_critical_flash_section(void) {
}

static void end_critical_flash_section(uint32_t state) {
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
#if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
psram_init(MICROPY_HW_PSRAM_CS_PIN);
#endif
rp2_flash_set_timing_internal(clock_get_hz(clk_sys));
restore_interrupts(state);
if (multicore_lockout_victim_is_initialized(1 - get_core_num())) {
multicore_lockout_end_blocking();
Expand Down

0 comments on commit c98c139

Please sign in to comment.