您尚未登录。

楼主 #1 2019-03-12 17:18:36

LAQ
会员
注册时间: 2017-09-20
已发帖子: 38
积分: 38

ESP32不停地重启

最近把ESP32系统以及外围电路移植到PCB底板上,在调试过程中,遇到的问题是:不烧写初始化wifi的固件时,底板正常工作。但是烧写需要初始化wifi的固件时,系统就不停地复位,打印重复的信息如下:
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_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:6428
load:0x40078000,len:11308
ho 0 tail 12 room 4
load:0x40080400,len:6672
entry 0x40080764
[0;32mI (31) boot: ESP-IDF v3.3-beta1-432-g5ec58c316 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 16:22:41[0m
[0;32mI (31) boot: Enabling RNG early entropy source...[0m
[0;32mI (37) boot: SPI Speed      : 40MHz[0m
[0;32mI (41) boot: SPI Mode       : DIO[0m
[0;32mI (45) boot: SPI Flash Size : 4MB[0m
[0;32mI (49) boot: Partition Table:[0m
[0;32mI (53) boot: ## Label            Usage          Type ST Offset   Length[0m
[0;32mI (60) boot:  0 nvs              WiFi data        01 02 00009000 00004000[0m
[0;32mI (68) boot:  1 otadata          OTA data         01 00 0000d000 00002000[0m
[0;32mI (75) boot:  2 phy_init         RF data          01 01 0000f000 00001000[0m
[0;32mI (83) boot:  3 factory          factory app      00 00 00010000 00100000[0m
[0;32mI (90) boot:  4 ota_0            OTA app          00 10 00110000 00100000[0m
[0;32mI (97) boot:  5 ota_1            OTA app          00 11 00210000 00100000[0m
[0;32mI (105) boot: End of partition table[0m
[0;32mI (109) boot: Defaulting to factory image[0m
[0;32mI (114) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2c808 (182280) map[0m
[0;32mI (187) esp_image: segment 1: paddr=0x0003c830 vaddr=0x3ffb0000 size=0x032e8 ( 13032) load[0m
[0;32mI (192) esp_image: segment 2: paddr=0x0003fb20 vaddr=0x40080000 size=0x00400 (  1024) load[0m
[0;32mI (194) esp_image: segment 3: paddr=0x0003ff28 vaddr=0x40080400 size=0x000e8 (   232) load[0m
[0;32mI (203) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0xad914 (710932) map[0m
[0;32mI (460) esp_image: segment 5: paddr=0x000ed934 vaddr=0x400804e8 size=0x10658 ( 67160) load[0m
[0;32mI (498) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (498) boot: Disabling RNG early entropy source...[0m
[0;32mI (499) cpu_start: Pro cpu up.[0m
[0;32mI (502) cpu_start: Application information:[0m
[0;32mI (507) cpu_start: Project name:     smart_light[0m
[0;32mI (513) cpu_start: App version:      v1.0-99-g1d5ba38-dirty[0m
[0;32mI (519) cpu_start: Compile time:     16:23:08[0m
[0;32mI (524) cpu_start: Compile date:     Mar 12 2019[0m
[0;32mI (529) cpu_start: ESP-IDF:          v3.3-beta1-432-g5ec58c316[0m
[0;32mI (536) cpu_start: Starting app cpu, entry point is 0x40081050[0m
[0;32mI (527) cpu_start: App cpu up.[0m
[0;32mI (546) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (553) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (559) heap_init: At 3FFB9D40 len 000262C0 (152 KiB): DRAM[0m
[0;32mI (565) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (572) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (578) heap_init: At 40090B40 len 0000F4C0 (61 KiB): IRAM[0m
[0;32mI (584) cpu_start: Pro cpu start user code[0m
[0;32mI (267) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (316) app main: IDF version: v3.3-beta1-432-g5ec58c316[0m
[0;32mI (316) app main: esp-aliyun verison: [0m
[0;32mI (316) app main: iotkit-embedded version: [0m
I (326) wifi: wifi driver task: 3ffc18e8, prio:23, stack:3584, core=0
I (326) wifi: wifi firmware version: 66a98c0
I (336) wifi: config NVS flash: enabled
I (336) wifi: config nano formating: disabled
[0;32mI (346) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;32mI (356) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
I (386) wifi: Init dynamic tx buffer num: 32
I (386) wifi: Init data frame dynamic rx buffer num: 32
I (386) wifi: Init management frame dynamic rx buffer num: 32
I (386) wifi: Init static rx buffer size: 1600
I (386) wifi: Init static rx buffer num: 10
I (396) wifi: Init dynamic rx buffer num: 32
[0;33mW (396) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration[0m

Brownout detector was triggered

请问有谁遇到这种问题吗,底板的供电是正常的。

离线

#2 2019-03-12 17:37:42

超级萌新
会员
注册时间: 2018-05-04
已发帖子: 408
积分: 407

Re: ESP32不停地重启

没用过esp32,不过最后一句看来还是供电问题

离线

#3 2019-03-12 17:46:07

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,138
积分: 1090.5

Re: ESP32不停地重启

据说WiFi启动会有几百ma的瞬间电流,你是不是供电不足,加个大电容看看

离线

#4 2019-03-12 22:35:37

小智科技
会员
注册时间: 2019-03-10
已发帖子: 92
积分: 83

Re: ESP32不停地重启

加一个10uf的贴片电容

离线

#5 2019-03-18 13:00:36

钱泰多
会员
注册时间: 2018-08-08
已发帖子: 42
积分: 42

Re: ESP32不停地重启

同样的程序烧到官方demo板看看有没有问题。如果没问题,那应该是硬件问题。有问题就是软件问题

离线

#6 2020-06-04 17:04:33

guguo8266
会员
注册时间: 2020-01-16
已发帖子: 4
积分: 4

Re: ESP32不停地重启

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_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:6316
load:0x40078000,len:11624
load:0x40080400,len:6648
entry 0x40080764
I (29) boot: ESP-IDF v3.3 2nd stage bootloader
I (29) boot: compile time 14:06:08
I (29) boot: Enabling RNG early entropy source...
I (33) boot: SPI Speed      : 40MHz
I (38) boot: SPI Mode       : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label            Usage          Type ST Offset   Length
I (56) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (64) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (71) boot:  2 coredump         Unknown data     01 03 00010000 00010000
I (79) boot:  3 factory          factory app      00 00 00020000 00140000
I (86) boot:  4 ota_0            OTA app          00 10 00160000 00140000
I (94) boot:  5 ota_1            OTA app          00 11 002a0000 00140000
I (101) boot:  6 otadata          OTA data         01 00 003e0000 00002000
I (109) boot: End of partition table
I (113) boot: Defaulting to factory image
I (118) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x39b5c (236380) map
I (210) esp_image: segment 1: paddr=0x00059b84 vaddr=0x3ffbdb60 size=0x03718 ( 14104) load
I (216) esp_image: segment 2: paddr=0x0005d2a4 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at D:/espressif/esp-idf-v3.3/components/freertos/xtensa_vectors.S:1779

I (217) esp_image: segment 3: paddr=0x0005d6ac vaddr=0x40080400 size=0x02964 ( 10596) load
I (230) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0xe60b4 (942260) map
0x400d0018: _flash_cache_start at ??:?

I (565) esp_image: segment 5: paddr=0x001460d4 vaddr=0x40082d64 size=0x13830 ( 79920) load
0x40082d64: _xt_coproc_exc at D:/espressif/esp-idf-v3.3/components/freertos/xtensa_vectors.S:1064

I (612) boot: Loaded app from partition at offset 0x20000
I (612) boot: Disabling RNG early entropy source...
I (612) cpu_start: Pro cpu up.
I (616) cpu_start: Application information:
I (621) cpu_start: Project name:     esp-idf
I (625) cpu_start: App version:      v3.3
I (630) cpu_start: Compile time:     Jun  3 2020 14:06:04
I (636) cpu_start: ELF file SHA256:  d40f1425bd822b7e...
I (642) cpu_start: ESP-IDF:          v3.3
I (647) cpu_start: Starting app cpu, entry point is 0x40081108
0x40081108: call_start_cpu1 at D:/espressif/esp-idf-v3.3/components/esp32/cpu_start.c:270

I (639) cpu_start: App cpu up.
I (658) heap_init: Initializing. RAM available for dynamic allocation:
I (664) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (670) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (677) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (683) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (689) heap_init: At 3FFCE6E0 len 00011920 (70 KiB): DRAM
I (695) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (701) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (708) heap_init: At 40096594 len 00009A6C (38 KiB): IRAM
I (714) cpu_start: Pro cpu start user code
I (61) cpu_start: Chip Revision: 1
W (62) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
I (65) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
     SDK version:v3.3
I (77) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (87) app_main: mac:246F289D0A8C
I (127) sc: led_show
I (127) sc: RAM bytes left 188248
I (127) BTDM_INIT: BT controller compile version [e736f10]
I (127) sc: The current date/time in china is:5

I (137) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
Done
I (137) sc: The current date/time in china is:101080005

Restart counter = 0
W (147) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
ADC channel 7 @ GPIO 35, DAC channel 1 @ GPIO 25.
I (167) wifi: wifi driver task: 3ffd56dc, prio:23, stack:3584, core=0
I (167) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (177) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (217) wifi: wifi firmware version: aeed694
I (217) wifi: config NVS flash: enabled
I (217) wifi: config nano formating: disabled
I (217) wifi: Init dynamic tx buffer num: 32
I (217) wifi: Init data frame dynamic rx buffer num: 32
I (227) wifi: Init management frame dynamic rx buffer num: 32
I (227) wifi: Init management short buffer num: 32
I (237) wifi: Init static rx buffer size: 1600
I (237) wifi: Init static rx buffer num: 10
I (237) wifi: Init dynamic rx buffer num: 32
ESP_ERROR_CHECK failed: esp_err_t 0x5 (ERROR) at 0x40091ca0
0x40091ca0: _esp_error_check_failed at D:/espressif/esp-idf-v3.3/components/esp32/panic.c:720

file: "../main/smartconfig_main.c" line 990
func: wifi_init
expression: esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config)

ELF file SHA256: d40f1425bd822b7eec83fd57d51dc27135569621db494dda3f4439ee178e313e

Backtrace: 0x40091838:0x3ffd04b0 0x40091ca3:0x3ffd04d0 0x400d4536:0x3ffd04f0 0x400d48f6:0x3ffd0640 0x4008dee9:0x3ffd0670
0x40091838: invoke_abort at D:/espressif/esp-idf-v3.3/components/esp32/panic.c:715

0x40091ca3: _esp_error_check_failed at D:/espressif/esp-idf-v3.3/components/esp32/panic.c:721

0x400d4536: wifi_init at D:\espressif\esp-idf-v3.3\gatt_server_modify_ota\build/../main/smartconfig_main.c:990 (discriminator 1)

0x400d48f6: wifi_main at D:\espressif\esp-idf-v3.3\gatt_server_modify_ota\build/../main/smartconfig_main.c:1279

0x4008dee9: vPortTaskWrapper at D:/espressif/esp-idf-v3.3/components/freertos/port.c:403

离线

#7 2020-06-04 17:31:34

有梦的地方
会员
注册时间: 2020-03-17
已发帖子: 284
积分: 284

Re: ESP32不停地重启

file: "../main/smartconfig_main.c" line 990
func: wifi_init
expression: esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config)



wifi配置出问题了?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn