Crash when using Wifi and NIMBLE simultaneously

iosixllc
Posts: 71
Joined: Fri Mar 17, 2017 12:13 am

Crash when using Wifi and NIMBLE simultaneously

Postby iosixllc » Tue May 26, 2020 6:01 pm

I'm testing with v4.1, although this problem is evident in v4.0 and v4.1-beta1. I tried master last night but couldn't compile.

If I initialize wifi and then call esp_nimble_hci_and_controller_init() I get an abort. If I initialize NIMBLE and then call esp_wifi_start() I get an abort as well. I've pulled the trace but the stack is corrupted:

abort() was called at PC 0x40145cf6 on core 0

ELF file SHA256: d317c8ebdcf70f46

Backtrace: 0x4008cb34:0x3ffe7250 0x4008ce51:0x3ffe7270 0x40145cf6:0x3ffe7290 0x400d4c18:0x3ffe72b0 0x400d4da4:0x3ffe72e0 0x40151d74:0x3ffe7310 0x40151e3d:0x3ffe7330 0x401520db:0x3ffe7350 0x4014ef8a:0x3ffe7370 0x401693aa:0x3ffe7390


Decoded coredump:

espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffe7430, name: 'wifi', GDB name: 'process 1073640496'

================== CURRENT THREAD REGISTERS ===================
exccause 0x1d (StoreProhibitedCause)
excvaddr 0x0
epc1 0x0
epc2 0x0
epc3 0x0
epc4 0x0
epc5 0x0
epc6 0x0
epc7 0x0
eps2 0x0
eps3 0x0
eps4 0x0
eps5 0x0
eps6 0x0
eps7 0x40118eb0
pc 0x4008cb37 0x4008cb37 <invoke_abort+27>
lbeg 0x4000c46c 1073792108
lend 0x4000c477 1073792119
lcount 0xffffffff 4294967295
sar 0x5 5
ps 0x60220 393760
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 0x8008ce54 -2146906540
a1 0x3ffe7250 1073640016
a2 0x4 4
a3 0x2f 47
a4 0xc 12
a5 0xffffffff -1
a6 0x0 0
a7 0xfffffffe -2
a8 0x0 0
a9 0x3ffe7230 1073639984
a10 0x0 0
a11 0x3ffe71e1 1073639905
a12 0x3ffe718f 1073639823
a13 0x30 48
a14 0x0 0
a15 0x3ffe7199 1073639833

==================== CURRENT THREAD STACK =====================
#0 0x4008cb37 in invoke_abort () at C:/esp-idf-4.1/components/esp32/panic.c:159
#1 0x4008ce54 in abort () at C:/esp-idf-4.1/components/esp32/panic.c:174
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

======================== THREADS INFO =========================
Id Target Id Frame
* 1 process 1073640496 0x4008cb37 in invoke_abort () at C:/esp-idf-4.1/components/esp32/panic.c:159
2 process 1073469576 0x40081224 in esp_crosscore_int_send_yield (core_id=1) at C:/esp-idf-4.1/components/esp32/crosscore_int.c:111
3 process 1073458464 0x4017f2a6 in esp_pm_impl_waiti () at C:/esp-idf-4.1/components/esp32/pm_esp32.c:484
4 process 1073457324 0x4017f2a6 in esp_pm_impl_waiti () at C:/esp-idf-4.1/components/esp32/pm_esp32.c:484
5 process 1073615000 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
6 process 1073597892 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
7 process 1073573328 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
8 process 1073619716 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
9 process 1073623860 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
10 process 1073618444 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
11 process 1073467020 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffbc340, pvBuffer=0x3ffbcdf0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
12 process 1073621688 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
13 process 1073563364 0x4000bff0 in ?? ()
14 process 1073566036 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffbda38, pvBuffer=0x3ffd4f28, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
15 process 1073568956 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
16 process 1073613528 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
17 process 1073460544 0x4008fea1 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
18 process 1073442592 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffaff64, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
19 process 1073438744 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffe045c, pvBuffer=0x3ffdd5d8, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
20 process 1073610084 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb5cc4, pvBuffer=0x3ffdfc84, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
21 process 1073631704 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffe49a4, pvBuffer=0x3ffe5110, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
22 process 1073436076 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb46e8, pvBuffer=0x3ffb5510, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
23 process 1073456184 0x4000bff0 in ?? ()
24 process 1073445640 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb77a8, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
25 process 1073444224 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb7220, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214

