Parcourir la source

bootloader&app

zhunk il y a 4 mois
Parent
commit
0948d8f97b
28 fichiers modifiés avec 3310 ajouts et 1379 suppressions
  1. 1 13
      Application_cbd_apm32f1/applications/control.h
  2. 1 1
      Application_cbd_apm32f1/applications/fal_cfg.h
  3. 9 17
      Application_cbd_apm32f1/applications/hmi.c
  4. 8 0
      Application_cbd_apm32f1/applications/main.c
  5. 2 0
      Application_cbd_apm32f1/readme.md
  6. 815 73
      CBD_FOTA_BootLoader/.config
  7. 816 74
      CBD_FOTA_BootLoader/.config.old
  8. 239 239
      CBD_FOTA_BootLoader/.cproject
  9. BIN
      CBD_FOTA_BootLoader/.settings/.rtmenus
  10. 1 1
      CBD_FOTA_BootLoader/.settings/projcfg.ini
  11. 6 1
      CBD_FOTA_BootLoader/Kconfig
  12. 41 2
      CBD_FOTA_BootLoader/applications/main.c
  13. 1196 928
      CBD_FOTA_BootLoader/applications/rt_fota.c
  14. 1 1
      CBD_FOTA_BootLoader/applications/sys_config.h
  15. 1 1
      CBD_FOTA_BootLoader/drivers/board.h
  16. 1 4
      CBD_FOTA_BootLoader/drivers/drv_flash_f1.c
  17. 1 1
      CBD_FOTA_BootLoader/drivers/fal_cfg.h
  18. 1 1
      CBD_FOTA_BootLoader/libraries/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h
  19. 1 1
      CBD_FOTA_BootLoader/packages/fal-v0.5.0/src/fal_partition.c
  20. 1 1
      CBD_FOTA_BootLoader/packages/ota_downloader-latest/src/ymodem_ota.c
  21. 7 10
      CBD_FOTA_BootLoader/readme.md
  22. BIN
      CBD_FOTA_BootLoader/rt-thread/tools/building.pyc
  23. BIN
      CBD_FOTA_BootLoader/rt-thread/tools/eclipse.pyc
  24. BIN
      CBD_FOTA_BootLoader/rt-thread/tools/menuconfig.pyc
  25. BIN
      CBD_FOTA_BootLoader/rt-thread/tools/mkdist.pyc
  26. BIN
      CBD_FOTA_BootLoader/rt-thread/tools/utils.pyc
  27. 161 10
      CBD_FOTA_BootLoader/rtconfig.h
  28. BIN
      CBD_FOTA_BootLoader/rtconfig.pyc

+ 1 - 13
Application_cbd_apm32f1/applications/control.h

@@ -36,20 +36,13 @@ typedef struct  _packed
     uint8_t pre_temp;             //培养仓温度
     uint8_t box_temp;             //箱体温度
     uint8_t auto_test_sw;         //一键测试   0-关   1-开
-    uint8_t cold_status;          //制冷状态   0-关   1-开
-    uint8_t cold_sw;              //制冷开关   0-关   1-开
-    uint8_t wind_sw;              //风机开关   0-关   1-开
     uint8_t collect_fan_status;   //采集状态   0-关   1-开
     uint8_t autotakepic;          //对焦拍照   0-关   1-开
-    uint8_t develop_flag;         //是否进入培养模式
-    uint8_t cool_fan_status;      //散热风机状态 0-停止 1-打开
-    uint8_t fsl_sw;               //凡士林开关:0-关,1-开
     /*测报灯*/
     uint8_t heat_sw;         //加热开关
     uint8_t photo_ws;        //拍照
     uint8_t power_status;    //电源
     uint8_t sun_test;        //光控测测试标志位
-    uint8_t heat_status;     //加热状态   0-关   1-开
     uint8_t lamp_status;     //灯管1状态   0-关   1-开
     uint8_t lamp1_status;    //灯管2状态   0-关   1-开
     uint8_t lamp2_status;    //灯管3状态   0-关   1-开
@@ -113,12 +106,10 @@ typedef struct  _packed
     rt_uint32_t num_updata;         //
     rt_uint32_t rebootcnt;          //启动次数
     rt_uint32_t light_over_tim;     //光控定时差秒数,镇流器的结束时间
