新增pm_static.yml文件定义内存分区布局,包括mcuboot、app、 mcuboot_primary等分区的地址和大小配置。同时添加sysbuild.conf 文件启用MCUBoot引导加载器和单应用模式配置。
31 lines
400 B
YAML
31 lines
400 B
YAML
mcuboot:
|
|
address: 0x0
|
|
size: 0x20000
|
|
|
|
mcuboot_pad:
|
|
address: 0x20000
|
|
size: 0x200
|
|
|
|
app:
|
|
address: 0x20200
|
|
size: 0xBFE00
|
|
|
|
mcuboot_primary:
|
|
orig_span: &id001
|
|
- mcuboot_pad
|
|
- app
|
|
span: *id001
|
|
address: 0x20000
|
|
size: 0xC0000
|
|
|
|
mcuboot_primary_app:
|
|
orig_span: &id002
|
|
- app
|
|
span: *id002
|
|
address: 0x20200
|
|
size: 0xBFE00
|
|
|
|
settings_storage:
|
|
address: 0xE0000
|
|
size: 0x20000
|