File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,7 +302,8 @@ void port_sleep_until_interrupt(void) {
302302 nrf_gpio_cfg_output (MICROPY_QSPI_CS );
303303 nrf_gpio_pin_write (MICROPY_QSPI_CS , 1 );
304304
305- * (volatile uint32_t * )0x40029010 = 1 ;
305+ // Workaround to disable QSPI according to nRF52840 Revision 1 Errata V1.4 - 3.8
306+ NRF_QSPI -> TASKS_DEACTIVATE = 1 ;
306307 * (volatile uint32_t * )0x40029054 = 1 ;
307308 NRF_QSPI -> ENABLE = 0 ;
308309 }
Original file line number Diff line number Diff line change 3939#include "supervisor/shared/external_flash/qspi_flash.h"
4040
4141#if defined(MICROPY_QSPI_OFF_WHEN_SLEEP )
42- #define QSPI_ENABLE qspi_enable
42+ #define QSPI_ENABLE () qspi_enable()
4343
4444static void qspi_enable (void )
4545{
@@ -62,7 +62,7 @@ static void qspi_enable(void)
6262}
6363
6464#else
65- #define QSPI_ENABLE ()
65+ #define QSPI_ENABLE () ((void)0)
6666#endif
6767
6868bool spi_flash_command (uint8_t command ) {
You can’t perform that action at this time.
0 commit comments