2020-04-05 05:41 AM
2020-04-05 07:55 AM
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 ...