源码/核心板/Src/application/serial_at_cmd_app.c
@@ -35,11 +35,12 @@ send_frame[3] = 8; send_frame[4] = pack_msgtype; send_frame[5] = pack_length; OUT485_ENABLE; checksum = Checksum_u16(&send_frame[2],8); memcpy(&send_frame[10],&checksum,2); USART_puts(send_frame, 12); OUT485_DISABLE; } void SendComMap(uint8_t data_length, uint8_t index) { @@ -99,7 +100,7 @@ //SendComMap(pack_datalen,pack_index); save_com_map_to_flash(); SendConfigConfirm(pack_msgtype,pack_length); delay_ms(10); delay_ms(500); SCB->AIRCR = 0X05FA0000|(unsigned int)0x04; //杞浣嶅洖鍒癰ootloader break; case CMD_READ: