feat(bootloader): 添加MCUBoot配置文件和系统构建配置
新增pm_static.yml文件定义内存分区布局,包括mcuboot、app、 mcuboot_primary等分区的地址和大小配置。同时添加sysbuild.conf 文件启用MCUBoot引导加载器和单应用模式配置。
This commit is contained in:
30
pm_static.yml
Normal file
30
pm_static.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
||||||
2
sysbuild.conf
Normal file
2
sysbuild.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
SB_CONFIG_BOOTLOADER_MCUBOOT=y
|
||||||
|
SB_CONFIG_MCUBOOT_MODE_SINGLE_APP=y
|
||||||
Reference in New Issue
Block a user