|
|
@@ -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)
|