| | |
| | | * 1: abort by user |
| | | */ |
| | | uint16_t current_seqno,flash_seqno,i2; |
| | | uint8_t c,temp5,temp6,temp7,temp8; |
| | | uint8_t c,temp5,temp6,temp7,temp8,temp9,temp10,temp11,temp12; |
| | | static int32_t Receive_Packet (uint8_t *data, int32_t *length, uint32_t timeout) |
| | | { |
| | | uint16_t packet_size, computedcrc; |
| | |
| | | flash_erase(FLASH_ID0, APP_CONFIG_APPLICATION_ADDRESS, APP_CONFIG_APPLICATION_SIZE);//擦除APP |
| | | Send_Byte(ACK); |
| | | Send_Byte(CRC16); |
| | | temp10=1; |
| | | } |
| | | /* Filename packet is empty, end session */ |
| | | else |
| | |
| | | } |
| | | |
| | | Send_Byte(CRC16); //发送校验值 |
| | | temp9=1; |
| | | break; |
| | | } |
| | | |