==================== THREAD 2 (TCB: 0x3ffbd888, name: 'Coproc') =====================
#0 0x40081224 in esp_crosscore_int_send_yield (core_id=1) at C:/esp-idf-4.1/components/esp32/crosscore_int.c:111
#1 0x4008eb9a in vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#2 0x400e0c3e in CoprocessorTask (pvParameters=<optimized out>) at ../main/led.c:1629

==================== THREAD 3 (TCB: 0x3ffbad20, name: 'IDLE1') =====================
#0 0x4017f2a6 in esp_pm_impl_waiti () at C:/esp-idf-4.1/components/esp32/pm_esp32.c:484
#1 0x400d4330 in esp_vApplicationIdleHook () at C:/esp-idf-4.1/components/esp_common/src/freertos_hooks.c:63
#2 0x4008ed1f in prvIdleTask (pvParameters=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:3382

==================== THREAD 4 (TCB: 0x3ffba8ac, name: 'IDLE0') =====================
#0 0x4017f2a6 in esp_pm_impl_waiti () at C:/esp-idf-4.1/components/esp32/pm_esp32.c:484
#1 0x400d4330 in esp_vApplicationIdleHook () at C:/esp-idf-4.1/components/esp_common/src/freertos_hooks.c:63
#2 0x4008ed1f in prvIdleTask (pvParameters=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:3382

==================== THREAD 5 (TCB: 0x3ffe1098, name: 'Analog') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400e057d in AnalogTask (params=<optimized out>) at ../main/led.c:88

==================== THREAD 6 (TCB: 0x3ffdcdc4, name: 'Output') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400d96a1 in OutputTask (pvParameters=<optimized out>) at ../main/data.c:1528

==================== THREAD 7 (TCB: 0x3ffd6dd0, name: 'BTLE') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400d6ec7 in BTLETask (pvParameters=<optimized out>) at ../main/btle2.c:470

==================== THREAD 8 (TCB: 0x3ffe2304, name: 'Vehicle') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400e3b1b in VehicleTask (params=0x0) at ../main/tracking.c:323

==================== THREAD 9 (TCB: 0x3ffe3334, name: 'HDGps') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400e5b3e in HDGpsTask () at ../main/tracking.c:3215

==================== THREAD 10 (TCB: 0x3ffe1e0c, name: 'Tracking') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400ec167 in CELLULARLIB_power (on=<optimized out>, gpsperiod=1000) at C:/OBD_Software/esp32/obd_v5/components/cellularlib/cellularlib.c:427
#2 0x400e4094 in TrackingTask (arg=<optimized out>) at ../main/tracking.c:1444

==================== THREAD 11 (TCB: 0x3ffbce8c, name: 'tiT') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffbc340, pvBuffer=0x3ffbcdf0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x401394ca in sys_arch_mbox_fetch (mbox=0x3ffcf734 <tcpip_mbox>, msg=0x3ffbcdf0, timeout=338) at C:/esp-idf-4.1/components/lwip/port/esp32/freertos/sys_arch.c:325
#2 0x40128e87 in tcpip_timeouts_mbox_fetch (mbox=0x3ffcf734 <tcpip_mbox>, msg=<optimized out>) at C:/esp-idf-4.1/components/lwip/lwip/src/api/tcpip.c:110
#3 tcpip_thread (arg=<optimized out>) at C:/esp-idf-4.1/components/lwip/lwip/src/api/tcpip.c:148

==================== THREAD 12 (TCB: 0x3ffe2ab8, name: 'FleetData') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400e32c9 in FleetDataTask (params=<optimized out>) at ../main/tracking.c:1215

