Skip to content

Commit 4b2d19f

Browse files
nordicjmfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 8b62a16 commit 4b2d19f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

soc/nordic/soc.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,62 @@ family:
3838
- name: nrf9151
3939
- name: nrf9160
4040
- name: nrf9161
41+
42+
# Recovery/erase is only needed once per core. Prevent resetting the cores whilst flashing
43+
# multiple images until all images for each core have been flashed, this allows security
44+
# bits to be set during programming without them interfering with additional flashing
45+
# operations.
46+
runners:
47+
run_once:
48+
'--recover':
49+
- runners:
50+
- nrfjprog
51+
run: first
52+
groups:
53+
- qualifiers:
54+
- nrf51([0-9]{3})((.+)?)
55+
- qualifiers:
56+
- nrf52([0-9]{3})((.+)?)
57+
- qualifiers:
58+
- nrf5340/cpunet
59+
- nrf5340/cpuapp
60+
- nrf5340/cpuapp/ns
61+
- qualifiers:
62+
- nrf9160
63+
- nrf9160/ns
64+
'--erase':
65+
- runners:
66+
- nrfjprog
67+
- jlink
68+
run: first
69+
groups:
70+
- qualifiers:
71+
- nrf51([0-9]{3})((.+)?)
72+
- qualifiers:
73+
- nrf52([0-9]{3})((.+)?)
74+
- qualifiers:
75+
- nrf5340/cpunet
76+
- qualifiers:
77+
- nrf5340/cpuapp
78+
- nrf5340/cpuapp/ns
79+
- qualifiers:
80+
- nrf9160
81+
- nrf9160/ns
82+
'--reset':
83+
- runners:
84+
- nrfjprog
85+
- jlink
86+
run: last
87+
groups:
88+
- qualifiers:
89+
- nrf51([0-9]{3})((.+)?)
90+
- qualifiers:
91+
- nrf52([0-9]{3})((.+)?)
92+
- qualifiers:
93+
- nrf5340/cpunet
94+
- qualifiers:
95+
- nrf5340/cpuapp
96+
- nrf5340/cpuapp/ns
97+
- qualifiers:
98+
- nrf9160
99+
- nrf9160/ns

0 commit comments

Comments
 (0)