External memory

nRF52840 DK Hardware

The nRF52840 DK has a 64 Mb external flash memory. The memory is a multi-I/O memory that supports both Serial Peripheral Interface (SPI) and Quad Serial Peripheral Interface (QSPI).

The memory is connected to the chip using the following General-Purpose Input/Output (GPIO)s.

Table 1. Flash memory GPIO usage and connecting solder bridges
GPIO Flash memory pin Solder bridge for memory use (default: shorted) Solder bridge for GPIO use (default: open)
0.17 CS SB13 SB23
0.19 SCLK SB11 SB21
0.20 SIO_0/SI SB12 SB22
0.21 SIO_1/SO SB14 SB24
0.22 SIO_2/WP SB15 SB25
0.23 SIO_3/HOLD SB10 SB20

To use the GPIOs for a purpose other than the onboard external memory and have them available on the P24 connector, solder bridges SB10SB15 must be cut and solder bridges SB20SB25 must be shorted. See the following figure for details.

Figure 1. Configuring GPIOs for external memory
nRF52840 DK: Configuring GPIOs for external memory
Note: If debugging the QSPI communication is needed, SB20SB25 can be shorted without cutting SB10SB15, but the pins should not be driven externally.

By default, the power supply of the external memory is from the VDD domain, and it is controlled by the nRF ONLY switch SW6. In the nRF only mode, the optional VDD and VDD_nRF power sources can be used to keep the external memory powered. If VDD_nRF is selected, the power consumption of the external memory is added to the nRF52840 current measured on P22 or P23. VDD_PER is the output voltage from the U4 switch. It is used as the power source for the LEDs. See the following table for configuration.

Table 2. Flash memory power source configuration
Power source Solder bridge Default state
VDD_PER SB16 Shorted
VDD SB17 Open
VDD_nRF SB18 Open