Browse Source

版本号1.2.1.22,4830软件,Fota更新测试

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
4584397b3e
2 changed files with 13 additions and 3 deletions
  1. 3 3
      inc/app.h
  2. 10 0
      src/Fota.c

+ 3 - 3
inc/app.h

@@ -15,8 +15,8 @@ extern "C" {
 //全局定义声明区
 #define BMS_MANUFACTURE (1) //BMS制造商表示1-超力源,2-美顺
 #define DATA_MODULE_TYPE (1) //1表示NB模块,2表示4G cat1
-//#define BAT4830
-#define BAT6060  电池型号变化需要更改
+#define BAT4830
+//#define BAT6060  //电池型号变化需要更改
 #ifdef  BAT4830
     #define BATT_CELL_VOL_NUM  (14)
     #define BATT_TEMP_NUM  (3)
@@ -34,7 +34,7 @@ extern "C" {
 #define HWVERSION		    0x0102    //硬件主版本,现为V1.2板
 #define	BLSWVERSION		0x01020000    //BootLoader版本号V1.2.0.0
 #define	DRVSWVERSION		0x01040000     //驱动层版本号V1.4.0.0
-#define	APPSWVERSION		0x01020115     
+#define	APPSWVERSION		0x01020116     
 
 //--------------------------------------------------------------------------------
 

+ 10 - 0
src/Fota.c

@@ -110,6 +110,16 @@ void Fota_Func(UINT8 *DataPtr,INT32 connectId)
                 if(Fota_S.Fota_All_Data_Len==Fota_S.Fota_Current_Addres)
                 {
                     NB_Fota_update_flag = TRUE;
+                    #ifdef USING_PRINTF
+                        printf("\n\n\n");
+                        UINT8 temp[1];
+                        for(int i=0;i<Fota_S.Fota_All_Data_Len;i++)
+                        {
+                            BSP_QSPI_Read_Safe(temp,FLASH_FOTA_REGION_START+i,1);
+                            printf("%x  ",temp[0]);
+                        }    
+                        printf("\nend data \n\n\n");
+                    #endif
                 }
                 else
                 {