Problem flashing -- Sketch uploads fine, but won't run due to "(POWERON_RESET)"

Munque
Posts: 25
Joined: Mon Feb 10, 2020 11:38 pm

Problem flashing -- Sketch uploads fine, but won't run due to "(POWERON_RESET)"

Postby Munque » Tue Mar 31, 2020 5:43 pm

Suddenly unable to run any sketches after flashing.

Tech details:
MacOS 10.15.4 running Arduino 1.8.12 using a USB/TTL cable to connect.
I've tested this using multiple USB/TTL cables, multiple ESP32 boards, and multiple sketches. Always the same result after the flash completes.

Sketches upload without any problem, but instead of running I get the following output in the Arduino Serial Monitor:

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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
I've seen a number of forum postings showing a similar issues, but so far none of the suggested solutions helped.

Munque
Posts: 25
Joined: Mon Feb 10, 2020 11:38 pm

Re: Problem flashing -- Sketch uploads fine, but won't run due to "(POWERON_RESET)"

Postby Munque » Tue Mar 31, 2020 6:56 pm

Answering my own question here:

The problem had to do with the baud rate:
A line in the Arduino code

Code: Select all

Serial.begin(9600);
didn't match the baud rate of the Arduino IDE Serial Monitor (set to 115200).

Making sure the two matched, either at 9600 or 115200 baud solved the problem.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 103 guests