==================== THREAD 13 (TCB: 0x3ffd46e4, name: 'Debug') =====================
#0 0x4000bff0 in ?? ()
#1 0x4008e7be in vTaskExitCritical (mux=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:4274
#2 0x4008eb91 in vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1473
#3 0x400df2f1 in DebugTask (pvParameters=0x0) at ../main/debug.c:147

==================== THREAD 14 (TCB: 0x3ffd5154, name: 'Upgrade') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffbda38, pvBuffer=0x3ffd4f28, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x401394ca in sys_arch_mbox_fetch (mbox=0x3ffbda0c, msg=0x3ffd4f28, timeout=10000) at C:/esp-idf-4.1/components/lwip/port/esp32/freertos/sys_arch.c:325
#2 0x40125c52 in netconn_accept (conn=0x3ffbd9f8, new_conn=0x3ffd5074) at C:/esp-idf-4.1/components/lwip/lwip/src/api/api_lib.c:515
#3 0x400e71b9 in UpgradeTask (pvParameters=<optimized out>) at ../main/upgrade.c:127

==================== THREAD 15 (TCB: 0x3ffd5cbc, name: 'Data') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400ded67 in DataTask (pvParameters=<optimized out>) at ../main/data.c:1604

==================== THREAD 16 (TCB: 0x3ffe0ad8, name: 'LED') =====================
#0 vTaskDelay (xTicksToDelay=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:1488
#1 0x400e0690 in LEDTask (pvParameters=<optimized out>) at ../main/led.c:188

==================== THREAD 17 (TCB: 0x3ffbb540, name: 'Tmr Svc') =====================
#0 0x4008fea1 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 prvTimerTask (pvParameters=<optimized out>) at C:/esp-idf-4.1/components/freertos/timers.c:544

==================== THREAD 18 (TCB: 0x3ffb6f20, name: 'esp_timer') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffaff64, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x400d417a in timer_task (arg=<optimized out>) at C:/esp-idf-4.1/components/esp_common/src/esp_timer.c:325

==================== THREAD 19 (TCB: 0x3ffb6018, name: 'Socket') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffe045c, pvBuffer=0x3ffdd5d8, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x401394ba in sys_arch_mbox_fetch (mbox=0x3ffd53ec, msg=0x3ffdd5d8, timeout=0) at C:/esp-idf-4.1/components/lwip/port/esp32/freertos/sys_arch.c:321
#2 0x40125c52 in netconn_accept (conn=0x3ffd53d8, new_conn=0x3ffdd634) at C:/esp-idf-4.1/components/lwip/lwip/src/api/api_lib.c:515
#3 0x40128148 in lwip_accept (s=<optimized out>, addr=0x3ffdd690, addrlen=0x3ffdd6a8) at C:/esp-idf-4.1/components/lwip/lwip/src/api/sockets.c:702
#4 0x400dca6e in accept (addrlen=<unavailable>, addr=<unavailable>, s=54) at C:/esp-idf-4.1/components/lwip/lwip/src/include/lwip/sockets.h:624
#5 SocketTask (pvParameters=<optimized out>) at ../main/data.c:3151

==================== THREAD 20 (TCB: 0x3ffdfd64, name: 'ble') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb5cc4, pvBuffer=0x3ffdfc84, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x400fa2a0 in npl_freertos_eventq_get (evq=0x3ffc3130 <g_eventq_dflt>, tmo=4294967295) at C:/esp-idf-4.1/components/bt/host/nimble/nimble/porting/npl/freertos/src/npl_os_freertos.c:49
#2 0x400fa694 in ble_npl_eventq_get (tmo=4294967295, evq=0x3ffc3130 <g_eventq_dflt>) at C:/esp-idf-4.1/components/bt/host/nimble/nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h:103
#3 nimble_port_run () at C:/esp-idf-4.1/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:80
#4 0x400d6a67 in bleprph_host_task (param=0x0) at ../main/btle2.c:420

