Continuous reboot on WiFi and Bluetooth

pravi.khm@gmail.com
Posts: 11
Joined: Sun Mar 31, 2019 1:31 am

Continuous reboot on WiFi and Bluetooth

Postby pravi.khm@gmail.com » Sun Mar 31, 2019 1:38 am

Hi,

I have been using ESP32 DOIT version DEVKIT V1 version of boards. The below program was running successfully and LED turning on and Off. However, from last few days, after the program is uploaded, it continuously reboots. Please find the below program and error message. I have designed an entire board to use the functionalities of ESP32. Now that everything was working, it all of a sudden stopped working and does not work after multiple uploads.

1. I have used three different ESP32 boards and result is same for all three.
2. Installed Arduino on my desktop and laptop. Result is the same.

Kindly check and help.

Program:
  1. #include "BluetoothSerial.h" //Header File for Serial Bluetooth, will be added by default into Arduino
  2. BluetoothSerial ESP_BT; //Object for Bluetooth
  3. int incoming;
  4. int LED_BUILTIN = 2;
  5.  
  6. void setup() {
  7.   Serial.begin(9600); //Start Serial monitor in 9600
  8.   ESP_BT.begin("ESP32_LED_Control"); //Name of your Bluetooth Signal
  9.   Serial.println("Bluetooth Device is Ready to Pair");
  10.  
  11.   pinMode (LED_BUILTIN, OUTPUT);//Specify that LED pin is output
  12. }
  13.  
  14. void loop() {
  15.   if (ESP_BT.available()) //Check if we receive anything from Bluetooth
  16.   {
  17.     incoming = ESP_BT.read(); //Read what we recevive
  18.     Serial.print("Received:"); Serial.println(incoming);
  19.     if (incoming == 49)
  20.         {
  21.         digitalWrite(LED_BUILTIN, HIGH);
  22.         ESP_BT.println("LED turned ON");
  23.         }
  24.     if (incoming == 48)
  25.         {
  26.         digitalWrite(LED_BUILTIN, LOW);
  27.         ESP_BT.println("LED turned OFF");
  28.         }    
  29.   }
  30.   delay(20);
  31. }
Error Message:

Code: Select all

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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10088
load:0x40080400,len:6380
entry 0x400806a4

pravi.khm@gmail.com
Posts: 11
Joined: Sun Mar 31, 2019 1:31 am

Re: Continuous reboot on WiFi and Bluetooth

Postby pravi.khm@gmail.com » Mon Apr 01, 2019 5:15 am

any suggestions on this?

lasselukkari
Posts: 2
Joined: Sat Mar 23, 2019 10:23 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby lasselukkari » Mon Apr 01, 2019 6:28 am

Did you update the ESP32 arduino version recently? I had a similar problem a while ago. Erasing the whole flash with esptool fixed it.

pravi.khm@gmail.com
Posts: 11
Joined: Sun Mar 31, 2019 1:31 am

Re: Continuous reboot on WiFi and Bluetooth

Postby pravi.khm@gmail.com » Mon Apr 01, 2019 12:09 pm

I guess so. I have the latest version of Arduino. But I have also tried it with three different boards. All shows same results.

idahowalker
Posts: 166
Joined: Wed Aug 01, 2018 12:06 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby idahowalker » Tue Apr 02, 2019 2:43 am

How does the ESP behave when a blank sketch is uploaded?

It might be time to logically eliminate lines of code till the issue goes away and then add them back, logically, till the issue returns.

pravi.khm@gmail.com
Posts: 11
Joined: Sun Mar 31, 2019 1:31 am

Re: Continuous reboot on WiFi and Bluetooth

Postby pravi.khm@gmail.com » Wed Apr 03, 2019 6:04 am

Sorry for the delayed response.
I am able to upload blinking LED sketch and other basic sketches which works nice. When I upload bluetooth, WiFi and RGB LED (adafruit neopixel sketch), it shows above errors.

idahowalker
Posts: 166
Joined: Wed Aug 01, 2018 12:06 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby idahowalker » Wed Apr 03, 2019 3:55 pm

pravi.khm@gmail.com wrote:
Wed Apr 03, 2019 6:04 am
adafruit
The magic word. I find many, not all, Adafruit libraries will cause the ESP32 to fault in some form or fashion.
Have you tried disabling all libraries and then one at a time, reenable each library one at a time to find the fault. I'd start with Adafruit first.

dovoto
Posts: 27
Joined: Tue Apr 20, 2021 3:51 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby dovoto » Tue Apr 20, 2021 3:53 pm

Having the exact same issue. Happens regardless of how I try to enable bluetooth (Bluetooth serial, esp ble libs). Using platform io + Arduino. Anyone find any smoking guns on this?

dovoto
Posts: 27
Joined: Tue Apr 20, 2021 3:51 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby dovoto » Tue Apr 20, 2021 4:48 pm

Okay, I figured out my issue. Bluetooth added a lot to the binary file size and I only had my partition set to 2M which was a few KB too small. Adjusting the partition size fixed this issue for me.

Ventran
Posts: 2
Joined: Tue Nov 14, 2023 5:07 pm

Re: Continuous reboot on WiFi and Bluetooth

Postby Ventran » Tue Nov 14, 2023 5:12 pm

I had a similar problem with the ESP32-S3-DevKitC-1-N8R2 module. A good quality power supply with 10uF+100nF decoupling capacitors solved the problem. Be sure to place the decoupling capacitors as close as possible to the input pins of the ESP32 power supply. In my case, I use an external power supply, so I placed the capacitor between the 5Vin and GND pins.

These decaopuling capacitors are higli recomended becouse radio module in ESP32 need more power during Init and TX/RX states.

Who is online

Users browsing this forum: No registered users and 61 guests