chen
2025-01-16 8083c5d5fe7222d7e094e632d6ef8ab1730df821
keil/ymodem.c
@@ -253,7 +253,7 @@
  *         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;
@@ -416,6 +416,7 @@
                              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
@@ -484,6 +485,7 @@
          }
            
          Send_Byte(CRC16); //发送校验值
               temp9=1;
          break;
      }