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

tonys_0
Posts: 3
Joined: Tue Oct 15, 2019 2:08 am

Re: SW_RESET continuous reboot

Postby tonys_0 » Tue Oct 15, 2019 2:13 am

Did anyone try to follow the previous advice?
Did it solve the problem?

tonys_0
Posts: 3
Joined: Tue Oct 15, 2019 2:08 am

Re: SW_RESET continuous reboot

Postby tonys_0 » Tue Oct 15, 2019 2:51 am

Just to be safe the message came here...

This actually helped me to solve the problem with continuous reboot.

In Arduino IDE: click Tools, Board, Board Manager.
After the dialog is loaded type ESP32 and look for:
esp32 by Espressif Systems ...
if it is installed
Press Update button (in my case to version 1.0.4)
if it is not installed, I can not see how you got here to find the continuous reboot problem.
But do not worry, just press Install button.

Try this before you go for 160MHz CPU frequency, 40MHz flash, DIO flash mode, PSRAM disabled etc.
not to mention the resistor and capacitor on EN input.

azz-zza
Posts: 45
Joined: Tue Sep 17, 2019 2:58 am

Re: SW_RESET continuous reboot

Postby azz-zza » Fri Dec 27, 2019 5:02 am

ssacp148 wrote:
Mon Sep 16, 2019 2:54 pm


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.
Hello,
im getting same message ("setcpufrequency cannot switch to 240 Mhz chip cpu rated for 160Mhz") on this new board that i just got.
the platform seemed to have updated:

Code: Select all


~/.platformio/penv/bin/pio platform update espressif32

Platform espressif32
--------
Updating espressif32                     @ 1.11.1         [Up-to-date]
Updating tool-esptoolpy                  @ 1.20600.0      [Up-to-date]
Updating toolchain-xtensa32              @ 2.50200.80     [Up-to-date]
Updating [b]framework-arduinoespressif32    @ 2.10004.191002 [/b][Up-to-date]
Updating framework-espidf                @ 3.30300.190916 [Up-to-date]
Updating tool-mkspiffs                   @ 2.230.0        [Up-to-date]
and

Code: Select all

~/.platformio/penv/bin/pio platform show espressif32
espressif32 ~ Espressif 32
==========================
Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications.

Version: 1.11.1
Home: http://platformio.org/platforms/espressif32
Repository: https://github.com/platformio/platform-espressif32.git
Vendor: https://espressif.com/
License: Apache-2.0
Frameworks: arduino, espidf, pumbaa, simba

Package framework-arduinoespressif32
------------------------------------
Type: framework
Requirements: ~2.10004.191002
Installed: Yes
Version: 2.10004.191002
Original version: 1.0.4
Description: Arduino Wiring-based Framework (ESP32 Core)

Package framework-pumbaa
------------------------
Type: framework
Requirements: >=2.3.0
Installed: No (optional)

Package framework-espidf
------------------------
Type: framework
Requirements: ~3.30300.0
Installed: Yes
Version: 3.30300.190916
Original version: 3.3.0
Description: Espressif IoT Development Framework with the ESP32

looks like i'm hitting https://github.com/espressif/arduino-esp32/issues/3350 - based on the error message. but not sure how do i get the code to run ....

am i not looking correctly at this ?

Who is online

Users browsing this forum: Bing [Bot] and 156 guests