Skip to content

Conversation

earlephilhower
Copy link
Owner

The flash ROM routines seem to overwrite the QMI configuration we set for PSRAM, rendering it unreadable after any erase or write or ID command.

Wrap the 4 flash control functions to preserve the QMI state on the RP2350. On the RP2040, simply pass through the call.

Fixes #2537

The flash ROM routines seem to overwrite the QMI configuration we set for
PSRAM, rendering it unreadable after any erase or write or ID command.

Wrap the 4 flash control functions to preserve the QMI state on the
RP2350.  On the RP2040, simply pass through the call.

Fixes #2537
@maxgerhardt
Copy link
Contributor

PR probably failing for RP2040 because

#ifdef PICO_RP2350
#include <hardware/structs/qmi.h>
#endif

is not hit, but then no #include is done, and all those types like uint32_t are missing.

@earlephilhower earlephilhower merged commit fdd7557 into master Oct 12, 2024
26 checks passed
@earlephilhower earlephilhower deleted the psramflash branch October 12, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flash operations break PSRAM interface

2 participants