ESP32 reboots on WiFi.softAP(ssid,password); or WiFi.enableAP(true); without error.
Posted: Fri Aug 23, 2019 12:41 pm
So i'am learning on my custom esp32 "board" recently.
It is a bare ESP32-WROOM-32 chip with 16mb flash.
I have built a "board" for it from modules around it, to a breadboard.
I have several things on this board including
-An lcd display
-Some I/O expander
-A LAN 8720PHY ethernet board
-A digital Potentiometer
-A ds3231 RTC module
-An EN125 ENTESLA RFID module
-A key matrix
etc...
My power supply is an EMG 18144 adjustable 0-40v and 0-5A DC power supply.
Similar to this but mine is 5Amper:
https://www.radiomuseum.org/r/elektroni ... 5_vol.html
The issue:
When calling either:
- WiFi.softAP(ssid,password, WiFiChannel, 0, 1);
- WiFi.softAP(ssid,password);
- WiFi.mode(WIFI_AP);
- WiFi.enableAP(true);
With or without delay after the functions,
the ESP RESTARTS without a single error message on the serial monitor with
build_flags = -DCORE_DEBUG_LEVEL=5 on the platformio.ini file.
I have capacitors everywhere on the circuit.
One on the power supply pins, one on the Display POWER in pins and one on the ESP32's power pins.
The rest of the code works fine and the softAp was worked fine until today.
I'am using PlatformIO IDE on Vscode with latest libraries and latest arduino framework.
And these libraries:
#include <Arduino.h> // FRAMEWORK
#include <WebAuthentication.h>
/** WIFI LIBRARIES **/
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <WebSocketsServer.h>
#include <ESPmDNS.h> // NOT WORKING PROPERLY!!!!
#include <WiFiUdp.h>
#include <ModbusIP_ESP8266.h> // EXPERIMENTAL COMMUNICATION WITH PLC
/** I/O EXPANDER LIBRARY **/
#include "PCF8574.h"
#include <MCP23008.h>
/** KEY MATRIX LIBRARY **/
#include <tca8418.h>
/** ETHERNET COMMUNICATION LIBRARY **/
#include <Ethernet.h>
/** OVER THE AIR WEB UPDATE BOTH IP AND HTPP **/
#include <ArduinoOTA.h>
#include <Update.h>
/** DIGITAL POTENTIOMETER **/
#include <Systronix_AD5274.h>
/** SPIFFS LIBRARIES **/
#define FS_NO_GLOBALS
#include <FS.h>
#include "SPIFFS.h"
#include <Wire.h> // I2C
#include <Ticker.h> // Uptime
/** REAL TIME LIBRARI **/
#include <ESP32-hal-I2C.h>
#include <RtcDS3231.h>
//#include <EepromAt24C32.h>
/** SPI TFT LIBRARI AND DEFINES **/
#include <TFT_eSPI.h>
#include <SPI.h>
#include <JPEGDecoder.h>
/** OWN LIBRARIES **/
#include <sajat.h> // ETHERNET HANDLES
#include <OwnLib.h> // DECLARATIONS
#include "Pages.h" // HTML PAGES
#include <Handles.h> // ALL HANDLES
#include <I2C_Things.h> // I2C FUNCTIONS
#include <DisplayUI.h> // TFT FUNCTIONS
#include <RFID_Dolgok.h> // RFID FUNCTIONS
#include <TCP_Requests.h> // TCP/IP HANDLES
#include <SPIFFS_Dolgok.h> // SPIFFS FUNCTIONS
It is a bare ESP32-WROOM-32 chip with 16mb flash.
I have built a "board" for it from modules around it, to a breadboard.
I have several things on this board including
-An lcd display
-Some I/O expander
-A LAN 8720PHY ethernet board
-A digital Potentiometer
-A ds3231 RTC module
-An EN125 ENTESLA RFID module
-A key matrix
etc...
My power supply is an EMG 18144 adjustable 0-40v and 0-5A DC power supply.
Similar to this but mine is 5Amper:
https://www.radiomuseum.org/r/elektroni ... 5_vol.html
The issue:
When calling either:
- WiFi.softAP(ssid,password, WiFiChannel, 0, 1);
- WiFi.softAP(ssid,password);
- WiFi.mode(WIFI_AP);
- WiFi.enableAP(true);
With or without delay after the functions,
the ESP RESTARTS without a single error message on the serial monitor with
build_flags = -DCORE_DEBUG_LEVEL=5 on the platformio.ini file.
I have capacitors everywhere on the circuit.
One on the power supply pins, one on the Display POWER in pins and one on the ESP32's power pins.
The rest of the code works fine and the softAp was worked fine until today.
I'am using PlatformIO IDE on Vscode with latest libraries and latest arduino framework.
And these libraries:
#include <Arduino.h> // FRAMEWORK
#include <WebAuthentication.h>
/** WIFI LIBRARIES **/
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <WebSocketsServer.h>
#include <ESPmDNS.h> // NOT WORKING PROPERLY!!!!
#include <WiFiUdp.h>
#include <ModbusIP_ESP8266.h> // EXPERIMENTAL COMMUNICATION WITH PLC
/** I/O EXPANDER LIBRARY **/
#include "PCF8574.h"
#include <MCP23008.h>
/** KEY MATRIX LIBRARY **/
#include <tca8418.h>
/** ETHERNET COMMUNICATION LIBRARY **/
#include <Ethernet.h>
/** OVER THE AIR WEB UPDATE BOTH IP AND HTPP **/
#include <ArduinoOTA.h>
#include <Update.h>
/** DIGITAL POTENTIOMETER **/
#include <Systronix_AD5274.h>
/** SPIFFS LIBRARIES **/
#define FS_NO_GLOBALS
#include <FS.h>
#include "SPIFFS.h"
#include <Wire.h> // I2C
#include <Ticker.h> // Uptime
/** REAL TIME LIBRARI **/
#include <ESP32-hal-I2C.h>
#include <RtcDS3231.h>
//#include <EepromAt24C32.h>
/** SPI TFT LIBRARI AND DEFINES **/
#include <TFT_eSPI.h>
#include <SPI.h>
#include <JPEGDecoder.h>
/** OWN LIBRARIES **/
#include <sajat.h> // ETHERNET HANDLES
#include <OwnLib.h> // DECLARATIONS
#include "Pages.h" // HTML PAGES
#include <Handles.h> // ALL HANDLES
#include <I2C_Things.h> // I2C FUNCTIONS
#include <DisplayUI.h> // TFT FUNCTIONS
#include <RFID_Dolgok.h> // RFID FUNCTIONS
#include <TCP_Requests.h> // TCP/IP HANDLES
#include <SPIFFS_Dolgok.h> // SPIFFS FUNCTIONS