Parcourir la source

fix ymodem update

zhunk il y a 1 an
Parent
commit
d0e8323332

+ 1 - 1
Application_cbd_apm32f1/applications/control.h

@@ -21,7 +21,7 @@
 #define BZYV2_EN         0              //孢子仪2.0
 ////////////////////////////////////////////////////////////////
 
-#define VERSION_BZY         "2.2.0"                   //孢子仪
+#define VERSION_BZY         "2.3.0"                   //孢子仪
 
 
 /*********************************************************************/

+ 4 - 3
Application_cbd_apm32f1/packages/ota_downloader-v1.0.0/src/ymodem_ota.c

@@ -15,7 +15,8 @@
 #include <finsh.h>
 #include <fal.h>
 #include <ymodem.h>
-#define DBG_ENABLE
+
+//#define DBG_ENABLE
 #define DBG_SECTION_NAME               "ymodem"
 #ifdef OTA_DOWNLOADER_DEBUG
 #define DBG_LEVEL                      DBG_LOG
@@ -44,7 +45,7 @@ static enum rym_code ymodem_on_begin(struct rym_ctx *ctx, rt_uint8_t *buf, rt_si
     file_name = (char *)&buf[0];
     file_size = (char *)&buf[rt_strlen(file_name) + 1];
     update_file_total_size = atol(file_size);
-    rt_kprintf("Ymodem file_size:%d\n", update_file_total_size);
+    //rt_kprintf("Ymodem file_size:%d\n", update_file_total_size);
 
     update_file_cur_size = 0;
 
@@ -61,7 +62,7 @@ static enum rym_code ymodem_on_begin(struct rym_ctx *ctx, rt_uint8_t *buf, rt_si
         return RYM_CODE_CAN;
     }
 
-    LOG_I("Start erase. Size (%d)", update_file_total_size);
+    //LOG_I("Start erase. Size (%d)", update_file_total_size);
 
     /* erase DL section */
     if (fal_partition_erase(dl_part, 0, update_file_total_size) < 0)

+ 3 - 0
Application_cbd_apm32f1/readme.md

@@ -1,3 +1,6 @@
+# 2025-07-25 更新说明
+#define VERSION_BZY         "2.3.0"                   //孢子仪
+	1. 修复Ymodem升级失败的bug,原因是在ymodem_on_begin函数中打印了日志导致;
 # 2025-05-23 更新说明
 #define VERSION_BZY         "2.1.0"                   //孢子仪
 1. 自动对焦移植;