boards: nordic: nrf7002dk: Add SPI nrfutil config

Adds a configuration file which is used with nrfutil to allow
programming the SPI flash on the device

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2025-03-31 11:15:18 +01:00 committed by Benjamin Cabé
commit cd79d233e6
2 changed files with 18 additions and 0 deletions

View file

@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP OR CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001)
board_runner_args(nrfutil "--ext-mem-config-file=${BOARD_DIR}/support/nrf7002dk_spi_nrfutil_config.json")
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
elseif(CONFIG_BOARD_NRF7002DK_NRF5340_CPUNET)
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")

View file

@ -0,0 +1,17 @@
{
"firmware_config": {
"peripheral": "SPIM0"
},
"pins": {
"sck": 8,
"csn": 11,
"io0": 9,
"io1": 10,
"io2": 4294967295,
"io3": 4294967295
},
"flash_size": 8388608,
"page_size": 4096,
"sck_frequency": 8000000,
"address_mode": "MODE24BIT"
}