Browse Source

Start Info 제외한 모든 printf 제거

PYJ 5 years ago
parent
commit
1d0e468899
4 changed files with 111 additions and 111 deletions
  1. 58 58
      Bluecell_Src/Bluecell_operate.c
  2. 2 2
      Bluecell_Src/CRC.c
  3. 11 11
      Bluecell_Src/MBIC_Bootloader.c
  4. 40 40
      Bluecell_Src/eeprom.c

+ 58 - 58
Bluecell_Src/Bluecell_operate.c

@@ -289,7 +289,7 @@ void Boot_LED_Toggle(void){
289 289
       }
290 290
   }else{
291 291
         if(LedTimerCnt > 500){
292
-            printf("LED TESTING....\r\n");
292
+//            printf("LED TESTING....\r\n");
293 293
             if(LED_TestCnt % 2){
294 294
                 HAL_GPIO_WritePin(BOOT_LED_GPIO_Port,BOOT_LED_Pin,GPIO_PIN_SET);
295 295
                 HAL_GPIO_WritePin(LED_FAIL_GPIO_Port,LED_FAIL_Pin,GPIO_PIN_RESET);
@@ -440,7 +440,7 @@ void Table_DataSetting(int8_t* pdata,int8_t RefData,double step,uint8_t size){
440 440
     }
441 441
 }
442 442
 void Table_Init(){
443
-    printf("Table Initialize\r\n");
443
+//    printf("Table Initialize\r\n");
444 444
     Table_DataSetting(&DL_DET_Table_ref[AGC_Table_DL1_Ref_Index][TABLE_MAX_VALUE],Det_DL1.Table_Ref,TableDataSetting_ATT_DL_LEVEL_STEP,Det_DL1.Table_Length);
445 445
     Table_DataSetting(&DL_DET_Table_ref[AGC_Table_DL2_Ref_Index][TABLE_MAX_VALUE],Det_DL2.Table_Ref,TableDataSetting_ATT_DL_LEVEL_STEP,Det_DL2.Table_Length);
446 446
     Table_DataSetting(&DL_DET_Table_ref[AGC_Table_DL3_Ref_Index][TABLE_MAX_VALUE],Det_DL3.Table_Ref,TableDataSetting_ATT_DL_LEVEL_STEP,Det_DL3.Table_Length);
@@ -896,7 +896,7 @@ void CompareAttenData(BLUESTATUS_st Curr,BLUESTATUS_st Prev){
896 896
                                 MBIC_Val,// Hidden Atten Low bit
897 897
                                MBIC_UserVal,
898 898
                                MBIC_ALC_Val);// User Atten Low Bit
899
-            printf("UL 2 LINE: %d val = %x \r\n",__LINE__,val);
899
+//            printf("UL 2 LINE: %d val = %x \r\n",__LINE__,val);
900 900
             PE43711_atten_ctrl(ALL_ATT.ATT_UL2,val);
901 901
     }
902 902
      
@@ -1177,7 +1177,7 @@ void Bluecell_TableLoad(uint8_t* data,uint8_t type){
1177 1177
             EEPROM_M24C08_Read(EEPROM_M24C08_ID ,(EEPROM_DET_UL4_TABLE_ADDRESDS),&Temp_DL1.Table_1_Temp,sizeof(TEMP_TABLE_st) );   
1178 1178
             Bluecell_DataCopy(&data[BLUECELL_DATA + 1],&Temp_DL1.Table_1_Temp,sizeof(TEMP_TABLE_st));
1179 1179
             data[BLUECELL_LENGTH_L] = (sizeof(TEMP_TABLE_st)) + 7 - 3;
1180
-            printf("Table_Length : %d , Table_Ref : %d ",Temp_DL1.Table_Length,Temp_DL1.Table_Ref);            
1180
+//            printf("Table_Length : %d , Table_Ref : %d ",Temp_DL1.Table_Length,Temp_DL1.Table_Ref);            
1181 1181
             break;
1182 1182
         case DLI_P2_ATT_Temp_guarantee_Table_Number:
1183 1183
             EEPROM_M24C08_Read(EEPROM_M24C08_ID ,(EEPROM_TEMP_DL1_TABLE_ADDRESDS),&Temp_DL2.Table_1_Temp,sizeof(TEMP_TABLE_st) );   
@@ -1201,7 +1201,7 @@ void Bluecell_TableLoad(uint8_t* data,uint8_t type){
1201 1201
             EEPROM_M24C08_Read(EEPROM_M24C08_ID ,(EEPROM_TEMP_DL4_TABLE_ADDRESDS),&Temp_UL1.Table_1_Temp,sizeof(TEMP_TABLE_st) );   
1202 1202
             Bluecell_DataCopy(&data[BLUECELL_DATA + 1],&Temp_UL1.Table_1_Temp,sizeof(TEMP_TABLE_st));
1203 1203
             data[BLUECELL_LENGTH_L] = (sizeof(TEMP_TABLE_st)) + 7 - 3;
1204
-            printf("Table_Length : %d , Table_Ref : %d ",Temp_UL1.Table_Length,Temp_UL1.Table_Ref);
1204
+//            printf("Table_Length : %d , Table_Ref : %d ",Temp_UL1.Table_Length,Temp_UL1.Table_Ref);
1205 1205
         
1206 1206
             break;
1207 1207
         case ULO_P2_ATT_Temp_guarantee_Table_Number:
@@ -1506,7 +1506,7 @@ void MBIC_TableLoad(uint8_t* data,uint8_t type){
1506 1506
             MBIC_TableDataCopy(&data[MBIC_PAYLOADSTART],&Det_UL2.Table_Det_15_dBm_H,sizeof(DET_TABLEUL_st));
1507 1507
             data[MBIC_PAYLOADSTART + MBIC_TableIndex_Ref] = Det_UL2.Table_Ref;
1508 1508
             data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] = Det_UL2.Table_Length;
1509
-            printf("Det_UL2.Table_Length : %d \r\n",Det_UL2.Table_Length);
1509
+//            printf("Det_UL2.Table_Length : %d \r\n",Det_UL2.Table_Length);
1510 1510
 
1511 1511
         
1512 1512
             break;
@@ -1768,7 +1768,7 @@ void MBIC_TableSave(uint8_t* data,uint8_t type){
1768 1768
             Bluecell_DataCopy(&Temp_UL3.Table_1_Temp,&data[MBIC_PAYLOADSTART + 5],sizeof(TEMP_TABLE_st) );
1769 1769
             Temp_UL3.Table_Ref = data[MBIC_PAYLOADSTART + MBIC_TableIndex_Ref];
1770 1770
             Temp_UL3.Table_Length= data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length];
1771
-            printf("Temp_UL3.Table_Length : %d \r\n",Temp_UL3.Table_Length);
1771
+//            printf("Temp_UL3.Table_Length : %d \r\n",Temp_UL3.Table_Length);
1772 1772
             EEPROM_M24C08_write(EEPROM_M24C08_ID ,(EEPROM_TEMP_UL2_TABLE_ADDRESDS),&Temp_UL3.Table_1_Temp,sizeof(TEMP_TABLE_st));                            
1773 1773
             MBIC_TableHeaderCopy(&data[MBIC_PAYLOADSTART + 5],sizeof(ATT_TABLE_st));   
1774 1774
 
@@ -1782,7 +1782,7 @@ void MBIC_TableSave(uint8_t* data,uint8_t type){
1782 1782
 
1783 1783
             break;
1784 1784
     }
1785
-    printf("\rSetting MBIC_TableIndex_Number : %x \r\n",data[MBIC_PAYLOADSTART + MBIC_TableIndex_Number]);
1785
+//    printf("\rSetting MBIC_TableIndex_Number : %x \r\n",data[MBIC_PAYLOADSTART + MBIC_TableIndex_Number]);
1786 1786
 }
1787 1787
 
1788 1788
 void Table_LengSet(){
@@ -2809,7 +2809,7 @@ bool Bluecell_Operate(uint8_t* data){
2809 2809
         if(bluecell_Currdatastatus.Temp_High_Threshold_Default == true){
2810 2810
             bluecell_Currdatastatus.Temp_High_Threshold_Default = MBIC_Temp_High_Threshold_Default;
2811 2811
         }
2812
-        printf("%s : %d \r\n",__func__,__LINE__);
2812
+//        printf("%s : %d \r\n",__func__,__LINE__);
2813 2813
         break;
2814 2814
     case Bluecell_ULO_Level_High_Threshold                :   
2815 2815
         bluecell_Currdatastatus.ULO_Level_High_Threshold_H = data[BLUECELL_DATA + i++];
@@ -4004,7 +4004,7 @@ uint32_t MBIC_DataSend(uint8_t* data){
4004 4004
 
4005 4005
 void Factory_Set(){
4006 4006
     int16_t tempdata = 0;
4007
-    printf("Factory Set Start \r\n");
4007
+//    printf("Factory Set Start \r\n");
4008 4008
     /*ALARM MASK*/
4009 4009
     bluecell_Currdatastatus.ALARM_MASK1 = ALAMASK_DEFAULT;
4010 4010
     bluecell_Currdatastatus.ALARM_MASK2 = ALAMASK_DEFAULT;    
@@ -4291,10 +4291,10 @@ void TimeSetting(uint8_t* data){
4291 4291
     if(bluecell_Currdatastatus.DLI_FRBT_Status == 0)
4292 4292
         return;
4293 4293
     
4294
-    printf("DLI_FRBT_Status : %d \r\n",bluecell_Currdatastatus.DLI_FRBT_Status);
4295
-    printf("DLI_AGC_ON_OFF : %d \r\n",bluecell_Currdatastatus.DLI_AGC_ON_OFF);    
4296
-    printf("DLI_FRBT_D_Day : %d \r\n",bluecell_Currdatastatus.DLI_FRBT_D_Day);    
4297
-    printf("Curr Day %d \r\n ",FRBT_Day_Inc);
4294
+//    printf("DLI_FRBT_Status : %d \r\n",bluecell_Currdatastatus.DLI_FRBT_Status);
4295
+//    printf("DLI_AGC_ON_OFF : %d \r\n",bluecell_Currdatastatus.DLI_AGC_ON_OFF);    
4296
+//    printf("DLI_FRBT_D_Day : %d \r\n",bluecell_Currdatastatus.DLI_FRBT_D_Day);    
4297
+//    printf("Curr Day %d \r\n ",FRBT_Day_Inc);
4298 4298
     if(bluecell_Currdatastatus.DLI_AGC_ON_OFF == true 
4299 4299
     && FRBT_Day_Inc < bluecell_Currdatastatus.DLI_FRBT_D_Day
4300 4300
     && bluecell_Currdatastatus.DLI_FRBT_Status != FRBT_RUNNING){
@@ -4302,37 +4302,37 @@ void TimeSetting(uint8_t* data){
4302 4302
             FRBT_Day[DLI_FRBT_Time_Year + i] = data[i]; /* Curr day */
4303 4303
         }
4304 4304
         
4305
-        printf("BLUECELL TIME APPLY : %d - %d - %d - %d - %d - %d \r\n",        
4306
-        FRBT_Day[DLI_FRBT_Time_Year],
4307
-        FRBT_Day[DLI_FRBT_Time_Month],
4308
-        FRBT_Day[DLI_FRBT_Time_Day],
4309
-        FRBT_Day[DLI_FRBT_Time_Hour],
4310
-        FRBT_Day[DLI_FRBT_Time_Minute],
4311
-        FRBT_Day[DLI_FRBT_Time_Second]);
4305
+//        printf("BLUECELL TIME APPLY : %d - %d - %d - %d - %d - %d \r\n",        
4306
+//        FRBT_Day[DLI_FRBT_Time_Year],
4307
+//        FRBT_Day[DLI_FRBT_Time_Month],
4308
+//        FRBT_Day[DLI_FRBT_Time_Day],
4309
+//        FRBT_Day[DLI_FRBT_Time_Hour],
4310
+//        FRBT_Day[DLI_FRBT_Time_Minute],
4311
+//        FRBT_Day[DLI_FRBT_Time_Second]);
4312 4312
         if(FRBT_Day[DLI_FRBT_Time_Day] != PrevFRBT_Day[DLI_FRBT_Time_Day]){
4313 4313
 //                printf("FRBT_Day[DLI_FRBT_Time_Day] : %d  PrevFRBT_Day[DLI_FRBT_D_Day] : %d \r\n",
4314 4314
 //              FRBT_Day[DLI_FRBT_Time_Day] ,
4315 4315
 //              PrevFRBT_Day[DLI_FRBT_Time_Day]);
4316 4316
             FRBT_Day_Inc++;
4317 4317
             bluecell_Currdatastatus.DLI_FRBT_Status = FRBT_TRACKING;
4318
-            printf("D day Plus : %d \r\n",FRBT_Day_Inc);
4318
+//            printf("D day Plus : %d \r\n",FRBT_Day_Inc);
4319 4319
         }
4320 4320
         
4321 4321
         for(int i = 0; i < DLI_FRBT_Time_Index_Max; i++){
4322 4322
             PrevFRBT_Day[DLI_FRBT_Time_Year + i] = FRBT_Day[DLI_FRBT_Time_Year + i]; /* Curr day */
4323 4323
         }   
4324
-            printf("BLUECELL TIME APPLY : %d - %d - %d - %d - %d - %d \r\n",
4325
-        PrevFRBT_Day[DLI_FRBT_Time_Year],
4326
-        PrevFRBT_Day[DLI_FRBT_Time_Month],
4327
-        PrevFRBT_Day[DLI_FRBT_Time_Day],
4328
-        PrevFRBT_Day[DLI_FRBT_Time_Hour],
4329
-        PrevFRBT_Day[DLI_FRBT_Time_Minute],
4330
-        PrevFRBT_Day[DLI_FRBT_Time_Second]);            
4331
-            printf("FRBT_Day[DLI_FRBT_Time_Day] : %d  PrevFRBT_Day[DLI_FRBT_D_Day] : %d \r\n",
4332
-        FRBT_Day[DLI_FRBT_Time_Day] ,
4333
-        PrevFRBT_Day[DLI_FRBT_Time_Day]);
4324
+//            printf("BLUECELL TIME APPLY : %d - %d - %d - %d - %d - %d \r\n",
4325
+//        PrevFRBT_Day[DLI_FRBT_Time_Year],
4326
+//        PrevFRBT_Day[DLI_FRBT_Time_Month],
4327
+//        PrevFRBT_Day[DLI_FRBT_Time_Day],
4328
+//        PrevFRBT_Day[DLI_FRBT_Time_Hour],
4329
+//        PrevFRBT_Day[DLI_FRBT_Time_Minute],
4330
+//        PrevFRBT_Day[DLI_FRBT_Time_Second]);            
4331
+//            printf("FRBT_Day[DLI_FRBT_Time_Day] : %d  PrevFRBT_Day[DLI_FRBT_D_Day] : %d \r\n",
4332
+//        FRBT_Day[DLI_FRBT_Time_Day] ,
4333
+//        PrevFRBT_Day[DLI_FRBT_Time_Day]);
4334 4334
     }
4335
-    printf("Time Set Complete\r\n");
4335
+//    printf("Time Set Complete\r\n");
4336 4336
 }
4337 4337
 void Carrier_ONOFF(uint8_t val){
4338 4338
     if(val == 1){
@@ -4605,7 +4605,7 @@ bool MBIC_Operate(uint8_t* data){
4605 4605
             case  CPU_Bank_Select_Reboot_by               :
4606 4606
                 bluecell_Currdatastatus.CPU_Bank_Select = data[MBIC_PAYLOADSTART + 3]; 
4607 4607
                 if(bluecell_Currdatastatus.CPU_Bank_Select == HFR_AUTO_SEL){
4608
-                    printf("Curr Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
4608
+//                    printf("Curr Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
4609 4609
                     if(bluecell_Currdatastatus.CPU_Current_Bank == HFR_BANK1_SEL){
4610 4610
                         bluecell_Currdatastatus.CPU_Bank_Select = HFR_BANK2_SEL;
4611 4611
                     }else{
@@ -4615,8 +4615,8 @@ bool MBIC_Operate(uint8_t* data){
4615 4615
                 Bluecell_StructCpy(&DataWrite[0],&bluecell_Currdatastatus.bluecell_header,sizeof(BLUESTATUS_st));
4616 4616
                 EEPROM_M24C08_write(EEPROM_M24C08_ID ,(EEPROM_WINDOW_STATUS_ADDRESDS),&DataWrite[0],sizeof(BLUESTATUS_st));
4617 4617
                 EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_WINDOW_STATUS_ADDRESDS,&bluecell_Currdatastatus.bluecell_header,sizeof(BLUESTATUS_st) );
4618
-                printf("bluecell_Currdatastatus.CPU_Bank_Select : %d \r\n",bluecell_Currdatastatus.CPU_Bank_Select);
4619
-                printf("I will Booting Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
4618
+//                printf("bluecell_Currdatastatus.CPU_Bank_Select : %d \r\n",bluecell_Currdatastatus.CPU_Bank_Select);
4619
+//                printf("I will Booting Bank : %d \r\n",bluecell_Currdatastatus.CPU_Current_Bank);
4620 4620
                 NVIC_SystemReset();
4621 4621
                 break;
4622 4622
             case  SW_Reset                                :
@@ -4632,7 +4632,7 @@ bool MBIC_Operate(uint8_t* data){
4632 4632
                 break;
4633 4633
             case  Temperature_Offset                      :
4634 4634
                 bluecell_Currdatastatus.bluecell_User_TEMP_OFFSET = data[MBIC_PAYLOADSTART + 3]; 
4635
-                printf("%s : %d \r\n",__func__,__LINE__);
4635
+//                printf("%s : %d \r\n",__func__,__LINE__);
4636 4636
                 break;
4637 4637
             case  Temp_High_Threshold                     :
4638 4638
                 bluecell_Currdatastatus.Temp_High_Threshold = data[MBIC_PAYLOADSTART + 3]; 
@@ -4725,8 +4725,8 @@ bool MBIC_Operate(uint8_t* data){
4725 4725
                 bluecell_Currdatastatus.ATT_DL1_L = data[MBIC_PAYLOADSTART + 4]; 
4726 4726
 
4727 4727
                 DL_PrevIwillgiveAtten[AGC_Alarm_DL1_Index] = 0;
4728
-                printf("bluecell_Currdatastatus.ATT_DL1_H : %x\r\n",bluecell_Currdatastatus.ATT_DL1_H);
4729
-                printf("bluecell_Currdatastatus.ATT_DL1_L : %x\r\n",bluecell_Currdatastatus.ATT_DL1_L);              
4728
+//                printf("bluecell_Currdatastatus.ATT_DL1_H : %x\r\n",bluecell_Currdatastatus.ATT_DL1_H);
4729
+//                printf("bluecell_Currdatastatus.ATT_DL1_L : %x\r\n",bluecell_Currdatastatus.ATT_DL1_L);              
4730 4730
                 CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus);
4731 4731
                 break;
4732 4732
             case  DLI_Gain_Atten2                         :
@@ -4734,8 +4734,8 @@ bool MBIC_Operate(uint8_t* data){
4734 4734
                 bluecell_Currdatastatus.ATT_DL2_L = data[MBIC_PAYLOADSTART + 4]; 
4735 4735
                 DL_PrevIwillgiveAtten[AGC_Alarm_DL2_Index] = 0;
4736 4736
                 CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus);
4737
-                printf("bluecell_Currdatastatus.ATT_DL2_H : %x\r\n",bluecell_Currdatastatus.ATT_DL2_H);
4738
-                printf("bluecell_Currdatastatus.ATT_DL2_L : %x\r\n",bluecell_Currdatastatus.ATT_DL2_L); 
4737
+//                printf("bluecell_Currdatastatus.ATT_DL2_H : %x\r\n",bluecell_Currdatastatus.ATT_DL2_H);
4738
+//                printf("bluecell_Currdatastatus.ATT_DL2_L : %x\r\n",bluecell_Currdatastatus.ATT_DL2_L); 
4739 4739
 
4740 4740
                 break;
4741 4741
             case  DLI_Gain_Atten3                         :
@@ -4828,14 +4828,14 @@ bool MBIC_Operate(uint8_t* data){
4828 4828
                         StartTimeFRBT_Day[DLI_FRBT_Time_Year + i] = data[MBIC_TIME_0 + i]; /* Curr day */
4829 4829
                     }
4830 4830
                     FRBT_Day_Inc = 1;
4831
-                    printf("FRBT Tracking START \r\n");
4832
-                    printf("FRBT Start Time Save : %d Y %d M %d D %d H %d M %d S\r\n",
4833
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Year],
4834
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Month],
4835
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Day],
4836
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Hour],
4837
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Minute],
4838
-                    StartTimeFRBT_Day[DLI_FRBT_Time_Second]);
4831
+//                    printf("FRBT Tracking START \r\n");
4832
+//                    printf("FRBT Start Time Save : %d Y %d M %d D %d H %d M %d S\r\n",
4833
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Year],
4834
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Month],
4835
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Day],
4836
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Hour],
4837
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Minute],
4838
+//                    StartTimeFRBT_Day[DLI_FRBT_Time_Second]);
4839 4839
                 }
4840 4840
                 DL_AGC_StartAtten[AGC_Alarm_DL1_Index] 
4841 4841
                     = bluecell_Currdatastatus.ATT_DL1_H << 8 | bluecell_Currdatastatus.ATT_DL1_L;
@@ -5089,7 +5089,7 @@ bool MBIC_Operate(uint8_t* data){
5089 5089
 			    tempdata = ULO_ALC_THREADHOLD_DEFAULT;
5090 5090
 			    bluecell_Currdatastatus.ULO_ALC_Threshold_H = ((tempdata & 0xFF00) >> 8);    
5091 5091
 			    bluecell_Currdatastatus.ULO_ALC_Threshold_L = ((tempdata & 0x00FF));  	
5092
-                printf("ALC DEFAULT VALUE SETTING COMPLETE \r\n");
5092
+//                printf("ALC DEFAULT VALUE SETTING COMPLETE \r\n");
5093 5093
                 break;
5094 5094
             case  ULO_Shutdown_ON_OFF                     :
5095 5095
                 bluecell_Currdatastatus.ULO_Shutdown_ON_OFF = data[MBIC_PAYLOADSTART + 3]; 
@@ -5166,7 +5166,7 @@ bool MBIC_Operate(uint8_t* data){
5166 5166
                     MBIC_HeaderMergeFunction(data,data[MBIC_PAYLOADSTART + 4] + 5);
5167 5167
                     data[MBIC_HEADERCHECKSUM_0] = Chksum_Create(data);        
5168 5168
                     uint16_t crcret = ((CRC16_Generate(&data[MBIC_PAYLOADSTART], (data[MBIC_PAYLOADSTART + 4] ) + 5) ) );
5169
-                        printf("\r\n crc ret : %x \r\n",crcret);
5169
+//                        printf("\r\n crc ret : %x \r\n",crcret);
5170 5170
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] ) + 5] =(( crcret  & 0xFF00)>> 8);  
5171 5171
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] ) + 6] = (( crcret  & 0x00FF));  
5172 5172
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] ) + 7] = 0x03; 
@@ -5177,11 +5177,11 @@ bool MBIC_Operate(uint8_t* data){
5177 5177
                     MBIC_HeaderMergeFunction(data,(data[MBIC_PAYLOADSTART + 4] * 2) + 5);
5178 5178
                     data[MBIC_HEADERCHECKSUM_0] = Chksum_Create(data);        
5179 5179
                     uint16_t crcret = ((CRC16_Generate(&data[MBIC_PAYLOADSTART], (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] * 2) + 5) ) );