-    rt_uint32_t data_plan;          //流量套餐
-    rt_uint32_t expiry_date;        //到期时间
     int passWord;              //初始密码
     double process;
     long photo_stamp;           //采集时间戳
-    const char *coll_time[10];
+    const char *coll_time[5];
     char mqttcfg1[64];         //
     char mqttcfg2[64];         //
     char csq[8];               //信号强度
@@ -140,9 +131,6 @@ typedef struct  _packed
     char iccid[32];            //SIM卡ICCID
     char imei[32];             //IMEI,唯一ID
     char link_ip[32];
-    char json_w_clock[128];    //修改时间
-    char json_w_reset[128];    //
-    char json_w_platform[128]; //
     char power[8];             //功率
     char heat_power[8];        //加热功率
     char voltage[6];           //电池电压

+ 1 - 1
Application_cbd_apm32f1/applications/fal_cfg.h

@@ -44,7 +44,7 @@ extern const struct fal_flash_dev stm32f1_onchip_flash;
 {                                                                                    \
     {FAL_PART_MAGIC_WORD,        "bl",     "onchip_flash",                           0,                       200*1024,       0}, \
     {FAL_PART_MAGIC_WORD,        "app",     "onchip_flash",                          200*1024,                312*1024,       0}, \
-    {FAL_PART_MAGIC_WORD, "easyflash",     FAL_USING_NOR_FLASH_DEV_NAME,             0,                       3*1024*1024,   0}, \
+    {FAL_PART_MAGIC_WORD, "easyflash",     FAL_USING_NOR_FLASH_DEV_NAME,             0,                       1*1024*1024,   0}, \
     {FAL_PART_MAGIC_WORD,  "fm_area",     FAL_USING_NOR_FLASH_DEV_NAME,             3*1024*1024,             512*1024,      0}, \
     {FAL_PART_MAGIC_WORD,  "df_area",     FAL_USING_NOR_FLASH_DEV_NAME,             3*1024*1024 + 512*1024,  512*1024,      0}, \
 }

+ 9 - 17
Application_cbd_apm32f1/applications/hmi.c

@@ -239,7 +239,7 @@ void Start_timer_Uart2(void)
 }
 
 
-
+static char str_temp[128] = {};
 /***************************** 解析从屏幕收到的数据 begin **********************************/
 static void HMI_Decode(void)
 {
@@ -633,9 +633,8 @@ static void HMI_Decode(void)
             }
         }
         //2022/06/23,add:
-        rt_sprintf(device_status.json_w_clock,"屏幕操作:修改工作时间:开始-%d,结束-%d,模式-%d(0-光控,1-时控)操作时间:%s",device_status.startBar,device_status.stopBar,device_status.timeSwitch,device_status.stamp);
-        json_temp = makeJson_Warn(device_status.json_w_clock, "修改工作时间");
-        ef_set_env_blob("json_w_clock", &device_status.json_w_clock, sizeof(device_status.json_w_clock));   //将修改屏幕参数操作记录保存到Flash中
+        rt_sprintf(str_temp,"屏幕操作:修改工作时间:开始-%d,结束-%d,模式-%d(0-光控,1-时控)操作时间:%s",device_status.startBar,device_status.stopBar,device_status.timeSwitch,device_status.stamp);
+        json_temp = makeJson_Warn(str_temp, "修改工作时间");
         if(atoi(device_status.net)==0)
             DTU_Write("%s",json_temp);
         rt_free(json_temp);
@@ -775,9 +774,9 @@ static void HMI_Decode(void)
         ResetParamDefault_DC();
         rt_thread_delay(1000);
         //2022/06/23,add:
