Skip to main content
Amilton Rogério da Silva
Associate III
April 5, 2020
Question

QSPI - How to exit memory mapped mode

  • April 5, 2020
  • 1 reply
  • 1068 views

Hi,

How to exit from qspi memory mapped mode?

Thanks in advance.

This topic has been closed for replies.

1 reply

Andreas Bolsch
Lead III
April 5, 2020

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 ...