esp32 wifi 用一段时间后就会重启-Arduino中文社区 - Powered by Discuz! Archiver

Nemoooooo 发表于 2021-2-8 21:58

esp32 wifi 用一段时间后就会重启

_handle_error(): : (-78) UNKNOWN ERROR CODE (004E)
Connecting to MQTT...
reconnect_time: 0
MQTT Connected!

MQTT Ping!
MQTT Ping!
MQTT Ping!
Guru Meditation Error: Core1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400014fdPS      : 0x00060c30A0      : 0x800e0126A1      : 0x3ffb1ec0
A2      : 0x00000000A3      : 0xfffffffcA4      : 0x000000ffA5      : 0x0000ff00
A6      : 0x00ff0000A7      : 0xff000000A8      : 0x00000000A9      : 0x3ffb1e90
A10   : 0x00000000A11   : 0x3ffd96b2A12   : 0x00000002A13   : 0x3ffd9f30
A14   : 0x00000400A15   : 0x00000040SAR   : 0x00000018EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000LBEG    : 0x400014fdLEND    : 0x4000150dLCOUNT: 0xffffffff

Backtrace: 0x400014fd:0x3ffb1ec0 0x400e0123:0x3ffb1ed0 0x400e01b7:0x3ffb1ef0 0x400d5113:0x3ffb1f10 0x400e2232:0x3ffb1f30 0x400e24d6:0x3ffb1f90 0x400ec395:0x3ffb1fb0 0x40088b9d:0x3ffb1fd0

Rebooting...
ets Jun8 2016 00:22:57

wifi连接一段时间后就造成内存溢出,然后重启了

奈何col 发表于 2021-2-8 22:03

package版本是否为我们打包的1.0.5-rc4?lib是否为最新?您是否使用的我们的例程?哪个例程

Nemoooooo 发表于 2021-2-9 01:14

本帖最后由 Nemoooooo 于 2021-2-9 01:45 编辑

奈何col 发表于 2021-2-8 22:03
package版本是否为我们打包的1.0.5-rc4?lib是否为最新?您是否使用的我们的例程?哪个例程 ...
hi~
https://github.com/blinker-iot/blinker-library

esp32的sdk使用的版本是2.0.0, lib是从git上拉取的最新的,例程是参照blinker官方开发者文档中的实例创建的。

我的开发环境为:vscode+PlatformIO, esp32的sdk是由PlatfromIO提供的,然后我直接引用了git上的blinker lib,然后使用wifi例程创建好交换之后,程序会在几个小时后就造成内存溢出空指针等问题,然后esp32重启

ps:我注意到了 https://github.com/blinker-iot/blinker-esp-idf 这个lib,由于我使用的esp32是用了arduino的方式,所以并没有使用这个lib

Nemoooooo 发表于 2021-2-9 02:12

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.0.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10004.210126 (1.0.4)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP32Servo> 0.9.0
|-- <Blinker> 0.3.5
|   |-- <Update> 1.0
|   |-- <WiFi> 1.0
|   |-- <FS> 1.0
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <Ethernet> 2.0.0
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <EEPROM> 1.0.3
|   |-- <Ticker> 1.1
|   |-- <ESP32 BLE Arduino> 1.0.1
|   |-- <HTTPClient> 1.2
|   |   |-- <WiFi> 1.0
|   |   |-- <WiFiClientSecure> 1.0
|   |   |   |-- <WiFi> 1.0
|   |-- <ESPmDNS> 1.0
|   |   |-- <WiFi> 1.0
Building in release mode
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]14.0% (used 45720 bytes from 327680 bytes)
Flash: [========]81.8% (used 1071678 bytes from 1310720 bytes)
=============================================================================================== Took 5.49 seconds ===============================================================================================


我把esp32 sdk更新到3.0版本了,以上是编译输出信息,我再观察一个晚上看看是否会有异常

奈何col 发表于 2021-2-9 09:55

Nemoooooo 发表于 2021-2-9 01:14
hi~
https://github.com/blinker-iot/blinker-library



目前最新的esp32 arduino sdk版本为1.0.5,请以esp官方github为准。
我们文档里有1.0.5-rc4的离线安装包

Nemoooooo 发表于 2021-2-9 13:17

奈何col 发表于 2021-2-9 09:55
目前最新的esp32 arduino sdk版本为1.0.5,请以esp官方github为准。
我们文档里有1.0.5-rc4的离线安装包 ...

不好意思,我弄错了一件事,使用platformIO平台引用的idf的版本是指该平台的版本,非esp32 sdk的版本

PlatformIO 3.0.0 对应 esp32 sdk的版本为4.2,对应 arduino-esp32 版本为1.0.4,昨晚我更新了最新PIO版本3.0之后观察了一晚暂无出现内存溢出现象,我再持续观察观察,谢谢

奈何col 发表于 2021-2-9 19:38

Nemoooooo 发表于 2021-2-9 13:17
不好意思,我弄错了一件事,使用platformIO平台引用的idf的版本是指该平台的版本,非esp32 sdk的版本

Pl ...

pio中的blinker lib不是我们维护,且我们现在提供的lib是基于1.0.5-rc4的,请务必按照我们的版本要求使用blinker

Nemoooooo 发表于 2021-2-21 00:25

奈何col 发表于 2021-2-9 19:38
pio中的blinker lib不是我们维护,且我们现在提供的lib是基于1.0.5-rc4的,请务必按照我们的版本要求使用 ...

升级到1.0.4后果然还是出现了同样的问题,blinker lib的我是使用的你们官方github提供的,不是别人维护的...
麻烦您发一下您这边1.0.5-rc4的下载地址,我未找到(同时也不敢去esp32 github自行下载了,怕出同样问题),谢谢

奈何col 发表于 2021-2-21 10:08

Nemoooooo 发表于 2021-2-21 00:25
升级到1.0.4后果然还是出现了同样的问题,blinker lib的我是使用的你们官方github提供的,不是别人维护的 ...

https://www.arduino.cn/forum.php?mod=viewthread&tid=81194&extra=page%3D1

Nemoooooo 发表于 2021-3-13 17:57

奈何col 发表于 2021-2-21 10:08
https://www.arduino.cn/forum.php?mod=viewthread&tid=81194&extra=page%3D1

hi~又来求助了,最近好久没玩esp32了,心血来潮打开一下刷一下程序发现以前的代码(一点未动)刷写后出现一个异常,能否帮忙看看什么原因

Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 4
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 5
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Freeheap: 214556
Connecting to MQTT...
reconnect_time: 0
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 1
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 2
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 3
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 4
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 5
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Freeheap: 214252
Connecting to MQTT...
reconnect_time: 0
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 1
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 2
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 3
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 4
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 5
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Freeheap: 213940
Connecting to MQTT...
reconnect_time: 0
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 1
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 2
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 3
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 4
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 5
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Freeheap: 214064
Connecting to MQTT...
reconnect_time: 0
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 1
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 2
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
Connecting to MQTT...
reconnect_time: 3
connect(): start_ssl_client: -1
Connection failed
Retrying MQTT connection in 5 seconds...
页: [1] 2
查看完整版本: esp32 wifi 用一段时间后就会重启