5180
-                        printf("\r\n crc ret : %x \r\n",crcret);
5180
+//                        printf("\r\n crc ret : %x \r\n",crcret);
5181 5181
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] * 2) + 5] =(( crcret  & 0xFF00)>> 8);  
5182 5182
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] * 2) + 6] = (( crcret  & 0x00FF));  
5183 5183
                     data[MBIC_PAYLOADSTART + (data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] * 2) + 7] = 0x03;
5184
-                    printf("==data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] : %d \r\n",data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length]);
5184
+//                    printf("==data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] : %d \r\n",data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length]);
5185 5185
                     Uart1_Data_Send(data, ((data[MBIC_PAYLOADSTART + MBIC_TableIndex_Length] + 1) * 2)    + 5 + 22 + 3);
5186 5186
                 }
5187 5187
                 
@@ -5224,7 +5224,7 @@ bool MBIC_Operate(uint8_t* data){
5224 5224
                     data[MBIC_HEADERCHECKSUM_0] = Chksum_Create(data);
5225 5225
 //                    Uart1_Data_Send(data, (data[MBIC_PAYLOADSTART + 4]) + 5 + 22 + 3);
5226 5226
                     uint16_t crcret = (CRC16_Generate(&data[MBIC_PAYLOADSTART], 1 ) );
5227
-                        printf("\r\n crc ret : %x \r\n",crcret);
5227
+//                        printf("\r\n crc ret : %x \r\n",crcret);
5228 5228
                     data[MBIC_PAYLOADSTART + 1] =(( crcret  & 0xFF00)>> 8);  
5229 5229
                     data[MBIC_PAYLOADSTART + 2] = (( crcret  & 0x00FF));  
5230 5230
                     data[MBIC_PAYLOADSTART + 3] = 0x03; 
@@ -5236,7 +5236,7 @@ bool MBIC_Operate(uint8_t* data){
5236 5236
                     MBIC_HeaderMergeFunction(data,1);
5237 5237
                     data[MBIC_HEADERCHECKSUM_0] = Chksum_Create(data);
5238 5238
                     uint16_t crcret = (CRC16_Generate(&data[MBIC_PAYLOADSTART], 1) ) ;
5239
-                    printf("\r\n crc ret : %x \r\n",crcret);
5239
+//                    printf("\r\n crc ret : %x \r\n",crcret);
5240 5240
                     data[MBIC_PAYLOADSTART + 1] =(( crcret  & 0xFF00)>> 8);  
5241 5241
                     data[MBIC_PAYLOADSTART + 2] = (( crcret  & 0x00FF));  
5242 5242
                     data[MBIC_PAYLOADSTART + 3] = 0x03; 
@@ -5250,7 +5250,7 @@ bool MBIC_Operate(uint8_t* data){
5250 5250
         MBIC_Bootloader_FirmwareUpdate(data);
5251 5251
         
5252 5252
         /*NOP*/
5253
-        printf("DATA Updating\r\n");
5253
+//        printf("DATA Updating\r\n");
5254 5254
     }
5255 5255
 //    Uart1_Data_Send(&data[0], data[BLUECELL_LENGTH] + 3);
5256 5256
 	return true;
@@ -7398,7 +7398,7 @@ void FRBT_Tracking_Package(uint8_t Index, uint8_t* FRBT,uint8_t* DL_MainAtten,ui
7398 7398
         return;
7399 7399
     }
7400 7400
     
7401
-    printf("FRBT_Atten : %d DL_Atten :  %d \r\n",FRBT_Atten,DL_Atten);
7401
+//    printf("FRBT_Atten : %d DL_Atten :  %d \r\n",FRBT_Atten,DL_Atten);
7402 7402
     
7403 7403
     FRBT[FRBT_H] = DL_MainAtten[FRBT_H];
7404 7404
     FRBT[FRBT_L] = DL_MainAtten[FRBT_L];        
@@ -7534,7 +7534,7 @@ void FRBT_Operate(){
7534 7534
     && bluecell_Currdatastatus.DLI_FRBT_Status == FRBT_TRACKING)
7535 7535
     {
7536 7536
         bluecell_Currdatastatus.DLI_FRBT_Status = FRBT_RUNNING;
7537
-        printf("FRBT Running Start \r\n");
7537
+//        printf("FRBT Running Start \r\n");
7538 7538
     }
7539 7539
     
7540 7540
     if(bluecell_Currdatastatus.DLI_FRBT_Status == FRBT_TRACKING){

+ 2 - 2
Bluecell_Src/CRC.c

@@ -206,7 +206,7 @@ etError CRC16_Check(uint8_t* buf_ptr, int len,uint16_t checksum)
206 206
     etError ret = CHECKSUM_ERROR;
207 207
     for (uint32_t counter = 0; counter < len; counter++)
208 208
         crc = (uint16_t)((crc << 8) ^ crc16_tab[(uint32_t)(((crc >> 8) ^ buf_ptr[counter]) & 0x00FF)]);
209
-    printf("REAL CRC %x / IN CRC : %x \r\n",crc,checksum);
209
+//    printf("REAL CRC %x / IN CRC : %x \r\n",crc,checksum);
210 210
     if(crc == checksum)
211 211
         ret = NO_ERROR;
212 212
         
@@ -223,7 +223,7 @@ uint16_t CRC16_Generate(uint8_t* buf_ptr, int len)
223 223
 //      printf("%d CRC : %x  buf_ptr : %x Counter %d\r\n",a,crc,buf_ptr[counter],counter);
224 224
       a++;
225 225
     }
226
-    printf("len : %d \r\n",len);
226
+//    printf("len : %d \r\n",len);
227 227
     return crc;
228 228
 }   
229 229
 

+ 11 - 11
Bluecell_Src/MBIC_Bootloader.c

@@ -341,8 +341,8 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
341 341
 //                  Crcret = CRC16_Generate(&Bank1data[MBIC_BOOT_MARK], TotalFrame);
342 342
 //              else
343 343
 //                Crcret = CRC16_Generate(&Bank2data[MBIC_BOOT_MARK], TotalFrame);
344
-                printf("CurrFrame : %d ,FirmFile_Length : %d \r\n",CurrFrame,TotalFrame - 1);
345
-                printf("FILE CRC RET : %x \r\n",Crcret);              
344
+//                printf("CurrFrame : %d ,FirmFile_Length : %d \r\n",CurrFrame,TotalFrame - 1);
345
+//                printf("FILE CRC RET : %x \r\n",Crcret);              
346 346
 
347 347
 //            HAL_Delay(100);
348 348
             Prev_Download_DataIndex  = Curr_Download_DataIndex + 1;
@@ -351,7 +351,7 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
351 351
             break;
352 352
         case MBIC_Download_Confirm_REQ:
353 353
             
354
-            printf("MBIC_Download_Confirm_REQ \r\n");
354
+//            printf("MBIC_Download_Confirm_REQ \r\n");
355 355
             cmd = MBIC_Download_Confirm_RSP;
356 356
             /*TOTAL FRAME NUMBER*/
357 357
              
@@ -361,7 +361,7 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
361 361
                                 | Bank1data[MBIC_BOOT_LENGTH + 2] << 8
362 362
                                 | Bank1data[MBIC_BOOT_LENGTH + 3];
363 363
                 Crcret = CRC16_Generate(&Bank1data[MBIC_BOOT_MARK], FirmFile_Length + 128);
364
-                printf("Bank 1 CRC Calc\r\n");                
364
+//                printf("Bank 1 CRC Calc\r\n");                
365 365
             }
