ztlchina
ztlchina
> https://club.rt-thread.org/ask/question/434391.html 看一下这个 这个是我写的答案, 现在http-ota 使用 eg25 atclient 下载固件, 校验失败。 看来问题的确存在啊。 下载第一包1024个字节的时候,丢了两个。 再查查是咋回事。
现在的情况汇报一下: 1)软硬件环境:STM32F407,EG25 , ATCLIENT, HTTP_OTA , SPIFLASH, W25Q128; 现象: 使用串口中断接收模式, http_ota 下载完成重启后,download分区CRC 校验失败。 分析: 1) 定位问题到下载的数据不正确, 而不是flash内的数据写错误; 2)尝试将串口缓存搞大点, (ESP8266的时候,底层串口缓存太小造成丢数据)因为http_ota下载一包数据是1024,加上几百个http头, 所以索性改成了2K的串口缓存。 试验结果不理想。 1024个字节,在中间偶尔丢1到两个, 然后将结尾的0x0d 0x0a 补进来。 3)尝试减小或者增加http_ota , at client 等各处的缓存。...
编译错误: ../../../components/net/at/at_socket/at_socket.c(771): error: cannot assign to non-static data member 'socket_ops' with const-qualified type 'const struct at_socket_ops *'
at_device.h: ```c struct at_device_class { uint16_t class_id; /* AT device class ID */ const struct at_device_ops *device_ops; /* AT device operaiotns */ #ifdef AT_USING_SOCKET uint32_t socket_num; /* The maximum number...