乐鑫技术交流
直播中

万航渡路

8年用户 1286经验值
擅长:电源/新能源
私信 关注
[问答]

将ESP-01S刷入较新的AT固件,如何让最新的稳定固件工作并响应AT命令?

在过去的两天里,我试图将最新的 AT 固件刷入我的 ESP-01S 模块,但没有成功。唯一成功运行的版本是带有“XTCOM_UtiL.exe”的 v.0.9.5.0,这是引导期间 74880 波特的控制台:
代码:全选 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 612, room 16
tail
chksum 0x12
load 0x3ffe8000, len 788, room 4
tail 0
chksum 0x50
load 0x3ffe8314, len 264, room 8
tail 0
chksum 0x4a
csum 0x4a

2nd boot version : 1.1
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size : 4Mbit
jump to run user1


之后它以 9600 波特率成功响应 AT 命令。我知道 v.0.9.5.0 有一些错误,我在我的项目中遇到了其中一个,这就是为什么我需要一个更新的版本。我从这里
下载了“ESP8266 IDF AT Bin V2.0” ,并使用 esptool.py 使用 download.config 中的命令对其进行了刷新:

代码:全选C:\Users\user\.windows-build-tools\python27\Scripts>esptool.exe --port COM2 write_flash --flash_mode dio --flash_freq 40m --flash_size 1MB 0x9000 ota_data_initial.bin 0x0000 bootloader/bootloader.bin 0xBF000 at_customize.bin 0xC0000 customized_partitions/factory_param.bin 0xC1000 customized_partitions/server_cert.bin 0xC3000 customized_partitions/server_key.bin 0xC5000 customized_partitions/server_ca.bin 0xC7000 customized_partitions/client_cert.bin 0xC9000 customized_partitions/client_key.bin 0xCB000 customized_partitions/client_ca.bin 0x10000 esp-at.bin 0x8000 partitions_at.bin
esptool.py v2.8
Serial port COM2
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 48:3f:da:66:a3:0b
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x00009000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Flash params set to 0x0220
Compressed 10928 bytes to 7237...
Wrote 10928 bytes (7237 compressed) at 0x00000000 in 0.7 seconds (effective 133.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 184...
Wrote 3072 bytes (184 compressed) at 0x000bf000 in 0.0 seconds (effective 744.7 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 45...
Wrote 4096 bytes (45 compressed) at 0x000c0000 in 0.0 seconds (effective 2048.0 kbit/s)...
Hash of data verified.
Compressed 1176 bytes to 904...
Wrote 1176 bytes (904 compressed) at 0x000c1000 in 0.1 seconds (effective 99.0 kbit/s)...
Hash of data verified.
Compressed 1688 bytes to 1320...
Wrote 1688 bytes (1320 compressed) at 0x000c3000 in 0.1 seconds (effective 104.7 kbit/s)...
Hash of data verified.
Compressed 1176 bytes to 906...
Wrote 1176 bytes (906 compressed) at 0x000c5000 in 0.1 seconds (effective 98.0 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1487...
Wrote 2344 bytes (1487 compressed) at 0x000c7000 in 0.1 seconds (effective 130.2 kbit/s)...
Hash of data verified.
Compressed 3368 bytes to 2527...
Wrote 3368 bytes (2527 compressed) at 0x000c9000 in 0.2 seconds (effective 112.3 kbit/s)...
Hash of data verified.
Compressed 2344 bytes to 1499...
Wrote 2344 bytes (1499 compressed) at 0x000cb000 in 0.1 seconds (effective 130.2 kbit/s)...
Hash of data verified.
Compressed 660288 bytes to 424136...
Wrote 660288 bytes (424136 compressed) at 0x00010000 in 37.7 seconds (effective 139.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 768.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

它似乎没有问题地闪烁,但在重新启动后我认为它没有正确启动,它不会以任何波特率响应任何 AT 命令:
代码:全选 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 7332, room 16
tail 4
chksum 0x14
load 0x3ffe8408, len 24, room 4
tail 4
chksum 0x9d
load 0x3ffe8420, len 3532, room 4
tail 8
chksum 0x69
csum 0x69

使用 flash_download_tool_3.8.5 刷新的最新 beta 固件也会发生同样的事情。
如何让最新的稳定固件工作并响应 AT命令?

               


                        

更多回帖

发帖
×
20
完善资料,
赚取积分