diff options
| author | Damien George | 2019-07-03 00:59:56 +1000 |
|---|---|---|
| committer | Damien George | 2019-07-03 01:27:33 +1000 |
| commit | 2034c0a2e364404216c8cadeb661fbc72647d16a (patch) | |
| tree | da757e6f956d5f09e9289038908cbe95f83ea2c7 | |
| parent | 8da39fd182aee0f357c34d8e17f54601c078f6e0 (diff) | |
stm32/qspi: Force a reset of the QSPI peripheral when initialising it.
To ensure it is in a known state on start up.
| -rw-r--r-- | ports/stm32/qspi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/qspi.c b/ports/stm32/qspi.c index 8ed3a17dd..282759967 100644 --- a/ports/stm32/qspi.c +++ b/ports/stm32/qspi.c @@ -88,6 +88,8 @@ void qspi_init(void) { // Bring up the QSPI peripheral __HAL_RCC_QSPI_CLK_ENABLE(); + __HAL_RCC_QSPI_FORCE_RESET(); + __HAL_RCC_QSPI_RELEASE_RESET(); QUADSPI->CR = (MICROPY_HW_QSPI_PRESCALER - 1) << QUADSPI_CR_PRESCALER_Pos |
