Skip to content

Commit 758e752

Browse files
committed
add pm_static.yml for static partition table
Nordic recommends that multi-artifact builds (like mcuboot + app in this repository) use a static partition table. The resolves the build warning: --------------------------------------------------------------------- --- WARNING: Using a bootloader without pm_static.yml. --- --- There are cases where a deployed product can consist of --- --- multiple images, and only a subset of these images can be --- --- upgraded through a firmware update mechanism. In such cases, --- --- the upgradable images must have partitions that are static --- --- and are matching the partition map used by the bootloader --- --- programmed onto the device. --- --------------------------------------------------------------------- Signed-off-by: Mike Szczys <[email protected]>
1 parent 523f8bd commit 758e752

File tree

1 file changed

+214
-0
lines changed

1 file changed

+214
-0
lines changed

pm_static.yml

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
EMPTY_0:
2+
address: 0xc000
3+
end_address: 0x10000
4+
placement:
5+
before:
6+
- mcuboot_pad
7+
region: flash_primary
8+
size: 0x4000
9+
EMPTY_1:
10+
address: 0xfa000
11+
end_address: 0x100000
12+
placement:
13+
after:
14+
- settings_storage
15+
region: flash_primary
16+
size: 0x6000
17+
EMPTY_2:
18+
address: 0xf0000
19+
end_address: 0xf8000
20+
placement:
21+
after:
22+
- mcuboot_secondary
23+
region: flash_primary
24+
size: 0x8000
25+
app:
26+
address: 0x18000
27+
end_address: 0x80000
28+
region: flash_primary
29+
size: 0x68000
30+
mcuboot:
31+
address: 0x0
32+
end_address: 0xc000
33+
placement:
34+
before:
35+
- mcuboot_primary
36+
region: flash_primary
37+
size: 0xc000
38+
mcuboot_pad:
39+
address: 0x10000
40+
end_address: 0x10200
41+
placement:
42+
align:
43+
start: 0x8000
44+
before:
45+
- mcuboot_primary_app
46+
region: flash_primary
47+
size: 0x200
48+
mcuboot_primary:
49+
address: 0x10000
50+
end_address: 0x80000
51+
orig_span: &id001
52+
- app
53+
- tfm
54+
- mcuboot_pad
55+
region: flash_primary
56+
sharers: 0x1
57+
size: 0x70000
58+
span: *id001
59+
mcuboot_primary_app:
60+
address: 0x10200
61+
end_address: 0x80000
62+
orig_span: &id002
63+
- app
64+
- tfm
65+
region: flash_primary
66+
size: 0x6fe00
67+
span: *id002
68+
mcuboot_secondary:
69+
address: 0x80000
70+
end_address: 0xf0000
71+
placement:
72+
after:
73+
- mcuboot_primary
74+
align:
75+
start: 0x8000
76+
region: flash_primary
77+
share_size:
78+
- mcuboot_primary
79+
size: 0x70000
80+
mcuboot_sram:
81+
address: 0x20000000
82+
end_address: 0x20008000
83+
orig_span: &id003
84+
- tfm_sram
85+
region: sram_primary
86+
size: 0x8000
87+
span: *id003
88+
nonsecure_storage:
89+
address: 0xf8000
90+
end_address: 0xfa000
91+
orig_span: &id004
92+
- settings_storage
93+
region: flash_primary
94+
size: 0x2000
95+
span: *id004
96+
nrf_modem_lib_ctrl:
97+
address: 0x20008000
98+
end_address: 0x200084e8
99+
inside:
100+
- sram_nonsecure
101+
placement:
102+
after:
103+
- tfm_sram
104+
- start
105+
region: sram_primary
106+
size: 0x4e8
107+
nrf_modem_lib_rx:
108+
address: 0x2000a568
109+
end_address: 0x2000c568
110+
inside:
111+
- sram_nonsecure
112+
placement:
113+
after:
114+
- nrf_modem_lib_tx
115+
region: sram_primary
116+
size: 0x2000
117+
nrf_modem_lib_sram:
118+
address: 0x20008000
119+
end_address: 0x2000c568
120+
orig_span: &id005
121+
- nrf_modem_lib_ctrl
122+
- nrf_modem_lib_tx
123+
- nrf_modem_lib_rx
124+
region: sram_primary
125+
size: 0x4568
126+
span: *id005
127+
nrf_modem_lib_tx:
128+
address: 0x200084e8
129+
end_address: 0x2000a568
130+
inside:
131+
- sram_nonsecure
132+
placement:
133+
after:
134+
- nrf_modem_lib_ctrl
135+
region: sram_primary
136+
size: 0x2080
137+
otp:
138+
address: 0xff8108
139+
end_address: 0xff83fc
140+
region: otp
141+
size: 0x2f4
142+
settings_storage:
143+
address: 0xf8000
144+
end_address: 0xfa000
145+
inside:
146+
- nonsecure_storage
147+
placement:
148+
align:
149+
start: 0x8000
150+
before:
151+
- end
152+
region: flash_primary
153+
size: 0x2000
154+
sram_nonsecure:
155+
address: 0x20008000
156+
end_address: 0x20040000
157+
orig_span: &id006
158+
- sram_primary
159+
- nrf_modem_lib_ctrl
160+
- nrf_modem_lib_tx
161+
- nrf_modem_lib_rx
162+
region: sram_primary
163+
size: 0x38000
164+
span: *id006
165+
sram_primary:
166+
address: 0x2000c568
167+
end_address: 0x20040000
168+
region: sram_primary
169+
size: 0x33a98
170+
sram_secure:
171+
address: 0x20000000
172+
end_address: 0x20008000
173+
orig_span: &id007
174+
- tfm_sram
175+
region: sram_primary
176+
size: 0x8000
177+
span: *id007
178+
tfm:
179+
address: 0x10200
180+
end_address: 0x18000
181+
inside:
182+
- mcuboot_primary_app
183+
placement:
184+
before:
185+
- app
186+
region: flash_primary
187+
size: 0x7e00
188+
tfm_nonsecure:
189+
address: 0x18000
190+
end_address: 0x80000
191+
orig_span: &id008
192+
- app
193+
region: flash_primary
194+
size: 0x68000
195+
span: *id008
196+
tfm_secure:
197+
address: 0x10000
198+
end_address: 0x18000
199+
orig_span: &id009
200+
- mcuboot_pad
201+
- tfm
202+
region: flash_primary
203+
size: 0x8000
204+
span: *id009
205+
tfm_sram:
206+
address: 0x20000000
207+
end_address: 0x20008000
208+
inside:
209+
- sram_secure
210+
placement:
211+
after:
212+
- start
213+
region: sram_primary
214+
size: 0x8000

0 commit comments

Comments
 (0)