espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.48k stars 7.25k forks source link

restful_server crashing (IDFGH-13816) #14669

Open pavel808 opened 3 days ago

pavel808 commented 3 days ago

Answers checklist.

General issue report

I am trying to get the protocols/http_server/restful_server example running on an ESP32-S3 on the Thread Border Router device. It keeps crashing as below. Is it an issue of not having enough flash memory on that device, or something else?

I (26) boot: ESP-IDF v5.2.1-dirty 2nd stage bootloader
I (26) boot: compile time Oct  4 2024 13:39:56
I (26) boot: Multicore bootloader
I (30) boot: chip revision: v0.2
I (34) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode       : DIO
I (43) boot.esp32s3: SPI Flash Size : 4MB
I (48) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (64) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (71) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  2 factory          factory app      00 00 00010000 00100000
I (86) boot:  3 www              Unknown data     01 82 00110000 00200000
I (94) boot: End of partition table
I (98) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=2628ch (156300) map
I (135) esp_image: segment 1: paddr=000362b4 vaddr=3fc97e00 size=04650h ( 18000) load
I (139) esp_image: segment 2: paddr=0003a90c vaddr=40374000 size=0570ch ( 22284) load
I (145) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=99560h (628064) map
I (261) esp_image: segment 4: paddr=000d9588 vaddr=4037970c size=0e5ech ( 58860) load
I (283) boot: Loaded app from partition at offset 0x10000
I (283) boot: Disabling RNG early entropy source...
I (295) cpu_start: Multicore app
I (305) cpu_start: Pro cpu start user code
I (305) cpu_start: cpu freq: 160000000 Hz
I (305) cpu_start: Application information:
I (308) cpu_start: Project name:     restful_server
I (313) cpu_start: App version:      v5.4-dev-3201-g46acfdce96-dirty
I (320) cpu_start: Compile time:     Oct  4 2024 13:39:54
I (326) cpu_start: ELF file SHA256:  fee019d60...
I (332) cpu_start: ESP-IDF:          v5.2.1-dirty
I (337) cpu_start: Min chip rev:     v0.0
I (342) cpu_start: Max chip rev:     v0.99 
I (347) cpu_start: Chip rev:         v0.2
I (351) heap_init: Initializing. RAM available for dynamic allocation:
I (359) heap_init: At 3FCA0678 len 00049098 (292 KiB): RAM
I (365) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (371) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (377) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (384) spi_flash: detected chip: gd
I (387) spi_flash: flash io: dio
W (391) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (405) sleep: Configure to isolate all GPIO pins in sleep state
I (411) sleep: Enable automatic switching of GPIO sleep configuration
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x42009dfc
file: "/IDF-new/examples/protocols/http_server/restful_server/main/esp_rest_main.c" line 136
func: app_main
expression: init_fs()
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xb (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375984
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x178c
load:0x403c9700,len:0x4
load:0x403c9704,len:0xcbc
load:0x403cc700,len:0x2da0
entry 0x403c9914
chegewara commented 3 days ago

Did you check if sd card is connected in 4 line mode and the pins are correct?