ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Moderator: ESP_XCGuang

without
Posts: 4
Joined: Sat Feb 19, 2022 1:13 am

ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby without » Sat Feb 19, 2022 1:29 am

买的ESP32-DevKitC开发板,搭载WROOM-32D模块,烧录AT指令失败。
步骤:
1,选择配置
chipType 选择了ESP32D2WD,workMode选择了develop。
2,SPIDownload选择的是ESP32-WROOM-32-V2.2.0.0/factory/factory_WROOM-32.bin,地址是0,SPISpeed选择40MHz,SPI MODE选择DIO,勾选DoNotChgBin,选择的是Default。
3,点击START后,按开发板右侧的上电按钮,提示信息:11-configure spi cmd fail,命令行窗口显示的内容是:SEND ESP SPI ATTACH CMD
[2022-02-19 09:19:37,264][ESP8266Loader_spi[1]][espDownloader.py][line:618][ERRO
R]: ESP32D2WD ConfiguredSPICmdError esp_config_spi_mode.
no log file output ...

麻烦大家帮忙看下,多谢多谢!
Attachments
3.png
选项选择
3.png (393.11 KiB) Viewed 7648 times
2.png
配置
2.png (89.73 KiB) Viewed 7648 times
1.png
错误提示信息。
1.png (59.82 KiB) Viewed 7648 times

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby ESP_Sun » Mon Feb 21, 2022 2:55 am

你的模组是 WROOM-32D 的,你的 chipType 应该选择 ESP32. ESP32D2WD 的 flash 是 2MB 的,不可以烧录 4MB 的 WROOM-32 的固件的.

without
Posts: 4
Joined: Sat Feb 19, 2022 1:13 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby without » Tue Feb 22, 2022 2:52 am

感谢。按照上面说的固件烧写成功。验证AT命令时,没有响应。我是用和烧录一样的串口发送的AT命令,这个是要使用GPIO13和GPIO15进行AT命令通信吗?
下面是启动时的信息:
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5568
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
[0;32mI (30) boot: ESP-IDF v3.0.1-rc 2nd stage bootloader[0m
[0;32mI (30) boot: compile time 12:42:40[0m
[0;32mI (30) boot: Enabling RNG early entropy source...[0m
[0;32mI (35) boot: SPI Speed : 40MHz[0m
[0;32mI (39) boot: SPI Mode : DIO[0m
[0;32mI (43) boot: SPI Flash Size : 4MB[0m
[0;32mI (47) boot: Partition Table:[0m
[0;32mI (51) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (58) boot: 0 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (66) boot: 1 otadata OTA data 01 00 00010000 00002000[0m
[0;32mI (73) boot: 2 nvs WiFi data 01 02 00012000 0000e000[0m
[0;32mI (80) boot: 3 at_customize unknown 40 00 00020000 000e0000[0m
[0;32mI (88) boot: 4 ota_0 OTA app 00 10 00100000 00180000[0m
[0;32mI (95) boot: 5 ota_1 OTA app 00 11 00280000 00180000[0m
[0;32mI (103) boot: End of partition table[0m
[0;32mI (107) boot: No factory image, trying OTA 0[0m
[0;32mI (112) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x1fdfc (130556) map[0m
[0;32mI (167) esp_image: segment 1: paddr=0x0011fe24 vaddr=0x3ffc0000 size=0x001ec ( 492) load[0m
[0;32mI (167) esp_image: segment 2: paddr=0x00120018 vaddr=0x400d0018 size=0xddc68 (908392) map[0m
[0;32mI (492) esp_image: segment 3: paddr=0x001fdc88 vaddr=0x3ffc01ec size=0x0300c ( 12300) load[0m
[0;32mI (497) esp_image: segment 4: paddr=0x00200c9c vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (499) esp_image: segment 5: paddr=0x002010a4 vaddr=0x40080400 size=0x0eba0 ( 60320) load[0m
[0;32mI (532) esp_image: segment 6: paddr=0x0020fc4c vaddr=0x400c0000 size=0x00064 ( 100) load[0m
[0;32mI (542) boot: Loaded app from partition at offset 0x100000[0m
[0;32mI (542) boot: Disabling RNG early entropy source...[0m
Bin version(Wroom32):1.1.0

I (660) wifi: wifi firmware version: bffcf7f
I (661) wifi: config NVS flash: enabled
I (661) wifi: config nano formating: disabled
I (670) wifi: Init dynamic tx buffer num: 32
I (671) wifi: Init data frame dynamic rx buffer num: 32
I (671) wifi: Init management frame dynamic rx buffer num: 32
I (677) wifi: wifi driver task: 3ffdf580, prio:23, stack:4096
I (682) wifi: Init static rx buffer num: 10
I (685) wifi: Init dynamic rx buffer num: 32
I (690) wifi: wifi power manager task: 0x3ffe3ce4 prio: 21 stack: 2560
I (729) wifi: mode : softAP (c8:c9:a3:c9:d5:2d)
I (736) wifi: mode : sta (c8:c9:a3:c9:d5:2c) + softAP (c8:c9:a3:c9:d5:2d)
I (740) wifi: mode : softAP (c8:c9:a3:c9:d5:2d)
I (55663) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (55664) wifi: station: d4:12:43:13:37:49 join, AID=1, g, 20
I (156714) wifi: n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1
I (156716) wifi: station: de:d0:47:3d:2a:22 join, AID=2, n, 40U
I (171130) wifi: station: de:d0:47:3d:2a:22 leave, AID = 2
I (171131) wifi: n:1 0, o:1 1, ap:1 1, sta:255 255, prof:1
I (360610) wifi: n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1
I (360612) wifi: station: e2:b4:db:8a:f3:72 join, AID=2, n, 40U
Attachments
0222.jpg
0222.jpg (286.16 KiB) Viewed 7591 times

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby ESP_Sun » Tue Feb 22, 2022 8:41 am

ESP32 AT的命令口和烧录口是不同的. 您可以看一下这篇文章 ESP32 WROOM 模组使用 AT 固件硬件应该如何连接:https://docs.espressif.com/projects/esp ... html#esp32

without
Posts: 4
Joined: Sat Feb 19, 2022 1:13 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby without » Thu Feb 24, 2022 2:34 am

你好,我分别用TTL、RS232试了GPIO16和GPIO17,还有开发板上标着RX、TX的引脚,其他的引脚也尝试了,也修改了不同的波特率,连续发送AT的时候,有时候回复乱码,串口没有响应正常,请问这个该怎么排查?多谢。

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby ESP_Sun » Thu Feb 24, 2022 3:54 am

AT 默认固件的波特率是 115200,您的 GPIO 16 要连接在 TTL 的 TX, GPIO17 要连接在 TTL 的 RX 上,您可以直接用波特率 115200 打开烧录口,手动按开发板的 RST 键,您看一下烧录口是否有 log 打印。对于您看我们的 AT 文档的硬件连接(https://docs.espressif.com/projects/esp ... n.html#id1)以及下载指导(https://docs.espressif.com/projects/esp ... e.html#id1)部分文档,您觉得有哪里需要改进的地方吗?

without
Posts: 4
Joined: Sat Feb 19, 2022 1:13 am

Re: ESP32-DevKitC开发板(搭载WROOM-32D模块)AT固件烧录失败

Postby without » Thu Feb 24, 2022 5:24 am

可以正常连接了,之前引脚接错了,多谢。

Who is online

Users browsing this forum: No registered users and 15 guests