-        rt_sprintf(device_status.json_w_reset,"屏幕操作:系统重置:电池供电,操作时间:%04d-%02d-%02d %02d:%02d:%02d",tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
-        json_temp = makeJson_Warn(device_status.json_w_reset, "系统重置");
-        ef_set_env_blob("json_w_reset", &device_status.json_w_reset, sizeof(device_status.json_w_reset));   //将修改屏幕参数操作记录保存到Flash中
+        memset(str_temp,0,sizeof(str_temp));
+        rt_sprintf(str_temp,"屏幕操作:系统重置:电池供电,操作时间:%04d-%02d-%02d %02d:%02d:%02d",tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
+        json_temp = makeJson_Warn(str_temp, "系统重置");
         if(atoi(device_status.net)==0)
             DTU_Write("%s",json_temp);
         rt_free(json_temp);
@@ -789,9 +788,9 @@ static void HMI_Decode(void)
         ResetParamDefault();
         rt_thread_delay(1000);
         //2022/06/23,add:
-        rt_sprintf(device_status.json_w_reset,"屏幕操作:系统重置:交流供电,操作时间:%04d-%02d-%02d %02d:%02d:%02d",tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
-        json_temp = makeJson_Warn(device_status.json_w_reset, "系统重置");
-        ef_set_env_blob("json_w_reset", &device_status.json_w_reset, sizeof(device_status.json_w_reset));   //将修改屏幕参数操作记录保存到Flash中
+        memset(str_temp,0,sizeof(str_temp));
+        rt_sprintf(str_temp,"屏幕操作:系统重置:交流供电,操作时间:%04d-%02d-%02d %02d:%02d:%02d",tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
+        json_temp = makeJson_Warn(str_temp, "系统重置");
         if(atoi(device_status.net)==0)
             DTU_Write("%s",json_temp);
         rt_free(json_temp);
@@ -1225,8 +1224,6 @@ void ResetParamDefault(void)
     device_status.startBar = 9;    //定时开始时间
     device_status.stopBar = 18;      //定时结束时间
 
-    device_status.heattime = 10;    //加热时间
-
     device_status.sunBar = 8;
     device_status.tph = 70;         //高温保护阈值
     device_status.tpl = -5;          //低温保护阈值
@@ -1270,9 +1267,6 @@ void ResetParamDefault_DC(void)
     ef_set_env_blob("dattim", &device_status.dattim, sizeof(device_status.dattim)); //数据上传间隔
     device_status.startBar = 10;    //定时开始时间
     device_status.stopBar = 22;      //定时结束时间
-    device_status.heattime = 10;    //加热时间
-    device_status.shake_ws = 1;     //针对开关
-    device_status.shake_sec = 1;    //震动时间1-100ms
     device_status.sunBar = 4;
     device_status.Power_Type = 1;
     device_status.tph = 70;         //高温保护阈值
@@ -1296,8 +1290,6 @@ void ResetParamDefault_DC(void)
     ef_set_env_blob("jheat", &device_status.heatvalue, sizeof(device_status.heatvalue));
     ef_set_env_blob("tph", &device_status.tph, sizeof(device_status.tph));
     ef_set_env_blob("tpl", &device_status.tpl, sizeof(device_status.tpl));
-    ef_set_env_blob("shake_ws", &device_status.shake_ws, sizeof(device_status.shake_ws));      //震动开关
-    ef_set_env_blob("shake_sec", &device_status.shake_sec, sizeof(device_status.shake_sec));   //震动时间
     ef_set_env_blob("thsp", &device_status.thsp, sizeof(device_status.thsp));
     ef_set_env_blob("passWord", &device_status.passWord,sizeof(device_status.passWord));
     ef_set_env_blob("Power_Type", &device_status.Power_Type,sizeof(device_status.Power_Type));

+ 8 - 0
Application_cbd_apm32f1/applications/main.c

@@ -27,6 +27,14 @@ int clock_information(void);
 
 int main(void)
 {
+    __HAL_RCC_PWR_CLK_ENABLE();
+    __HAL_RCC_BKP_CLK_ENABLE();
+    HAL_PWR_EnableBkUpAccess();
+    uint16_t boot_flag = *(__IO uint16_t *)(BKP_BASE + 4 * 2);  /* RTC_BKP_DR2, 16-bit */
+    //打印boot_flag的值
+    LOG_I("boot_flag:0x%04x\n",boot_flag);
+    /* 清除 bootloader 的启动标志,表示 app 启动成功 */
+    *(__IO uint16_t *)(0x40006C00 + 4 * 2) = 0x0000;
     CompileTime;      //读取固件的编译时间
     led_add_device(LED0_PIN);
     led_set_level(1,0);

+ 2 - 0
Application_cbd_apm32f1/readme.md

@@ -3,6 +3,8 @@
 	1、光栅不计数问题,被灰遮挡  出现频繁计数/不计数问题,现场清理即可;
 	2、取消高压计数上报;
 	3、#define ENV_AREA_SIZE             (EF_ERASE_MIN_SIZE * 256)
+	4、删除无用的easyflash字段
+	5、开机增加清除rtc bkp寄存器,bootloader中检测app是否正常拉起
 # 2026-07-06 更新说明
 	#版本:3.10.6
 	1、限制高压计数值,除以10

Fichier diff supprimé car celui-ci est trop grand
+ 815 - 73
CBD_FOTA_BootLoader/.config


Fichier diff supprimé car celui-ci est trop grand
+ 816 - 74
CBD_FOTA_BootLoader/.config.old


Fichier diff supprimé car celui-ci est trop grand
+ 239 - 239
CBD_FOTA_BootLoader/.cproject


BIN
CBD_FOTA_BootLoader/.settings/.rtmenus


+ 1 - 1
CBD_FOTA_BootLoader/.settings/projcfg.ini

@@ -1,5 +1,5 @@
 #RT-Thread Studio Project Configuration
-#Mon Apr 21 16:30:36 CST 2025
+#Wed Feb 12 12:00:09 CST 2025
 project_type=rtt
 chip_name=STM32F103RE
 cpu_name=None

+ 6 - 1
CBD_FOTA_BootLoader/Kconfig

@@ -15,6 +15,11 @@ config PKGS_DIR
     option env="PKGS_ROOT"
     default "packages"
 
+config PLATFORM_DIR
+    string
+    option env="PLATFORM_DIR"
+    default "D:/RT-ThreadStudio/workspace/IOT_CBD_BZY_CTRL/CBD_FOTA_BootLoader/platform"
+
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 source "$PKGS_DIR/packages/misc/samples/Kconfig"
@@ -24,4 +29,4 @@ config RT_STUDIO_BUILT_IN
     select ARCH_ARM_CORTEX_M3
     select RT_USING_COMPONENTS_INIT
     select RT_USING_USER_MAIN
-    default y
+    default y

+ 41 - 2
CBD_FOTA_BootLoader/applications/main.c

@@ -33,8 +33,8 @@
 #include "sys_config.h"
 #include <easyflash.h>
 
-#define BL_VERSION RT_FOTA_SW_VERSION
-#define COMPILE "20260713"
+#define BL_VERSION "1.1.4"
+#define COMPILE "20230901"
 
 #define RTU_DTU GET_PIN(B,13)
 #define Beep    GET_PIN(B, 4)
@@ -346,6 +346,43 @@ static void Hmi_thread_entry(void *parameter)
         //rt_kprintf("workSta.vbat.txt=%c%d.%02d%c\n",hmi_str,voltage/100,voltage%100,hmi_str);
     }
 }
+
+/* 获取STM32F401的复位原因 */
+static void print_reset_reason(void)
+{
+    uint32_t rst_status = RCC->CSR;
+    bool is_iwdg = false;
+
+    rt_kprintf("\n========== Reset Reason ==========\n");
+
+    if (rst_status & RCC_CSR_LPWRRSTF)
+        rt_kprintf("❌ Low Power reset\n");
+
+    if (rst_status & RCC_CSR_WWDGRSTF)
+        rt_kprintf("❌ Window Watchdog reset\n");
+
+    if (rst_status & RCC_CSR_IWDGRSTF)
+    {
+        rt_kprintf("❌ Independent Watchdog reset\n");
+        is_iwdg = true;
+    }
+
+    if (rst_status & RCC_CSR_SFTRSTF)
+        rt_kprintf("✅ Software reset\n");
+
+    if (rst_status & RCC_CSR_PORRSTF)
+        rt_kprintf("✅ Power-on reset\n");
+
+    if (rst_status & RCC_CSR_PINRSTF)
+        rt_kprintf("✅ NRST pin reset\n");
+
+    rt_kprintf("RCC_CSR: 0x%08X\n", rst_status);
+    rt_kprintf("==================================\n");
+
+    /* 清除复位标志(重要!)*/
+    RCC->CSR |= RCC_CSR_RMVF;
+}
+
 int main(void)
 {
 
@@ -353,7 +390,9 @@ int main(void)
     finsh_set_prompt("rt-fota />");
 #endif
     extern void rt_fota_init(void);
+    rt_fota_print_log();
     easyflash_init();
+    print_reset_reason();
     rt_fota_init();
     HMI_Thread();
     Beep_Tip(100);

Fichier diff supprimé car celui-ci est trop grand
+ 1196 - 928
CBD_FOTA_BootLoader/applications/rt_fota.c


+ 1 - 1
CBD_FOTA_BootLoader/applications/sys_config.h

@@ -5,7 +5,7 @@
 
 
 /* RT-FOTA module define */
-#define RT_FOTA_SW_VERSION      "1.2.5"
+#define RT_FOTA_SW_VERSION      "1.2.4"
 
 /* Enable Ymodem OTA */
 #define PKG_USING_YMODEM_OTA

+ 1 - 1
CBD_FOTA_BootLoader/drivers/board.h

@@ -36,7 +36,7 @@ extern "C"
 #define ROM_END                ((uint32_t)(ROM_START + ROM_SIZE * 1024))
 
 #define RAM_START              (0x20000000)
-#define RAM_SIZE               (64)
+#define RAM_SIZE               (128)
 #define RAM_END                (RAM_START + RAM_SIZE * 1024)
 
 /*-------------------------- ROM/RAM CONFIG END --------------------------*/

+ 1 - 4
CBD_FOTA_BootLoader/drivers/drv_flash_f1.c

@@ -20,7 +20,7 @@
 #include "fal.h"
 #endif
 
-#define DRV_DEBUG
+//#define DRV_DEBUG
 #define LOG_TAG                "drv.flash"
 #include <drv_log.h>
 
@@ -91,7 +91,6 @@ int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
         LOG_E("write outrange flash size! addr is (0x%p)", (void *)(addr + size));
         return -RT_EINVAL;
     }
-    //LOG_D("stm32_flash_write:(0x%p)",addr);
     //APM32此处关闭中断
     __disable_irq();
     HAL_FLASH_Unlock();
@@ -103,7 +102,6 @@ int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
             if (*(rt_uint32_t *)addr != *(rt_uint32_t *)buf)
             {
                 result = -RT_ERROR;
-                LOG_D("addr ERROR!");
                 break;
             }
             addr += 4;
@@ -111,7 +109,6 @@ int stm32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, size_t size)
         }
         else
         {
-            LOG_E("HAL_FLASH_Program ERROR at:(0x%p)!",addr);
             result = -RT_ERROR;
             break;
         }

+ 1 - 1
CBD_FOTA_BootLoader/drivers/fal_cfg.h

@@ -46,7 +46,7 @@ extern struct fal_flash_dev nor_flash0;
 {                                                                                    \
     {FAL_PART_MAGIC_WORD,        "bl",     "onchip_flash",                           0,                       200*1024,       0}, \
     {FAL_PART_MAGIC_WORD,        "app",     "onchip_flash",                          200*1024,                312*1024,       0}, \
-    {FAL_PART_MAGIC_WORD, "easyflash",     FAL_USING_NOR_FLASH_DEV_NAME,             0,                       3*1024*1024,   0}, \
+    {FAL_PART_MAGIC_WORD, "easyflash",     FAL_USING_NOR_FLASH_DEV_NAME,             0,                       1*1024*1024,   0}, \
     {FAL_PART_MAGIC_WORD,  "fm_area",     FAL_USING_NOR_FLASH_DEV_NAME,             3*1024*1024,             512*1024,      0}, \
     {FAL_PART_MAGIC_WORD,  "df_area",     FAL_USING_NOR_FLASH_DEV_NAME,             3*1024*1024 + 512*1024,  512*1024,      0}, \
 }

+ 1 - 1
CBD_FOTA_BootLoader/libraries/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h

@@ -140,7 +140,7 @@ typedef struct
   */
 #define FLASH_LATENCY_0            0x00000000U               /*!< FLASH Zero Latency cycle */
 #define FLASH_LATENCY_1            FLASH_ACR_LATENCY_0       /*!< FLASH One Latency cycle */
-#define FLASH_LATENCY_2            FLASH_ACR_LATENCY_2       /*!< FLASH Two Latency cycles */
+#define FLASH_LATENCY_2            FLASH_ACR_LATENCY_1       /*!< FLASH Two Latency cycles */
 
 /**
   * @}

+ 1 - 1
CBD_FOTA_BootLoader/packages/fal-v0.5.0/src/fal_partition.c

@@ -434,7 +434,7 @@ int fal_partition_write(const struct fal_partition *part, uint32_t addr, const u
     ret = flash_dev->ops.write(part->offset + addr, buf, size);
     if (ret < 0)
     {
-        log_e("Partition write error! Flash device(%s) write error:%d!", part->flash_name,ret);
+        log_e("Partition write error! Flash device(%s) write error!", part->flash_name);
     }
 
     return ret;

+ 1 - 1
CBD_FOTA_BootLoader/packages/ota_downloader-latest/src/ymodem_ota.c

@@ -112,7 +112,7 @@ void ymodem_ota(uint8_t argc, char **argv)
 
     rt_kprintf("Warning: Ymodem has started! This operator will not recovery.\n");
     rt_kprintf("Please select the ota firmware file and use Ymodem to send.\n");
-    //rt_console_set_device("uart2");
+    rt_console_set_device("uart2");
     if (!rym_recv_on_device(&rctx, rt_console_get_device(), RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX,
                             ymodem_on_begin, ymodem_on_data, NULL, RT_TICK_PER_SECOND))
     {

+ 7 - 10
CBD_FOTA_BootLoader/readme.md

@@ -1,13 +1,10 @@
-# 版本说明 20260713
-	#define BL_VERSION "1.2.5"
-	#define COMPILE "20260713"
-	1、调整easyflash env大小为4096*256
-	2、打印版本号;
-# 版本说明
-#define BL_VERSION "1.1.5"
-#define COMPILE "20250421"
-- 1. 修复app升级报错:
-	rt_fota.c  #define RT_FOTA_ALGO_BUFF_SIZE				4096 改为2048
+# 版本说明 20260714
+	#define BL_VERSION "1.2.4"
+	1、修复flash读取慢引发的升级搬运固件过程复位,复位原因是看门狗复位;
+	2、easyflash分区调整;
+	3、看门狗超时时间由10S改为25S;
+	4、已经找到问题原因了,帮我修复flash读取慢导致固件搬运过程 flash读写阻塞cpu导致 不能及时喂狗引起看门狗重启,搬运前把app分区固件先备份到df_area,如果往app分区搬运过程中异常中断会导致启动失败这时从df_area分区恢复
+	5、使用rtc的bkp寄存器存放app是否正常启动的标志位,启动app失败会触发固件恢复上一个版本;
 # 版本说明
 #define BL_VERSION "1.1.4"
 #define COMPILE "20230901"

BIN
CBD_FOTA_BootLoader/rt-thread/tools/building.pyc


BIN
CBD_FOTA_BootLoader/rt-thread/tools/eclipse.pyc


BIN
CBD_FOTA_BootLoader/rt-thread/tools/menuconfig.pyc


BIN
CBD_FOTA_BootLoader/rt-thread/tools/mkdist.pyc


BIN
CBD_FOTA_BootLoader/rt-thread/tools/utils.pyc


+ 161 - 10
CBD_FOTA_BootLoader/rtconfig.h

@@ -158,6 +158,18 @@
 /* Wiced WiFi */
 
 /* end of Wiced WiFi */
+
+/* CYW43012 WiFi */
+
+/* end of CYW43012 WiFi */
+
+/* BL808 WiFi */
+
+/* end of BL808 WiFi */
+
+/* CYW43439 WiFi */
+
+/* end of CYW43439 WiFi */
 /* end of Wi-Fi */
 
 /* IoT Cloud */
@@ -183,10 +195,24 @@
 
 /* language packages */
 
+/* JSON: JavaScript Object Notation, a lightweight data-interchange format */
+
+/* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
+
+/* XML: Extensible Markup Language */
+
+/* end of XML: Extensible Markup Language */
 /* end of language packages */
 
 /* multimedia packages */
 
+/* LVGL: powerful and easy-to-use embedded GUI library */
+
+/* end of LVGL: powerful and easy-to-use embedded GUI library */
+
+/* u8g2: a monochrome graphic library */
+
+/* end of u8g2: a monochrome graphic library */
 /* end of multimedia packages */
 
 /* tools packages */
@@ -203,6 +229,21 @@
 
 /* system packages */
 
+/* enhanced kernel services */
+
+/* end of enhanced kernel services */
+
+/* acceleration: Assembly language or algorithmic acceleration packages */
+
+/* end of acceleration: Assembly language or algorithmic acceleration packages */
+
+/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
+
+/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
+
+/* Micrium: Micrium software products porting for RT-Thread */
+
+/* end of Micrium: Micrium software products porting for RT-Thread */
 #define PKG_USING_FAL
 #define FAL_DEBUG_CONFIG
 #define FAL_DEBUG 1
@@ -221,16 +262,74 @@
 #define SYSWATCH_THREAD_STK_SIZE 512
 #define SYSWATCH_THREAD_NAME "syswatch"
 #define SYSWATCH_WDT_NAME "wdt"
-#define SYSWATCH_WDT_TIMEOUT 10
+#define SYSWATCH_WDT_TIMEOUT 25
 #define PKG_USING_SYSWATCH_LATEST_VERSION
-
-/* Micrium: Micrium software products porting for RT-Thread */
-
-/* end of Micrium: Micrium software products porting for RT-Thread */
 /* end of system packages */
 
 /* peripheral libraries and drivers */
 
+/* HAL & SDK Drivers */
+
+/* STM32 HAL & SDK Drivers */
+
+/* end of STM32 HAL & SDK Drivers */
+
+/* Infineon HAL Packages */
+
+/* end of Infineon HAL Packages */
+
+/* Kendryte SDK */
+
+/* end of Kendryte SDK */
+
+/* MM32 HAL & SDK Drivers */
+
+/* end of MM32 HAL & SDK Drivers */
+
+/* WCH HAL & SDK Drivers */
+
+/* end of WCH HAL & SDK Drivers */
+
+/* AT32 HAL & SDK Drivers */
+
+/* end of AT32 HAL & SDK Drivers */
+
+/* HC32 DDL Drivers */
+
+/* end of HC32 DDL Drivers */
+
+/* NXP HAL & SDK Drivers */
+
+/* end of NXP HAL & SDK Drivers */
+
+/* NUVOTON Drivers */
+
+/* end of NUVOTON Drivers */
+
+/* GD32 Drivers */
+
+/* end of GD32 Drivers */
+
+/* HPMicro SDK */
+
+/* end of HPMicro SDK */
+
+/* FT32 HAL & SDK Drivers */
+
+/* end of FT32 HAL & SDK Drivers */
+
+/* NOVOSNS Drivers */
+
+/* end of NOVOSNS Drivers */
+/* end of HAL & SDK Drivers */
+
+/* sensors drivers */
+
+/* end of sensors drivers */
+
+/* touch drivers */
+
+/* end of touch drivers */
 #define PKG_USING_SIGNAL_LED
 #define PKG_USING_SIGNAL_LED_LATEST_VERSION
 
@@ -243,13 +342,15 @@
 
 /* end of AI packages */
 
+/* Signal Processing and Control Algorithm Packages */
+
+/* end of Signal Processing and Control Algorithm Packages */
+
 /* miscellaneous packages */
 
-#define PKG_USING_FASTLZ
-#define PKG_USING_FASTLZ_V101
-#define PKG_USING_QUICKLZ
-#define QLZ_COMPRESSION_LEVEL 3
-#define PKG_USING_QUICKLZ_V101
+/* project laboratory */
+
+/* end of project laboratory */
 
 /* samples: kernel and components samples */
 
@@ -258,7 +359,57 @@
 /* entertainment: terminal games and other interesting software packages */
 
 /* end of entertainment: terminal games and other interesting software packages */
+#define PKG_USING_FASTLZ
+#define PKG_USING_FASTLZ_V101
+#define PKG_USING_QUICKLZ
+#define QLZ_COMPRESSION_LEVEL 3
+#define PKG_USING_QUICKLZ_V101
 /* end of miscellaneous packages */
+
+/* Arduino libraries */
+
+
+/* Projects and Demos */
+
+/* end of Projects and Demos */
+
+/* Sensors */
+
+/* end of Sensors */
+
+/* Display */
+
+/* end of Display */
+
+/* Timing */
+
+/* end of Timing */
+
+/* Data Processing */
+
+/* end of Data Processing */
+
+/* Data Storage */
+
+/* Communication */
+
+/* end of Communication */
+
+/* Device Control */
+
+/* end of Device Control */
+
+/* Other */
+
+/* end of Other */
+
+/* Signal IO */
+
+/* end of Signal IO */
+
+/* Uncategorized */
+
+/* end of Arduino libraries */
 /* end of RT-Thread online packages */
 
 /* samples: kernel and components samples */

BIN
CBD_FOTA_BootLoader/rtconfig.pyc