Page 1 of 1

ESP32-pico-d4 reboot loop

Posted: Wed May 25, 2022 8:00 am
by jblazeg
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

Re: ESP32-pico-d4 reboot loop

Posted: Thu May 26, 2022 3:10 am
by ESP_Sprite

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.

Re: ESP32-pico-d4 reboot loop

Posted: Mon May 30, 2022 5:36 am
by jblazeg
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

Re: ESP32-pico-d4 reboot loop

Posted: Mon May 30, 2022 7:09 am
by ESP_Sprite
Does it still do that when you remove the pinMode line? Also, what hardware are you using; do you have a schematic or picture?