cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI - How to exit memory mapped mode

Hi,

How to exit from qspi memory mapped mode?

Thanks in advance.

1 REPLY 1
Andreas Bolsch
Lead II

In general: Write new value into QSPI_CR with ABORT bit set and wait for BUSY in QSPI_SR bit to be cleared. Then update QSPI_CCR etc.

But beware of several silicon bugs (see errata sheet for the corresponding device). In some cases a mode change causes a lockup, so be

prepared for the BUSY bit not beeing cleared. In this case reset the QSPI interface via RCC registers and reconfigure it.

BTW: Of course, the address window of the mapped flash should not be touched anymore ...