zephyr/soc/nordic/soc.yml
Jamie McCrae 4b2d19f147 soc: nordic: Add run once and deferred reset configuration
Adds configuration that allows nRF53 and nRF91-based boards to be
flashed through west using sysbuild for multiple images with the
recover or erase options and prevent running those commands for
each image being flash, which would make the device unbootable.
Also defers reset whilst all images for the cores of these SoCs
are flashed.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-29 17:56:19 +01:00

100 lines
2.5 KiB
YAML

family:
- name: nordic_nrf
series:
- name: nrf51
socs:
- name: nrf51822
- name: nrf52
socs:
- name: nrf52805
- name: nrf52810
- name: nrf52811
- name: nrf52820
- name: nrf52832
- name: nrf52833
- name: nrf52840
- name: nrf53
socs:
- name: nrf5340
cpuclusters:
- name: cpuapp
- name: cpunet
- name: nrf54l
socs:
- name: nrf54l15
cpuclusters:
- name: cpuapp
- name: cpuflpr
- name: nrf54h
socs:
- name: nrf54h20
cpuclusters:
- name: cpuapp
- name: cpurad
- name: cpuppr
- name: nrf91
socs:
- name: nrf9131
- name: nrf9151
- name: nrf9160
- name: nrf9161
# Recovery/erase is only needed once per core. Prevent resetting the cores whilst flashing
# multiple images until all images for each core have been flashed, this allows security
# bits to be set during programming without them interfering with additional flashing
# operations.
runners:
run_once:
'--recover':
- runners:
- nrfjprog
run: first
groups:
- qualifiers:
- nrf51([0-9]{3})((.+)?)
- qualifiers:
- nrf52([0-9]{3})((.+)?)
- qualifiers:
- nrf5340/cpunet
- nrf5340/cpuapp
- nrf5340/cpuapp/ns
- qualifiers:
- nrf9160
- nrf9160/ns
'--erase':
- runners:
- nrfjprog
- jlink
run: first
groups:
- qualifiers:
- nrf51([0-9]{3})((.+)?)
- qualifiers:
- nrf52([0-9]{3})((.+)?)
- qualifiers:
- nrf5340/cpunet
- qualifiers:
- nrf5340/cpuapp
- nrf5340/cpuapp/ns
- qualifiers:
- nrf9160
- nrf9160/ns
'--reset':
- runners:
- nrfjprog
- jlink
run: last
groups:
- qualifiers:
- nrf51([0-9]{3})((.+)?)
- qualifiers:
- nrf52([0-9]{3})((.+)?)
- qualifiers:
- nrf5340/cpunet
- qualifiers:
- nrf5340/cpuapp
- nrf5340/cpuapp/ns
- qualifiers:
- nrf9160
- nrf9160/ns