SW_RESET continuous reboot

AlfAlf
Posts: 1
Joined: Sat Jul 13, 2019 5:40 pm

SW_RESET continuous reboot

Postby AlfAlf » Sat Jul 13, 2019 6:52 pm

  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.  
Attachments
esp32_after_loading_code.txt
Continuous reboot. This shows at the serial interface
(1.08 KiB) Downloaded 1468 times
esp32_when_new.txt
Info the ES32 displays on serial interface when out of the box
(3.8 KiB) Downloaded 1226 times

tubbsaka
Posts: 1
Joined: Thu Jul 18, 2019 4:07 am

Re: SW_RESET continuous reboot

Postby tubbsaka » Thu Jul 18, 2019 4:14 am

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...

ESP_Sprite
Posts: 9703
Joined: Thu Nov 26, 2015 4:08 am

Re: SW_RESET continuous reboot

Postby ESP_Sprite » Thu Jul 18, 2019 6:24 am

Hard to say... does the module still do this if you supply it with an external 3.3V source?

rudals
Posts: 1
Joined: Sat Aug 17, 2019 12:58 am

Re: SW_RESET continuous reboot

Postby rudals » Sat Aug 17, 2019 1:06 am

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

ESP_Sprite
Posts: 9703
Joined: Thu Nov 26, 2015 4:08 am

Re: SW_RESET continuous reboot

Postby ESP_Sprite » Mon Aug 19, 2019 2:52 am

What board do you use? What did you flash to the ESP32, and how? What power supply and cables are you using?

jmasdeu
Posts: 1
Joined: Mon Aug 19, 2019 6:04 pm

Re: SW_RESET continuous reboot

Postby jmasdeu » Mon Aug 19, 2019 6:21 pm

i have the same thing.. it is driving me nuts !
Any clue before they send me to an institution....
Regards

ESP_Sprite
Posts: 9703
Joined: Thu Nov 26, 2015 4:08 am

Re: SW_RESET continuous reboot

Postby ESP_Sprite » Tue Aug 20, 2019 12:19 pm

jmasdeu: What board do you use? What did you flash to the ESP32, and how? What power supply and cables are you using?

ssacp148
Posts: 9
Joined: Sun Aug 25, 2019 9:21 pm

Re: SW_RESET continuous reboot

Postby ssacp148 » Sun Aug 25, 2019 9:44 pm

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.

chegewara
Posts: 2358
Joined: Wed Jun 14, 2017 9:00 pm

Re: SW_RESET continuous reboot

Postby chegewara » Mon Aug 26, 2019 12:20 pm

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.

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: SW_RESET continuous reboot

Postby rudi ;-) » Mon Aug 26, 2019 6:21 pm

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 ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Google [Bot] and 35 guests