From 919fd8f2a8fc0dc9f99ff83ab13f46adbc5518b4 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 02 四月 2025 17:08:13 +0800 Subject: [PATCH] 最新boot,测试可以用,支持升级 ota,注意跳转延时不要动 --- dualboots_Gai_youhua/keil/customboot/AppConfig.h | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dualboots_Gai_youhua/keil/customboot/AppConfig.h b/dualboots_Gai_youhua/keil/customboot/AppConfig.h index 982987e..6c74d14 100644 --- a/dualboots_Gai_youhua/keil/customboot/AppConfig.h +++ b/dualboots_Gai_youhua/keil/customboot/AppConfig.h @@ -42,6 +42,21 @@ #define APP_CONFIG_BOOT_ROM_SIZE 0x00010000 #define APP_CONFIG_APP_ROM_ADDRESS 0x08010000 #define APP_CONFIG_APP_ROM_SIZE 0x00030000 +//boot 0x040A0000-0x04000000 40k +//app1 0x0402f000-0x0400A000 148k (最后包括gcom表) +//app2 0x04054000-0x0402f000 148k +//OTA 0x04079000-0x04054000 148k +//放ota的http链接的地方 APP_CONFIG_IAP_PARAM_MAP 0x0407A000 + +#define FLASH_IAP_CTRL_MAP (uint32_t)APP_CONFIG_IAPFLAG_SECTOR_ADDR + +#define APP2_ADRESS 0x0402f000 +#define APP1_ADRESS 0x0400A000 +#define OTA_ADRESS 0x04054000 +#define FINAL_OTA_ADRESS 0x04079000 +#define APP_CONFIG_IAP_PARAM_MAP 0x0407A000 + +#define APP_SIZE 0x04080000-APP2_ADRESS /******************************************************************************* * Type Definition * *******************************************************************************/ -- Gitblit v1.9.3