The following code snippet shows an example configuration file for the nRF52840 DK that specifies the settings for accessing external memory using the SPI interface on a nRF52840 device:
{
"firmware_config": {
"peripheral": "QSPI",
"compress": true
},
"pins": {
"sck": 19,
"csn": 17,
"io0": 20,
"io1": 21,
"io2": 22,
"io3": 23
},
"flash_size": 8388608,
"sck_frequency": 8000000,
"address_mode": "MODE24BIT",
"readoc": "READ4IO",
"writeoc": "PP4IO",
"pp_size": "PPSIZE256",
"sck_delay": 0,
"rx_delay": 2,
"page_size": 4096
}