==================== THREAD 21 (TCB: 0x3ffe51d8, name: 'sys_evt') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffe49a4, pvBuffer=0x3ffe5110, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x40180c4c in esp_event_loop_run (event_loop=0x3ffbc304, ticks_to_run=4294967295) at C:/esp-idf-4.1/components/esp_event/esp_event.c:521
#2 0x40180dbf in esp_event_loop_run_task (args=0x3ffbc304) at C:/esp-idf-4.1/components/esp_event/esp_event.c:115

==================== THREAD 22 (TCB: 0x3ffb55ac, name: 'btControl') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb46e8, pvBuffer=0x3ffb5510, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x400fb209 in queue_recv_wrapper (queue=0x3ffb46e8, item=0x3ffb5510, block_time_ms=4294967295) at C:/esp-idf-4.1/components/bt/controller/bt.c:728
#2 0x400fe078 in btdm_controller_task ()

==================== THREAD 23 (TCB: 0x3ffba438, name: 'main') =====================
#0 0x4000bff0 in ?? ()
#1 0x4008e7be in vTaskExitCritical (mux=<optimized out>) at C:/esp-idf-4.1/components/freertos/tasks.c:4274
#2 0x4008e2d8 in xQueueGenericReceive (xQueue=0x3ffe75a0, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/queue.c:1596
#3 0x400d469d in semphr_take_wrapper (semphr=0x3ffe75a0, block_time_tick=4294967295) at C:/esp-idf-4.1/components/esp_wifi/esp32/esp_adapter.c:276
#4 0x401522f5 in ieee80211_ioctl ()
#5 0x401474cc in esp_wifi_start ()
#6 0x400d6a1a in app_main () at ../main/main.c:622
#7 0x400d33e5 in main_task (args=0x0) at C:/esp-idf-4.1/components/esp32/cpu_start.c:564

==================== THREAD 24 (TCB: 0x3ffb7b08, name: 'ipc1') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb77a8, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x40081a07 in ipc_task (arg=<optimized out>) at C:/esp-idf-4.1/components/esp_common/src/ipc.c:51

==================== THREAD 25 (TCB: 0x3ffb7580, name: 'ipc0') =====================
#0 0x4008e2e1 in xQueueGenericReceive (xQueue=0x3ffb7220, pvBuffer=0x0, xTicksToWait=<optimized out>, xJustPeeking=0) at C:/esp-idf-4.1/components/freertos/include/freertos/portable.h:214
#1 0x40081a07 in ipc_task (arg=<optimized out>) at C:/esp-idf-4.1/components/esp_common/src/ipc.c:51

======================= ALL MEMORY REGIONS ========================
Name Address Size Attrs
.rtc.text 0x400c0000 0x0 RW
.rtc.dummy 0x3ff80000 0x0 RW
.rtc.force_fast 0x3ff80000 0x0 RW
.rtc_noinit 0x50000000 0x0 RW
.rtc.force_slow 0x50000000 0x0 RW
.iram0.vectors 0x40080000 0x404 R XA
.iram0.text 0x40080404 0x13564 R XA
.dram0.data 0x3ffbdb60 0x4e90 RW A
.noinit 0x3ffc29f0 0x0 RW
.flash.rodata 0x3f400020 0x1a410 RW A
.flash.text 0x400d0020 0xb1410 R XA
.dram0.heap_start 0x3ffd4278 0x0 RW
.coredump.tasks.data 0x3ffe7430 0x16c RW
.coredump.tasks.data 0x3ffe7190 0x298 RW
.coredump.tasks.data 0x3ffbd888 0x16c RW
.coredump.tasks.data 0x3ffbd660 0x220 RW
.coredump.tasks.data 0x3ffbad20 0x16c RW
.coredump.tasks.data 0x3ffbab90 0x188 RW
.coredump.tasks.data 0x3ffba8ac 0x16c RW
.coredump.tasks.data 0x3ffba720 0x184 RW
.coredump.tasks.data 0x3ffe1098 0x16c RW
.coredump.tasks.data 0x3ffe0f20 0x170 RW
.coredump.tasks.data 0x3ffdcdc4 0x16c RW
.coredump.tasks.data 0x3ffdcbf0 0x1cc RW
.coredump.tasks.data 0x3ffd6dd0 0x16c RW
.coredump.tasks.data 0x3ffd6c60 0x168 RW
.coredump.tasks.data 0x3ffe2304 0x16c RW
.coredump.tasks.data 0x3ffe2190 0x16c RW
.coredump.tasks.data 0x3ffe3334 0x16c RW
.coredump.tasks.data 0x3ffe30c0 0x26c RW
.coredump.tasks.data 0x3ffe1e0c 0x16c RW
.coredump.tasks.data 0x3ffe1b40 0x2c4 RW
.coredump.tasks.data 0x3ffbce8c 0x16c RW
.coredump.tasks.data 0x3ffbccc0 0x1c4 RW
.coredump.tasks.data 0x3ffe2ab8 0x16c RW
.coredump.tasks.data 0x3ffe2900 0x1b0 RW
.coredump.tasks.data 0x3ffd46e4 0x16c RW
.coredump.tasks.data 0x3ffd44f0 0x1ec RW
.coredump.tasks.data 0x3ffd5154 0x16c RW
.coredump.tasks.data 0x3ffd4dd0 0x37c RW
.coredump.tasks.data 0x3ffd5cbc 0x16c RW
.coredump.tasks.data 0x3ffd5b00 0x1b4 RW
.coredump.tasks.data 0x3ffe0ad8 0x16c RW
.coredump.tasks.data 0x3ffe0960 0x170 RW
.coredump.tasks.data 0x3ffbb540 0x16c RW
.coredump.tasks.data 0x3ffbb3e0 0x158 RW
.coredump.tasks.data 0x3ffb6f20 0x16c RW
.coredump.tasks.data 0x3ffb6d80 0x198 RW
.coredump.tasks.data 0x3ffb6018 0x16c RW
.coredump.tasks.data 0x3ffdd480 0x2b0 RW
.coredump.tasks.data 0x3ffdfd64 0x16c RW
.coredump.tasks.data 0x3ffdfb80 0x1dc RW
.coredump.tasks.data 0x3ffe51d8 0x16c RW
.coredump.tasks.data 0x3ffe5000 0x1d0 RW
.coredump.tasks.data 0x3ffb55ac 0x16c RW
.coredump.tasks.data 0x3ffb53f0 0x1b4 RW
.coredump.tasks.data 0x3ffba438 0x16c RW
.coredump.tasks.data 0x3ffba100 0x330 RW
.coredump.tasks.data 0x3ffb7b08 0x16c RW
.coredump.tasks.data 0x3ffb7980 0x180 RW
.coredump.tasks.data 0x3ffb7580 0x16c RW
.coredump.tasks.data 0x3ffb73f0 0x188 RW

===================== ESP32 CORE DUMP END =====================
===============================================================
Done!

iosixllc
Posts: 71
Joined: Fri Mar 17, 2017 12:13 am

Re: Crash when using Wifi and NIMBLE simultaneously

Postby iosixllc » Thu May 28, 2020 3:29 am

Hi - is anyone successfully using both of these modules with v4.x?

ESP_Prasad
Posts: 18
Joined: Tue Nov 12, 2019 7:46 am

Re: Crash when using Wifi and NIMBLE simultaneously

Postby ESP_Prasad » Fri May 29, 2020 1:27 pm

Hi @iosixllc ,
f I initialize wifi and then call esp_nimble_hci_and_controller_init() I get an abort. If I initialize NIMBLE and then call esp_wifi_start() I get an abort as well. I've pulled the trace but the stack is corrupted
I could not reproduce the issue, I used `bleprph` example for NimBLE & `wifi/getting_started/station` example for WiFI. Is it possible for you to share the code? Just want to observe how WiFI stack is getting initialized in your code.

Who is online

Users browsing this forum: Bing [Bot], brushlow18, Google [Bot], MicroController and 116 guests