366 366
             else {
367 367
                  FirmFile_Length = (Bank2data[MBIC_BOOT_LENGTH + 0] << 24)
@@ -369,12 +369,12 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
369 369
                                 | Bank2data[MBIC_BOOT_LENGTH + 2] << 8
370 370
                                 | Bank2data[MBIC_BOOT_LENGTH + 3];   
371 371
                 Crcret = CRC16_Generate(&Bank2data[MBIC_BOOT_MARK], FirmFile_Length + 128);
372
-                printf("Bank 2 CRC Calc\r\n");
372
+//                printf("Bank 2 CRC Calc\r\n");
373 373
             }
374 374
             RecvCrc = data[MBIC_PAYLOADSTART + 4] << 8 | data[MBIC_PAYLOADSTART + 5];
375 375
             
376
-            printf("FirmFile_Length : %d Byte \r\n",((FirmFile_Length  * 1024) + 128));
377
-            printf("FILE CRC RET : %x  : Recv CRC : %x \r\n",Crcret,RecvCrc);
376
+//            printf("FirmFile_Length : %d Byte \r\n",((FirmFile_Length  * 1024) + 128));
377
+//            printf("FILE CRC RET : %x  : Recv CRC : %x \r\n",Crcret,RecvCrc);
378 378
             if(RecvCrc != Crcret){
379 379
                 CRCERR = true; // CRC ERR Occur 
380 380
             }
