From b9b7d342f58d8180ef5fdf422f492937aa67675f Mon Sep 17 00:00:00 2001 From: skiinder Date: Fri, 10 Apr 2026 14:57:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(bootloader):=20=E6=B7=BB=E5=8A=A0MCUBoot?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8C=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增pm_static.yml文件定义内存分区布局,包括mcuboot、app、 mcuboot_primary等分区的地址和大小配置。同时添加sysbuild.conf 文件启用MCUBoot引导加载器和单应用模式配置。 --- pm_static.yml | 30 ++++++++++++++++++++++++++++++ sysbuild.conf | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pm_static.yml create mode 100644 sysbuild.conf diff --git a/pm_static.yml b/pm_static.yml new file mode 100644 index 0000000..8055a02 --- /dev/null +++ b/pm_static.yml @@ -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 diff --git a/sysbuild.conf b/sysbuild.conf new file mode 100644 index 0000000..1e134e9 --- /dev/null +++ b/sysbuild.conf @@ -0,0 +1,2 @@ +SB_CONFIG_BOOTLOADER_MCUBOOT=y +SB_CONFIG_MCUBOOT_MODE_SINGLE_APP=y