SW_RESET continuous reboot

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

Re: SW_RESET continuous reboot

Postby ssacp148 » Tue Aug 27, 2019 11:31 am

rudi ;-) wrote:
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 ;-)
Hi rudi thanks for the reply,

esptool.py erase_flash command does seem to correctly erase the flash, since it then starts showing:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
But uploading the minimal "Hello World" sketch keeps showing the same behavior as before:

Code: Select all

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
ets Jun  8 2016 00:22:57
The last SW_RESET message gets repeated over and over.

dimatrix
Posts: 1
Joined: Fri Aug 30, 2019 8:24 am

Re: SW_RESET continuous reboot

Postby dimatrix » Fri Aug 30, 2019 8:39 am

ssacp148 wrote:
Tue Aug 27, 2019 11:31 am

esptool.py erase_flash command does seem to correctly erase the flash, since it then starts showing:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
But uploading the minimal "Hello World" sketch keeps showing the same behavior as before:

Code: Select all

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
ets Jun  8 2016 00:22:57
The last SW_RESET message gets repeated over and over.

I had the same problem. Try to set Flash Frequency to 80 MHz if you use Arduino IDE, or add parameter board_build.f_flash = 80000000L in platformio.ini if you use PlatformIO. It helped me.

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

Re: SW_RESET continuous reboot

Postby ssacp148 » Wed Sep 04, 2019 7:12 pm

dimatrix wrote:
Fri Aug 30, 2019 8:39 am
ssacp148 wrote:
Tue Aug 27, 2019 11:31 am

esptool.py erase_flash command does seem to correctly erase the flash, since it then starts showing:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
But uploading the minimal "Hello World" sketch keeps showing the same behavior as before:

Code: Select all

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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
ets Jun  8 2016 00:22:57
The last SW_RESET message gets repeated over and over.

I had the same problem. Try to set Flash Frequency to 80 MHz if you use Arduino IDE, or add parameter board_build.f_flash = 80000000L in platformio.ini if you use PlatformIO. It helped me.
Unfortunately that doesn't fix it. It seems that the 2 boards I received both happen to be faulty in some way, another board from the same vendor worked just fine.
It must have something to do with the way the EN/BOOT switches are hooked up because with the two faulty ones I do not have to press anything to program the flash and with the new board I just received (supposed to be the exact same PCB) I have to press BOOT and EN manually to enter the programming mode.

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

Re: SW_RESET continuous reboot

Postby rudi ;-) » Thu Sep 05, 2019 11:39 am

hi guys

try this:

de connect the board from usb
hold the bootloader key pressed
connect the board to usb
open the flash programmer
try to flash
after flash release the bootloader button

i have here a "hanging" CP2301 on a board
also there can be, that reset IC's not work right on several boards
i have more problems on windows machine with usb serial
on linux only there are little problems.

can you try with reconnect usb and hold bootloader button
that the board comes in first step to download mode by self on connect to usb?

best wishes
rudi ;-)

edit : only typo
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

nabeshin
Posts: 2
Joined: Wed Sep 11, 2019 3:07 pm

Re: SW_RESET continuous reboot

Postby nabeshin » Wed Sep 11, 2019 3:22 pm

Hi guys,

I got fixed.

try this latest development release;

Arduino core for ESP32
https://github.com/espressif/arduino-es ... /1.0.3-rc3

------
I had same problem.
1. There is no problem on ESP-IDF.
2. I had this reboot problem only using Arduino IDE.
> rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Arduino core for ESP32
- At this point (2019/09/11), Latest Stable release version is v1.0.2
- We need v1.0.3 (Latest development release)

Now I got run Blink code on Arduino IDE.

Have a nice day!!

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

Re: SW_RESET continuous reboot

Postby ssacp148 » Mon Sep 16, 2019 2:54 pm

nabeshin wrote:
Wed Sep 11, 2019 3:22 pm
Hi guys,

I got fixed.

try this latest development release;

Arduino core for ESP32
https://github.com/espressif/arduino-es ... /1.0.3-rc3

------
I had same problem.
1. There is no problem on ESP-IDF.
2. I had this reboot problem only using Arduino IDE.
> rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Arduino core for ESP32
- At this point (2019/09/11), Latest Stable release version is v1.0.2
- We need v1.0.3 (Latest development release)

Now I got run Blink code on Arduino IDE.

Have a nice day!!

This worked! Thanks so much! Upgrading to the latest 1.0.3 version of arduino-esp32 worked.
Anyone know what the actual fix was? Unfortunately it doesn't seem to be so easy to update the arduino core version to 1.0.3 in PlatformIO for ESP32.

nabeshin
Posts: 2
Joined: Wed Sep 11, 2019 3:07 pm

Re: SW_RESET continuous reboot

Postby nabeshin » Thu Sep 19, 2019 2:28 pm

Hi, this is the reason and fixed by this issue.

https://github.com/espressif/arduino-esp32/pull/3135
Add support for 160MHz rated CPUs:
Some ESP32 chips are rated only to 160MHz. This change adds support for them and does not allow frequency to be switched to 240MHz

And ESP32 chip Series data sheet says,

https://www.espressif.com/sites/default ... eet_en.pdf
Among the ESP32 series of SoCs, ESP32-D0WDQ6 and ESP32-D0WD have a maximum CPU frequency of 240 MHz, ESP32-D2WD and ESP32-S0WD have a maximum CPU frequency of 160 MHz.

So, maybe We have ESP32-D2WD or ESP32-S0WD.
These are new one, but down graded (I don't know about details...).

And now Arduino IDE has supported this as a stable version v1.0.3.

Who is online

Users browsing this forum: No registered users and 8 guests