diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-05-27 00:42:29 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-05-27 00:42:29 +0200 |
| commit | 3bd36dce763dac8777cf89f17c8b24659a7e2f6d (patch) | |
| tree | ef80b5ccd061149ab6faaeb13981ebd509d683f1 | |
| parent | b515170e0a1f5a5c79401cd6508b9638232302b3 (diff) | |
nrf/qspi: wait MORE for DPM enter.
| -rw-r--r-- | embassy-nrf/src/qspi.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-nrf/src/qspi.rs b/embassy-nrf/src/qspi.rs index 6cabe1168..882db9d8b 100644 --- a/embassy-nrf/src/qspi.rs +++ b/embassy-nrf/src/qspi.rs | |||
| @@ -255,6 +255,11 @@ impl<'d, T: Instance> Drop for Qspi<'d, T> { | |||
| 255 | // Unfortunately we must spin. There's no way to do this interrupt-driven. | 255 | // Unfortunately we must spin. There's no way to do this interrupt-driven. |
| 256 | // The READY event does NOT fire on DPM enter (but it does fire on DPM exit :shrug:) | 256 | // The READY event does NOT fire on DPM enter (but it does fire on DPM exit :shrug:) |
| 257 | while r.status.read().dpm().is_disabled() {} | 257 | while r.status.read().dpm().is_disabled() {} |
| 258 | |||
| 259 | // Wait MORE for DPM enter. | ||
| 260 | // I have absolutely no idea why, but the wait above is not enough :'( | ||
| 261 | // Tested with mx25r64 in nrf52840-dk, and with mx25r16 in custom board | ||
| 262 | cortex_m::asm::delay(4096); | ||
| 258 | } | 263 | } |
| 259 | 264 | ||
| 260 | // it seems events_ready is not generated in response to deactivate. nrfx doesn't wait for it. | 265 | // it seems events_ready is not generated in response to deactivate. nrfx doesn't wait for it. |
