Skip to content

Commit 65f70d6

Browse files
nordicjmcarlescufi
authored andcommitted
doc: nrf: app_dev: bootloaders_dfu: Replace nrjprog usage in QSPI XIP
Replace nrfjprog usage for QSPI XIP split image support with experimental nrfutil file which needs confirmed by nrfutil team Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 0d87c40)
1 parent 1885660 commit 65f70d6

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

doc/nrf/app_dev/bootloaders_dfu/qspi_xip_split_image.rst

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,41 @@ The standard procedure programs the firmware using the default nRF Util configur
220220
Programming using a different SPI mode
221221
======================================
222222

223-
If you are using a different SPI mode on the QSPI interface, such as DSPI, you must use a custom :file:`Qspi.ini` file.
223+
If you are using a different SPI mode on the QSPI interface, such as DSPI, you must use a custom :file:`qspi_nrfutil.json` file.
224224
The following is an example for the Thingy:53, which supports DSPI and PP:
225225

226-
.. literalinclude:: ../../../../samples/nrf5340/extxip_smp_svr/Qspi_thingy53.ini
226+
.. code-block:: json
227+
228+
{
229+
"firmware_config": {
230+
"peripheral": "QSPI"
231+
},
232+
"pins": {
233+
"sck": 17,
234+
"csn": 18,
235+
"io0": 13,
236+
"io1": 14,
237+
"io2": 15,
238+
"io3": 16
239+
},
240+
"flash_size": 8388608,
241+
"sck_frequency": 8000000,
242+
"address_mode": "MODE24BIT",
243+
"readoc": "READ2IO",
244+
"writeoc": "PP",
245+
"pp_size": "PPSIZE256",
246+
"sck_delay": 128,
247+
"rx_delay": 2,
248+
"page_size": 4096
249+
}
227250
228251
To use this file when programming, add the following lines to the application's :file:`CMakeLists.txt` file before the ``find_package()`` line:
229252

230253
.. code-block:: cmake
231254
232255
macro(app_set_runner_args)
233256
# Replace with the filename of your json file
234-
board_runner_args(nrfutil "--ext-mem-config-file=${CMAKE_CURRENT_SOURCE_DIR}/qspi_thingy53.json")
257+
board_runner_args(nrfutil "--ext-mem-config-file=${CMAKE_CURRENT_SOURCE_DIR}/qspi_nrfutil.json")
235258
endmacro()
236259
237260
This will enable programming the target board successfully when using ``west flash``.

0 commit comments

Comments
 (0)