| | |
| | | #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}; |
| | | |
| | |
| | | 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µÄÕýÈ·ÐÔ*/ |