From fc9967b37c19c8b5b72837b24c1f35678163ab64 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期一, 30 六月 2025 14:49:07 +0800 Subject: [PATCH] OTAv3 加入传输完成的语音 --- keil/include/src/OTA.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/keil/include/src/OTA.c b/keil/include/src/OTA.c index 0783f1f..0cb6782 100644 --- a/keil/include/src/OTA.c +++ b/keil/include/src/OTA.c @@ -27,7 +27,7 @@ #define MAX_REQUEST_SIZE (5 * 1024) #define APP2_ADRESS 0x0402f000 //#define APP_SIZE 0x04080000-APP2_ADRESS -#define APP_CONFIG_APPLICATION_SIZE 0x19000 //4K对齐 +#define APP_CONFIG_APPLICATION_SIZE 0x20000 //4K对齐 /******************************************************************************* * Type Definition * *******************************************************************************/ @@ -364,6 +364,7 @@ else { l_eOTAType = OTA_TYPE_MUSIC; + flash_erase(FLASH_ID0, APP2_ADRESS, APP_CONFIG_APPLICATION_SIZE); } /* 请求升级文件长度 */ -- Gitblit v1.9.3