Page 1 of 5

SW_RESET continuous reboot

Posted: Sat Jul 13, 2019 6:52 pm
by AlfAlf
  1. Hi,  
  2. I have two ESP32 DEVKIT V1.  One has been runnig well since I purchased it.  The second one, that I just got in the mail, keeps rebooting even if I load the same code and all the same.  Even with empty code, keeps rebooting.
  3.  
  4. Here a copy of the serial interface:
  5. rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  6. configsip: 0, SPIWP:0xee
  7. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  8. mode:DIO, clock div:1
  9. load:0x3fff0018,len:4
  10. load:0x3fff001c,len:1100
  11. load:0x40078000,len:9232
  12. load:0x40080400,len:6400
  13. entry 0x400806a8
  14. ets Jun  8 2016 00:22:57
  15.  
  16. It repeats forever.  I'm programming with Arduino IDE.  I do the same in both ESP32's, one runs fine, the other continuously resets.
  17. On my second purchase, I bought 5 esp32.  When first plugged, they list all parameters on the Serial interface, and no rebooting.  Once I load a program with the Arduino IDE, they enter the continuous reboot regardless of the code uploaded. All the ones from the second purchase do the same. Different manufacturer; one has a black on the back side and the other is white, both ESP32 DEVKITV1
  18.  
  19. Your help will be much appreciated.
  20.  
  21.  

Re: SW_RESET continuous reboot

Posted: Thu Jul 18, 2019 4:14 am
by tubbsaka
Hi!

I have exactly the same problem with my first ESP32 Devkit (Black backside)
I then bought another board (white backside) to verify that im not the fool here, which i was not.

I wasn't able to trace the issue further down, did you?

Just guessing this is not a common issue given the few information on the internet on this topic...

Re: SW_RESET continuous reboot

Posted: Thu Jul 18, 2019 6:24 am
by ESP_Sprite
Hard to say... does the module still do this if you supply it with an external 3.3V source?

Re: SW_RESET continuous reboot

Posted: Sat Aug 17, 2019 1:06 am
by rudals
I have exactly same problem. Did you solve this problem?
I try to test external 3.3V power with FTDI serial board. but the result is the same with old.

rst:0x3 (SW_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:9232
load:0x40080400,len:6400
entry 0x400806a8
ets Jun 8 2016 00:22:57

rst:0x3 (SW_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:9232
load:0x40080400,len:6400
entry 0x400806a8
ets Jun 8 2016 00:22:57

rst:0x3 (SW_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:9232
load:0x40080400,len:6400
entry 0x400806a8
ets Jun 8 2016 00:22:57

Re: SW_RESET continuous reboot

Posted: Mon Aug 19, 2019 2:52 am
by ESP_Sprite
What board do you use? What did you flash to the ESP32, and how? What power supply and cables are you using?

Re: SW_RESET continuous reboot

Posted: Mon Aug 19, 2019 6:21 pm
by jmasdeu
i have the same thing.. it is driving me nuts !
Any clue before they send me to an institution....
Regards

Re: SW_RESET continuous reboot

Posted: Tue Aug 20, 2019 12:19 pm
by ESP_Sprite
jmasdeu: What board do you use? What did you flash to the ESP32, and how? What power supply and cables are you using?

Re: SW_RESET continuous reboot

Posted: Sun Aug 25, 2019 9:44 pm
by ssacp148
I’m experiencing the exact same problems as posted by Alfalf in the opening post.
They are (I guess) some kind of NodeMCU clones and have an EN button and a BOOT button that seem to work fine. Perhaps worst mentioning that entering uploading mode doesn’t require me to press any buttons.

Code: Select all

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println(“Hello World!”);
  delay(1000);
}
I have tried uploading the sketch above using both PlatformIO in VSCode and the original Arduino software and tested numerous upload settings: 40Mhz flash speed, different upload baudrates and flash modes (DIO, DOUT, QIO, QOUT)
But it just doesn’t work and the ESP32 just keeps resetting spewing out the same messages as in Alfalf’s post. Also tried with different cables and power supplies, another ESP32 dev board from a different supplier works just fine!

I don’t believe they are completely unsalvageable though since as mentioned by Alfalf when connecting a dev. board they I haven’t uploaded anything to it shows the 2nd stage bootloader is running, which I assume means the esp32 was at least able to read from flash before I started uploading my own code.

Re: SW_RESET continuous reboot

Posted: Mon Aug 26, 2019 12:20 pm
by chegewara
Recently i got the same or similar logs as @rudals. In my case it was binary which size exceeded factory partition size and disabled logging.

Re: SW_RESET continuous reboot

Posted: Mon Aug 26, 2019 6:21 pm
by rudi ;-)
hi guys

make a full flash erase
windows tool : (erase),
esptool: erase_flash

and then flash it again with arduino ide or like you want.
do not forget to config in arduino the partion option.

i get this in the past if i come from esp-idf to arduino or arduino to esp-idf
if you use different settings in the menuconfig from each in the bin file
then this happens time to time -

also there can be a wrong setup in the spi clk also in the spi mode
or set a bit / old key data format ...
so - clean the flash and it should go on.

best wishes
rudi ;-)