From c8dd87c27ed317ff1f84ba1e6e4980bb61b0defe Mon Sep 17 00:00:00 2001 From: XiNGRZ Date: Mon, 23 Jan 2023 22:51:00 +0800 Subject: [PATCH] dynamic: Adjust partition table for bootloader (app offset 0x10000) --- config/boards/arm/hw75_dynamic/README.md | 5 ++--- config/boards/arm/hw75_dynamic/hw75_dynamic.dts | 9 +++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config/boards/arm/hw75_dynamic/README.md b/config/boards/arm/hw75_dynamic/README.md index 8953d328..b70637d2 100644 --- a/config/boards/arm/hw75_dynamic/README.md +++ b/config/boards/arm/hw75_dynamic/README.md @@ -20,9 +20,8 @@ HW-75 Dynamic ## 烧录 -```sh -pyocd load --pack=Keil.STM32F4xx_DFP.2.16.0.pack --target stm32f405rg hw75_dynamic-zmk.hex -``` +1. 从 [Releases](https://github.com/xingrz/zmk-config_helloword_hw-75/releases/latest) 下载最新的固件; +2. 参考[固件更新说明](https://github.com/xingrz/zmk-config_helloword_hw-75/wiki/%E5%9B%BA%E4%BB%B6%E6%9B%B4%E6%96%B0-(%E6%89%A9%E5%B1%95))烧入固件。 ## 二次开发 diff --git a/config/boards/arm/hw75_dynamic/hw75_dynamic.dts b/config/boards/arm/hw75_dynamic/hw75_dynamic.dts index 807993de..68e6c14e 100644 --- a/config/boards/arm/hw75_dynamic/hw75_dynamic.dts +++ b/config/boards/arm/hw75_dynamic/hw75_dynamic.dts @@ -241,9 +241,14 @@ #address-cells = <1>; #size-cells = <1>; - code_partition: partition@0 { + bootloader_partition: partition@0 { + label = "bootloader"; + reg = <0x00000000 DT_SIZE_K(64)>; + }; + + code_partition: partition@10000 { label = "code_partition"; - reg = <0x00000000 DT_SIZE_K(256)>; + reg = <0x00010000 DT_SIZE_K(256)>; }; storage_partition: partition@e0000 {