Example for SPI on an nRF52 Series device

nRF Util

tags
nRF Util

The following code snippet shows an example configuration file for nRF52 Series devices (except nRF52840, covered in the previous section) that specifies the settings for accessing external memory using the SPIM0 interface:

Note

The firmware_config.compress field is only available on nRF52840, nRF52833, and nRF52832 because of RAM requirements.

{
  "firmware_config": {
    "peripheral": "SPIM0"
  },
  "pins": {
    "sck": 3,
    "csn": 4,
    "io0": 28,
    "io1": 29,
    "io2": 4294967295,
    "io3": 4294967295
  },
  "flash_size": 8388608,
  "page_size": 4096,
  "sck_frequency": 8000000,
  "address_mode": "MODE24BIT"
}