ESP32-pico-d4 reboot loop

jblazeg
Posts: 3
Joined: Wed May 25, 2022 7:55 am

ESP32-pico-d4 reboot loop

Postby jblazeg » Wed May 25, 2022 8:00 am

Hi,

I try to run a simple example of code on a ESP32 but i runs into a bootloop:

Code: Select all

st:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:12812
load:0xffffffff,len:-1
ets Jun  8 2016 00:22:57
I use arduino 1.8.3

Simple program:

Code: Select all

void setup() {
  Serial.begin(115200);while(!Serial)
  pinMode(22,OUTPUT);

  Serial.print("done");
}

void loop() {
  Serial.print(".");
  delay(250);

}
Seems like the device cannot read the address and length of IRAM:
Segment 1: len 0x0044c load 0x3fff0030 file_offs 0x00000018 [BYTE_ACCESSIBLE,DRAM,DIRAM_DRAM]
Segment 2: len 0x03014 load 0x40078000 file_offs 0x0000046c [CACHE_APP]
Segment 3: len 0x00c04 load 0x40080400 file_offs 0x00003488 [IRAM]

GPIO6, 7, 8, 11, 16, 17 are unused as well as MTDO and MTDI

Any help would be highly appreciated.

Cheers
JB

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

Re: ESP32-pico-d4 reboot loop

Postby ESP_Sprite » Thu May 26, 2022 3:10 am

Code: Select all

while(!Serial)
That doesn't sound right... aside from its use not immediately being obvious, it also takes the pinMode line into the while loop as there's no semicolon at the end.

jblazeg
Posts: 3
Joined: Wed May 25, 2022 7:55 am

Re: ESP32-pico-d4 reboot loop

Postby jblazeg » Mon May 30, 2022 5:36 am

Yeah tah was too obvious, sorry!

I changed the program code:
void setup() {
Serial.begin(115200);while(!Serial){}
pinMode(22,OUTPUT);

Serial.print("done");
}

void loop() {
Serial.print(".");
delay(250);

}
Now I get:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:12812
load:0xffffffff,len:-1
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x7 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
and it's stuck

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

Re: ESP32-pico-d4 reboot loop

Postby ESP_Sprite » Mon May 30, 2022 7:09 am

Does it still do that when you remove the pinMode line? Also, what hardware are you using; do you have a schematic or picture?

Who is online

Users browsing this forum: No registered users and 59 guests