程序配置 wifi STA模式,手动写入SSID和密码后, 下载进入芯片,然后芯片一直反复重启,STA模式设置失败,使用的测试代码为
https://blog.csdn.net/yake827/article/details/78541753
中STA部分代码,然后程序烧录后,一直反复重启,并打印:
I (284) espressif: Setting WiFi configuration SSID GlocalMe_12933...
I (12) boot: ESP-IDF v3.2.3-dirty 2nd stage bootloader
I (12) boot: compile time 19:43:07
I (12) boot: Enabling RNG early entropy source...
I (16) boot: SPI Speed : 40MHz
I (20) boot: SPI Mode : DIO
I (24) boot: SPI Flash Size : 4MB
I (28) boot: Partition Table:
I (32) boot: ## Label Usage Type ST Offset Length
I (39) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (46) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (54) boot: 2 factory factory app 00 00 00010000 00100000
I (61) boot: End of partition table
I (66) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1445c ( 8p
I (104) esp_image: segment 1: paddr=0x00024484 vaddr=0x3ffb0000 size=0x02e54 ( d
I (109) esp_image: segment 2: paddr=0x000272e0 vaddr=0x40080000 size=0x00400 ( d
I (111) esp_image: segment 3: paddr=0x000276e8 vaddr=0x40080400 size=0x08928 ( d
I (134) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x61728 (3p
I (274) esp_image: segment 5: paddr=0x00091748 vaddr=0x40088d28 size=0x06f44 ( d
I (296) boot: Loaded app from partition at offset 0x10000
I (296) boot: Disabling RNG early entropy source...
I (296) cpu_start: Pro cpu up.
I (300) cpu_start: Starting app cpu, entry point is 0x40080ff8
I (0) cpu_start: App cpu up.
I (310) heap_init: Initializing. RAM available for dynamic allocation:
I (317) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (323) heap_init: At 3FFB8D50 len 000272B0 (156 KiB): DRAM
I (330) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (336) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (342) heap_init: At 4008FC6C len 00010394 (64 KiB): IRAM
I (349) cpu_start: Pro cpu start user code
I (143) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (224) wifi: wifi driver task: 3ffc0000, prio:23, stack:3584, core=0
I (224) system_api: Base MAC address is not set, read default base MAC address E
I (224) system_api: Base MAC address is not set, read default base MAC address E
I (254) wifi: wifi firmware version: 7997e4b
I (254) wifi: config NVS flash: enabled
I (254) wifi: config nano formating: disabled
I (254) wifi: Init dynamic tx buffer num: 32
I (254) wifi: Init data frame dynamic rx buffer num: 32
I (264) wifi: Init management frame dynamic rx buffer num: 32
I (264) wifi: Init management short buffer num: 32
I (274) wifi: Init static tx buffer num: 16
I (274) wifi: Init static rx buffer size: 1600
I (274) wifi: Init static rx buffer num: 10
I (284) wifi: Init dynamic rx buffer num: 32
I (284) espressif: Setting WiFi configuration SSID GlocalMe_12933...
I (12) boot: ESP-IDF v3.2.3-dirty 2nd stage bootloader
I (12) boot: compile time 19:43:07
I (12) boot: Enabling RNG early entropy source...
I (16) boot: SPI Speed : 40MHz
I (20) boot: SPI Mode : DIO
I (24) boot: SPI Flash Size : 4MB
I (28) boot: Partition Table:
I (32) boot: ## Label Usage Type ST Offset Length
I (39) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (46) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (54) boot: 2 factory factory app 00 00 00010000 00100000
I (61) boot: End of partition table
I (66) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1445c ( 8p
I (104) esp_image: segment 1: paddr=0x00024484 vaddr=0x3ffb0000 size=0x02e54 ( d
I (109) esp_image: segment 2: paddr=0x000272e0 vaddr=0x40080000 size=0x00400 ( d
I (111) esp_image: segment 3: paddr=0x000276e8 vaddr=0x40080400 size=0x08928 ( d
I (134) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x61728 (3p
I (274) esp_image: segment 5: paddr=0x00091748 vaddr=0x40088d28 size=0x06f44 ( d
I (296) boot: Loaded app from partition at offset 0x10000
I (296) boot: Disabling RNG early entropy source...
I (296) cpu_start: Pro cpu up.
I (300) cpu_start: Starting app cpu, entry point is 0x40080ff8
I (0) cpu_start: App cpu up.
I (310) heap_init: Initializing. RAM available for dynamic allocation:
I (317) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (323) heap_init: At 3FFB8D50 len 000272B0 (156 KiB): DRAM
I (330) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (336) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (342) heap_init: At 4008FC6C len 00010394 (64 KiB): IRAM
I (349) cpu_start: Pro cpu start user code
I (143) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (224) wifi: wifi driver task: 3ffc0000, prio:23, stack:3584, core=0
I (224) system_api: Base MAC address is not set, read default base MAC address E
I (224) system_api: Base MAC address is not set, read default base MAC address E
I (254) wifi: wifi firmware version: 7997e4b
I (254) wifi: config NVS flash: enabled
I (254) wifi: config nano formating: disabled
I (254) wifi: Init dynamic tx buffer num: 32
I (254) wifi: Init data frame dynamic rx buffer num: 32
I (264) wifi: Init management frame dynamic rx buffer num: 32
I (264) wifi: Init management short buffer num: 32
I (274) wifi: Init static tx buffer num: 16
I (274) wifi: Init static rx buffer size: 1600
I (274) wifi: Init static rx buffer num: 10
I (284) wifi: Init dynamic rx buffer num: 32
I (284) espressif: Setting WiFi configuration SSID GlocalMe_12933...
I (12) boot: ESP-IDF v3.2.3-dirty 2nd stage bootloader
每次运行到Setting WiFi configuration SSID 后,到设置 ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) ); 这里就会重启,
感觉是模式设置失败,但是为什么会模式设置失败呢? 代码完全拷贝的例子,只是修改了SSID和密码, 此问题一直这样,请协助解决下,多谢!
esp32 WROOM-32 WIFI STA 模式设置不成功,一直反复重启
Moderator: ESP_Bob
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: esp32 WROOM-32 WIFI STA 模式设置不成功,一直反复重启
重启过程中,没有 crash 信息和 ROM 的打印信息,这不利于调试。需要弄清是什么原因导致的重启,需要以下信息:I (284) espressif: Setting WiFi configuration SSID GlocalMe_12933...
I (12) boot: ESP-IDF v3.2.3-dirty 2nd stage bootloader
1、是否 MTDO(GPIO15) 拉低,屏蔽了 ROM 的打印?如果是的,那么保持该管脚悬空。
2、是否在 menuconfig 中 Component config → ESP32-specific → Panic handler behaviour 设置成了 Silent reboot?如果是的,请设置成 Print registers and reboot。
其他建议:
1、IDF v3.2.x 版本已经过了维护期,不建议使用,建议使用 IDF 最新的 release 版本做相关产品的开发或测试,IDF 的版本策略,请查看:https://docs.espressif.com/projects/esp ... sions.html
2、使用 IDF 中自带的 station example 进行验证对比,位于 esp-idf/examples/wifi/getting_started/station
Who is online
Users browsing this forum: No registered users and 40 guests