-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Status: Selected for DevelopmentIssue is selected for developmentIssue is selected for development
Description
I'm trying to use the 25_ota example. Unfortunately the applications crashes right after making the http request to the webserver.
So here is the last uart output from the esp32:
I (7404) ota: Connect to Wifi ! Start to Connect to Server....
I (7404) ota: Server IP: 10.0.255.105 Server Port:8070
I (7414) ota: Connected to server
I (7414) ota: Connected to http server
I (7414) ota: Send GET request to server succeeded
I (7424) ota: esp_ota_begin init OK
I (7424) ota: OTA Init succeeded
I (7424) ota: OTA Write Header format Check OK. first byte is e9 ,second byte is 09
abort() was called at PC 0x400d2476
Guru Meditation Error: Core 1 panic'ed (abort)
Backtrace: 0x40084311:0x3ffce040 0x40083f94:0x3ffce060 0x40082451:0x3ffce080 0x40081cdc:0x3ffce0a0 0x4010235e:0x3ffce0f0 0x401070b6:0x3ffce110 0x40105e8e:0x3ffce130 0x401062b4:0x3ffce160
And here is the core dump:
python2 ~/esp/esp-idf/components/espcoredump/espcoredump.py -p /dev/ttyUSB0 --chip esp32 info_corefile build/ota.elf
espcoredump.py v0.1-dev
esptool.py v2.0-dev
Connecting...
Uploading stub...
Running stub...
Stub running...
16 (100 %)
16 (100 %)
Read 16 bytes at 0x110000 in 0.0 seconds (14.2 kbit/s)...
Hard resetting...
esptool.py v2.0-dev
Connecting...
Uploading stub...
Running stub...
Stub running...
7396 (100 %)
7396 (100 %)
Read 7396 bytes at 0x110000 in 0.7 seconds (86.5 kbit/s)...
Hard resetting...
===============================================================
==================== ESP32 CORE DUMP START ====================
================== CURRENT THREAD REGISTERS ===================
pc 0x40084311 0x40084311 <xTaskResumeAll+393>
lbeg 0x0 0
lend 0x0 0
lcount 0x0 0
sar 0x5 5
ps 0x60d26 396582
threadptr <unavailable>
br <unavailable>
scompare1 <unavailable>
acclo <unavailable>
acchi <unavailable>
m0 <unavailable>
m1 <unavailable>
m2 <unavailable>
m3 <unavailable>
expstate <unavailable>
f64r_lo <unavailable>
f64r_hi <unavailable>
f64s <unavailable>
fcr <unavailable>
fsr <unavailable>
a0 0x40083f94 1074282388
a1 0x3ffcdff0 1073537008
a2 0x0 0
a3 0x0 0
a4 0x3ffb9088 1073451144
a5 0x0 0
a6 0x0 0
a7 0x1 1
a8 0x3ffb2454 1073423444
a9 0x1 1
a10 0x24 36
a11 0x24 36
a12 0x8 8
a13 0xffffffff -1
a14 0x0 0
a15 0xffffffff -1
==================== CURRENT THREAD STACK =====================
#0 xTaskResumeAll () at /home/torben/esp/esp-idf/components/freertos/./tasks.c:2204
#1 0x40083f94 in prvIdleTask (pvParameters=0x1) at /home/torben/esp/esp-idf/components/freertos/./tasks.c:3305
#2 0x40082451 in spi_flash_enable_interrupts_caches_and_other_cpu () at /home/torben/esp/esp-idf/components/spi_flash/./cache_utils.c:141
#3 0x40081d1d in spi_flash_guard_end () at /home/torben/esp/esp-idf/components/spi_flash/./flash_ops.c:115
#4 spi_flash_write (dst=1180485, srcv=0x3ffb6318 <ota_write_data>, size=<optimized out>) at /home/torben/esp/esp-idf/components/spi_flash/./flash_ops.c:228
#5 0x4010235e in esp_partition_write (partition=0x3ffb9fb4, dst_offset=<optimized out>, src=0x3ffb6318 <ota_write_data>, size=1024) at /home/torben/esp/esp-idf/components/spi_flash/./partition.c:247
#6 0x401070b6 in esp_ota_write (handle=<optimized out>, data=0x3ffb6318 <ota_write_data>, size=1024) at /home/torben/esp/esp-idf/components/app_update/./esp_ota_ops.c:122
#7 0x401062d9 in main_task (pvParameter=<optimized out>) at /home/torben/esp/esp-idf/examples/25_ota/main/./ota.c:283
======================== THREADS INFO =========================
Id Target Id Frame
11 process 10 0x40082dfb in xQueueGenericReceive (xQueue=0x3ffb34c0, pvBuffer=0x3f403fd4, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
10 process 9 0x40082dfb in xQueueGenericReceive (xQueue=0x3ffb195c <g_intr_lock_mux>, pvBuffer=0x3ffb7228 <xphyQueue>, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
9 process 8 0x40082dfb in xQueueGenericReceive (xQueue=0x1, pvBuffer=0x400822f8 <spi_flash_op_block_func>, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
8 process 7 0x40082dfb in xQueueGenericReceive (xQueue=0x0, pvBuffer=0x400822f8 <spi_flash_op_block_func>, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
7 process 6 0x40082dfb in xQueueGenericReceive (xQueue=0x0, pvBuffer=0x0, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
6 process 5 0x40082dfb in xQueueGenericReceive (xQueue=0x3ffb682c, pvBuffer=0x3ffb6789, xTicksToWait=<unavailable>, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
5 process 4 0x40084c8e in prvProcessTimerOrBlockTask (xNextExpireTime=<optimized out>, xListWasEmpty=<optimized out>) at /home/torben/esp/esp-idf/components/freertos/./timers.c:487
4 process 3 0x40082dfb in xQueueGenericReceive (xQueue=0x3ffb567c <mbox>, pvBuffer=0x3ffbc530, xTicksToWait=2148464477, xJustPeeking=0) at /home/torben/esp/esp-idf/components/freertos/./queue.c:1594
3 process 2 0x400d1dc8 in esp_vApplicationIdleHook () at /home/torben/esp/esp-idf/components/esp32/./freertos_hooks.c:52
2 process 1 0x400d1dc8 in esp_vApplicationIdleHook () at /home/torben/esp/esp-idf/components/esp32/./freertos_hooks.c:52
* 1 <main task> xTaskResumeAll () at /home/torben/esp/esp-idf/components/freertos/./tasks.c:2204
======================= ALL MEMORY REGIONS ========================
Name Address Size Attrs
.rtc.text 0x400c0000 0x0 RW
.iram0.vectors 0x40080000 0x400 R XA
.iram0.text 0x40080400 0x1c644 R XA
.dram0.data 0x3ffb0000 0x2428 RW A
.flash.rodata 0x3f400010 0x9450 RW A
.flash.text 0x400d0018 0x3bc64 R XA
.coredump.tasks 0x3ffce174 0x164 RW
.coredump.tasks 0x3ffcdf30 0x238 RW
.coredump.tasks 0x3ffbacc8 0x164 RW
.coredump.tasks 0x3ffb9900 0x168 RW
.coredump.tasks 0x3ffbb37c 0x164 RW
.coredump.tasks 0x3ffbb210 0x160 RW
.coredump.tasks 0x3ffbc5d4 0x164 RW
.coredump.tasks 0x3ffbc480 0x148 RW
.coredump.tasks 0x3ffbbb24 0x164 RW
.coredump.tasks 0x3ffbba30 0xe8 RW
.coredump.tasks 0x3ffbe15c 0x164 RW
.coredump.tasks 0x3ffbe060 0xf0 RW
.coredump.tasks 0x3ffbd678 0x164 RW
.coredump.tasks 0x3ffbd550 0x11c RW
.coredump.tasks 0x3ffb87cc 0x164 RW
.coredump.tasks 0x3ffb86e0 0xe0 RW
.coredump.tasks 0x3ffb8ed4 0x164 RW
.coredump.tasks 0x3ffb8de0 0xe8 RW
.coredump.tasks 0x3ffcb04c 0x164 RW
.coredump.tasks 0x3ffcaf40 0x100 RW
.coredump.tasks 0x3ffcbaa8 0x164 RW
.coredump.tasks 0x3ffcb9a0 0xfc RW
===================== ESP32 CORE DUMP END =====================
===============================================================
Done!
To me it seems like there is a problem trying to write to the flash.
Metadata
Metadata
Assignees
Labels
Status: Selected for DevelopmentIssue is selected for developmentIssue is selected for development