@@ -446,7 +446,7 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
446 446
         
447 447
         break;
448 448
         case MBIC_Complete_Notice_REQ_REQ:
449
-            printf("MBIC_Complete_Notice_REQ_REQ \r\n");
449
+//            printf("MBIC_Complete_Notice_REQ_REQ \r\n");
450 450
             cmd = MBIC_Complete_Notice_RSP;
451 451
             if(CRCERR == false){
452 452
                 data[MBIC_PAYLOADSTART + index++] = 1;  
@@ -480,9 +480,9 @@ void MBIC_Bootloader_FirmwareUpdate(uint8_t* data){
480 480
 //
481 481
 //              printf("Bank1data[MBIC_BOOT_VERSION] : %d \r\n",Bank2data[MBIC_BOOT_VERSION]);
482 482
 //          }   
483
-            printf("Curr Version : %02x.%02x.%02x \r\n",bluecell_Currdatastatus.CPUVERSION1,bluecell_Currdatastatus.CPUVERSION2,bluecell_Currdatastatus.CPUVERSION3);
484
-            printf("Bank1data Version : %02x.%02x.%02x \r\n", Bank1data[MBIC_BOOT_VERSION + 0], Bank1data[MBIC_BOOT_VERSION + 1], Bank1data[MBIC_BOOT_VERSION + 2]);
485
-            printf("Bank2data Version : %02x.%02x.%02x \r\n", Bank2data[MBIC_BOOT_VERSION + 0], Bank2data[MBIC_BOOT_VERSION + 1], Bank2data[MBIC_BOOT_VERSION + 2]);
483
+//            printf("Curr Version : %02x.%02x.%02x \r\n",bluecell_Currdatastatus.CPUVERSION1,bluecell_Currdatastatus.CPUVERSION2,bluecell_Currdatastatus.CPUVERSION3);
484
+//            printf("Bank1data Version : %02x.%02x.%02x \r\n", Bank1data[MBIC_BOOT_VERSION + 0], Bank1data[MBIC_BOOT_VERSION + 1], Bank1data[MBIC_BOOT_VERSION + 2]);
485
+//            printf("Bank2data Version : %02x.%02x.%02x \r\n", Bank2data[MBIC_BOOT_VERSION + 0], Bank2data[MBIC_BOOT_VERSION + 1], Bank2data[MBIC_BOOT_VERSION + 2]);
486 486
             break;
487 487
 #if 0 // PYJ.2020.06.30_BEGIN -- 
488 488
         case MBIC_Reboot_Notice_REQ:

+ 40 - 40
Bluecell_Src/eeprom.c

@@ -126,24 +126,24 @@ void EEPROM_M24C08_Init(void){
126 126
 //    printf("ATT_UL1_H  %x / ATT_UL1_L: %x \r\n",bluecell_Currdatastatus.ATT_UL1_H,bluecell_Currdatastatus.ATT_UL1_L);    
127 127
 //    printf("bluecell_User_UL1_H  %x / bluecell_User_UL1_L: %x \r\n",bluecell_Currdatastatus.bluecell_User_UL1_H,bluecell_Currdatastatus.bluecell_User_UL1_L);
128 128
 
129
-    printf("===========================================================================\r\n");
130
-    printf("ATT TableDL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL1.Table_Length,Att_DL1.Table_Ref);
131
-    printf("ATT TableDL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL2.Table_Length,Att_DL2.Table_Ref);
132
-    printf("ATT TableDL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL3.Table_Length,Att_DL3.Table_Ref);    
133
-    printf("ATT TableDL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL4.Table_Length,Att_DL4.Table_Ref);
134
-    printf("ATT TableUL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL1.Table_Length,Att_UL1.Table_Ref);
135
-    printf("ATT TableUL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL2.Table_Length,Att_UL2.Table_Ref);
136
-    printf("ATT TableUL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL3.Table_Length,Att_UL3.Table_Ref);    
137
-    printf("ATT TableUL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL4.Table_Length,Att_UL4.Table_Ref);    
138
-
139
-    printf("DET TableDL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL1.Table_Length,Det_DL1.Table_Ref);
140
-    printf("DET TableDL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL2.Table_Length,Det_DL2.Table_Ref);
141
-    printf("DET TableDL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL3.Table_Length,Det_DL3.Table_Ref);    
142
-    printf("DET TableDL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL4.Table_Length,Det_DL4.Table_Ref);
143
-    printf("DET TableUL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL1.Table_Length,Det_UL1.Table_Ref);
144
-    printf("DET TableUL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL2.Table_Length,Det_UL2.Table_Ref);
145
-    printf("DET TableUL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL3.Table_Length,Det_UL3.Table_Ref);    
146
-    printf("DET TableUL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL4.Table_Length,Det_UL4.Table_Ref);    
129
+//    printf("===========================================================================\r\n");
130
+//    printf("ATT TableDL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL1.Table_Length,Att_DL1.Table_Ref);
131
+//    printf("ATT TableDL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL2.Table_Length,Att_DL2.Table_Ref);
132
+//    printf("ATT TableDL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL3.Table_Length,Att_DL3.Table_Ref);    
133
+//    printf("ATT TableDL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_DL4.Table_Length,Att_DL4.Table_Ref);
134
+//    printf("ATT TableUL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL1.Table_Length,Att_UL1.Table_Ref);
135
+//    printf("ATT TableUL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL2.Table_Length,Att_UL2.Table_Ref);
136
+//    printf("ATT TableUL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL3.Table_Length,Att_UL3.Table_Ref);    
137
+//    printf("ATT TableUL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Att_UL4.Table_Length,Att_UL4.Table_Ref);    
138
+//
139
+//    printf("DET TableDL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL1.Table_Length,Det_DL1.Table_Ref);
140
+//    printf("DET TableDL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL2.Table_Length,Det_DL2.Table_Ref);
141
+//    printf("DET TableDL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL3.Table_Length,Det_DL3.Table_Ref);    
142
+//    printf("DET TableDL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_DL4.Table_Length,Det_DL4.Table_Ref);
143
+//    printf("DET TableUL 1_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL1.Table_Length,Det_UL1.Table_Ref);
144
+//    printf("DET TableUL 2_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL2.Table_Length,Det_UL2.Table_Ref);
145
+//    printf("DET TableUL 3_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL3.Table_Length,Det_UL3.Table_Ref);    
146
+//    printf("DET TableUL 4_Init START ORIGIN TABLE LENGTH  %d / Ref : %d \r\n",Det_UL4.Table_Length,Det_UL4.Table_Ref);    
147 147
 //    printf("DL1\r\n");    Table_DET_DataSetting(&DL_Table_ref[AGC_Table_DL1_Ref_Index][DLUL_TABLE_MAX_VALUE],Det_DL1.Table_Ref ,TableDataSetting_ATT_DET_STEP,Det_DL1.Table_Length);
148 148
 //    printf("DL2\r\n");    Table_DET_DataSetting(&DL_Table_ref[AGC_Table_DL2_Ref_Index][DLUL_TABLE_MAX_VALUE],Det_DL2.Table_Ref ,TableDataSetting_ATT_DET_STEP,Det_DL2.Table_Length);
149 149
 //    printf("DL3\r\n");    Table_DET_DataSetting(&DL_Table_ref[AGC_Table_DL3_Ref_Index][DLUL_TABLE_MAX_VALUE],Det_DL3.Table_Ref ,TableDataSetting_ATT_DET_STEP,Det_DL3.Table_Length);
@@ -234,17 +234,17 @@ void EEPROM_M24C08_Init(void){
234 234
     bluecell_Currdatastatus.Type = 0;
235 235
 
236 236
 
237
-    printf("PCB Version : %d.%d \r\n",bluecell_Currdatastatus.PCB_Version[0],bluecell_Currdatastatus.PCB_Version[1]);
238
-    printf("Serial Number : ");
239
-    for(int a = 0; a < 20; a++){
240
-        printf("%c",bluecell_Currdatastatus.Serial_Number[a]);
241
-    }
242
-    printf("\r\n");
243
-    printf("Manufacture_Date : ");
244
-    for(int a = 0; a < 3; a++){
245
-        printf("%c",bluecell_Currdatastatus.Manufacture_Date[a]);
246
-    }
247
-    printf("\r\n");
237
+//    printf("PCB Version : %d.%d \r\n",bluecell_Currdatastatus.PCB_Version[0],bluecell_Currdatastatus.PCB_Version[1]);
238
+//    printf("Serial Number : ");
239
+//    for(int a = 0; a < 20; a++){
240
+//        printf("%c",bluecell_Currdatastatus.Serial_Number[a]);
241
+//    }
242
+//    printf("\r\n");
243
+//    printf("Manufacture_Date : ");
244
+//    for(int a = 0; a < 3; a++){
245
+//        printf("%c",bluecell_Currdatastatus.Manufacture_Date[a]);
246
+//    }
247
+//    printf("\r\n");
248 248
     
249 249
 
250 250
 //    bluecell_Currdatastatus.CPUVERSION1 =  0;
@@ -322,7 +322,7 @@ void EEPROM_M24C08_Init(void){
322 322
 //    printf("bluecell_Currdatastatus.ATT_DL1_H : %x\r\n",bluecell_Currdatastatus.ATT_DL1_H);
323 323
 //    printf("bluecell_Currdatastatus.ATT_DL1_L : %x\r\n",bluecell_Currdatastatus.ATT_DL1_L);        
324 324
 //    
325
-    printf("EEPROM INIT COMPLETE\r\n");
325
+//    printf("EEPROM INIT COMPLETE\r\n");
326 326
 
327 327
 }
328 328
 
@@ -376,8 +376,8 @@ HAL_StatusTypeDef EEPROM_M24C08_Read(uint8_t devid,uint16_t Address,uint8_t* dat
376 376
    ret = HAL_I2C_Mem_Read(&hi2c2, devid ,((Address )),  I2C_MEMADD_SIZE_16BIT, &data[0], size, 0xFFFF);
377 377
 //      EEPROM24XX_Load( Address,data, size);
378 378
 
379
-      if(ret == HAL_ERROR)
380
-            printf("Write ERR\r\n");
379
+//      if(ret == HAL_ERROR)
380
+//            printf("Write ERR\r\n");
381 381
 #else
382 382
     if(sizecnt > 0){
383 383
         for(int i = 0 ; i < sizecnt; i++ ){
@@ -429,8 +429,8 @@ HAL_StatusTypeDef EEPROM_M24C08_write(uint8_t devid,uint16_t Address,uint8_t* da
429 429
              addrees_inc = i * MAXEEPROM_LENG;
430 430
              ret = HAL_I2C_Mem_Write(&hi2c2, devid  ,((Address + addrees_inc) & 0xFFFF) ,  I2C_MEMADD_SIZE_16BIT, &data[addrees_inc], MAXEEPROM_LENG, 1024);
431 431
 
432
-             if(ret == HAL_ERROR)
433
-                 printf("Write ERR\r\n");
432
+//             if(ret == HAL_ERROR)
433
+//                 printf("Write ERR\r\n");
434 434
              
435 435
              HAL_Delay(20);
436 436
         }
@@ -444,8 +444,8 @@ HAL_StatusTypeDef EEPROM_M24C08_write(uint8_t devid,uint16_t Address,uint8_t* da
444 444
         for(int i = 0; i < sizeremain; i++){
445 445
             ret = HAL_I2C_Mem_Write(&hi2c2, devid  ,((Address + addrees_inc + i)& 0xFFFF) ,  I2C_MEMADD_SIZE_16BIT, &data[addrees_inc + i], 1, 0xFFFF);
446 446
          //       EEPROM24XX_Save( Address,data, size);
447
-         if(ret == HAL_ERROR)
448
-             printf("Write ERR\r\n");
447
+//         if(ret == HAL_ERROR)
448
+//             printf("Write ERR\r\n");
449 449
          
450 450
           HAL_Delay(20);
451 451
         }
@@ -462,14 +462,14 @@ HAL_StatusTypeDef EEPROM_M24C08_Zerowrite(uint8_t devid,uint16_t Address){
462 462
     uint16_t addrees_inc = 0;
463 463
     addrees_inc = 0;
464 464
     uint8_t data[4096] = {0,};
465
-    printf("EEPROM ALL ERASE \r\n");
465
+//    printf("EEPROM ALL ERASE \r\n");
466 466
 
467 467
     for(int i = 0 ; i < 128; i++ ){
468 468
          addrees_inc = i * MAXEEPROM_LENG;
469 469
          ret = HAL_I2C_Mem_Write(&hi2c2, devid  ,((Address + addrees_inc) & 0xFFFF) ,  I2C_MEMADD_SIZE_16BIT, &data[0], MAXEEPROM_LENG, 0xFFFF);
470
-         if(ret == HAL_ERROR)
471
-             printf("Write ERR\r\n");
472
-         else
470
+//         if(ret == HAL_ERROR)
471
+//             printf("Write ERR\r\n");
472
+//         else
473 473
              HAL_Delay(20);
474 474
     }
475 475