forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

wujiazhi
2024-06-13 72def895431ad7a08e635b11f3da738e2b2c4618
Function/BOOTLOADER_IAP/bootloader_iap.c
@@ -1,9 +1,9 @@
#include "bootloader_iap.h"
#include "flash.h"
#include "sundry.h"
#include "off_chip_flash.h"
#include "delay.h"
#include "mbcrc1.h"
#include "mbcrc.h"
BOOTLOAD_PARA_STRUCT __attribute__ ((aligned (4))) bootload_para_g = {0};
@@ -51,7 +51,7 @@
   ErrorStatus_STM32 result = SUCCESS_0; 
   uint16_t crc_16 = 0;
   uint32_t crc_crc = 0,offset = 0;
   if(data_len != (BOOTLOAT_PARA_SIZE - sizeof(bootload_para_g.boot_update_flag)))
   if(data_len != (BOOTLOAT_PARA_SIZE - SIZEOF_OF(BOOTLOAD_PARA_STRUCT,boot_update_flag)))
      return (ErrorStatus_STM32)1;
   memcpy(&bootload_para_g,pInputData,data_len);
   /*ÑéÖ¤CFGµÄÕýÈ·ÐÔ*/