espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.63k stars 7.41k forks source link

ESP32 encounter failures when launching. #9550

Closed ICheng-Chou closed 6 months ago

ICheng-Chou commented 6 months ago

Board

u-blox NINA-W10 series (ESP32)

Device Description

no

Hardware Configuration

no

Version

v2.0.14

IDE Name

Arduino IDE, VS code

Operating System

Windows 10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

I am using a very simple code, but I often encounter failures when launching the program. I'm currently using the NINA-W106B module with an ESP32-D0WD-v3 chip. I've tried burning the same code with VS Code using idf version 4.2.2, and I don't experience this issue. I suspect there might be a problem with the Arduino IDE plugin. Can anyone assist me?

Sketch

void setup() {
  Serial.begin(115200);
  Serial.println("Setup done.");
}

void loop() {
  delay(500);
  Serial.println("Running...");
}

Debug Message

rst:0x1 (POWERON_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
Setup done.
Running...
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
ets Jul 29 2019 12:21:46

rst:0x3 (SW_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008b0fc,len:2097418660
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097218720
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x00080000,len:2708
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008b0fc,len:2097418660
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:9864
load:0x1c002080,len:2130168
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x00080000,len:2708
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:9864
load:0x18002080,len:2130168
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x00080000,len:2708
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0fc,len:2097152164
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0fc,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x00080000,len:2708
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008e0f8,len:2098283696
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008e0f8,len:2098283696
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008a0f8,len:2097152160
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40038000,len:8840
load:0x0008b0fc,len:2097418660
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x00080400,len:2772
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
1150 mmu set 00090000, pos 00090000
1150 mmu set 000a0000, pos 000a0000
1150 mmu set 000b0000, pos 000b0000
1150 mmu set 000c0000, pos 000c0000
1150 mmu set 000d0000, pos 000d0000
1150 mmu set 000e0000, pos 000e0000
1150 mmu set 000f0000, pos 000f0000
1150 mmu set 00100000, pos 00100000
1150 mmu set 00110000, pos 00110000
1150 mmu set 00120000, pos 00120000
1150 mmu set 00130000, pos 00130000
1150 mmu set 00140000, pos 00140000
1150 mmu set 00150000, pos 00150000
1150 mmu set 00160000, pos 00160000
1150 mmu set 00170000, pos 00170000
1150 mmu set 00180000, pos 00180000
1150 mmu set 00190000, pos 00190000
1150 mmu set 001a0000, pos 001a0000
1150 mmu set 001b0000, pos 001b0000
1150 mmu set 001c0000, pos 001c0000
1150 mmu set 001d0000, pos 001d0000
1150 mmu set 001e0000, pos 001e0000
1150 mmu set 001f0000, pos 001f0000
1150ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x50038000,len:4204185
1150 mmu set 00010000, pos 00010000
1150 mmu set 00020000, pos 00020000
1150 mmu set 00030000, pos 00030000
1150 mmu set 00040000, pos 00040000
1150 mmu set 00050000, pos 00050000
1150 mmu set 00060000, pos 00060000
1150 mmu set 00070000, pos 00070000
1150 mmu set 00080000, pos 00080000
ets Jul 29 2019 12:21:46

rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (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:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
Setup done.
Running...
Running...
Running...

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

me-no-dev commented 6 months ago

This looks like a power issue. Can you try with another cable?

ICheng-Chou commented 6 months ago

Thank you for your reply. I have conducted a cross-check to confirm the usability of the cable:

I used the same cable and programming using VS Code without encountering any boot failure. I changed the cable and still encountered a boot failure when programming with Arduino. Therefore, I conclude that the issue is not with the cable.

me-no-dev commented 6 months ago

That is really strange, because the first reboot in your logs is POWERON_RESET followed by SW_RESET and followed by a lot of TG0WDT_SYS_RESET which points to bootloop caused by probably power, from which the chip goes crazy and loops a lot more with fails long before the firmware is even booted. What you use to compile and flash should not matter.

Just in case... can you try with 3.0.0-RC1?

kapyaar commented 6 months ago

I have seen something along this line. Not sure if it applies to you. With some digging, I came across some references to a bug in the ESP chip. See page 5, bug list item 3.4. https://content.instructables.com/FJP/KTEU/J5WQBOV7/FJPKTEUJ5WQBOV7.pdf

It turned out the version I had was affected. For which I tried disabling the brown out when the board boots up, and after the main tasks are done, re enable it.

#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"

setup(){
uint32_t brown_reg_temp = READ_PERI_REG(RTC_CNTL_BROWN_OUT_REG);  //save WatchDog register
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);                        //disable brownout detector. Enable after wifi is connected.
....setup things......
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, brown_reg_temp);  //enable brownout detector.
}

Again, worth a try if you are not making progress. I had better results with this approach, though I may very well be putting bandaid on something deeper.

ICheng-Chou commented 6 months ago

Thank you both for your responses, I've found the root of the problem! The main frequency of the ESP32 only supports 26MHz and 40MHz, but I was using 80 MHz with Arduino. After switching to 40MHz, the problem no longer occurs.

https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/windows-setup.html

image