Skip to content

Commit 85f6fcd

Browse files
committed
[nrf fromlist] boards: nordic: nrf52840dk: Add QSPI nrfutil config
Adds a configuration file which is used with nrfutil to allow programming QSPI on the device Upstream PR #: 86985 Signed-off-by: Jamie McCrae <[email protected]>
1 parent c8171c0 commit 85f6fcd

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

boards/nordic/nrf52840dk/board.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3+
if(CONFIG_SOC_NRF52840_QIAA)
4+
board_runner_args(nrfutil "--ext-mem-config-file=${BOARD_DIR}/support/nrf52840dk_qspi_nrfutil_config.json")
5+
endif()
6+
37
board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")
48
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
59
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"firmware_config": {
3+
"peripheral": "QSPI"
4+
},
5+
"pins": {
6+
"sck": 19,
7+
"csn": 17,
8+
"io0": 20,
9+
"io1": 21,
10+
"io2": 22,
11+
"io3": 23
12+
},
13+
"flash_size": 67108864,
14+
"sck_frequency": 8000000,
15+
"address_mode": "MODE24BIT",
16+
"readoc": "READ4IO",
17+
"writeoc": "PP4IO",
18+
"pp_size": "PPSIZE256",
19+
"sck_delay": 128,
20+
"rx_delay": 2,
21+
"page_size": 4096
22+
}

0 commit comments

Comments
 (0)