Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASSERT_PARAM(8192 0), in rwbt.c at line 360 (IDFGH-14409) #15190

Open
3 tasks done
vortex314 opened this issue Jan 12, 2025 · 16 comments
Open
3 tasks done

ASSERT_PARAM(8192 0), in rwbt.c at line 360 (IDFGH-14409) #15190

vortex314 opened this issue Jan 12, 2025 · 16 comments
Assignees
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@vortex314
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

espidf 5.3.0

Espressif SoC revision.

ESP32 devkit v1

Operating System used.

Linux

How did you build your project?

Other (please specify in More Information)

If you are using Windows, please specify command line type.

None

Development Kit.

Platformio with espidf

Power Supply used.

USB

What is the expected behavior?

The device works as a bluetooth to udp bridge. The data from a PS4 controller is streamed to Zenoh middleware.

What is the actual behavior?

It behaves correctly during a long time ( 8 min -> 56 min ) , no stack overflow or memory leak that drains the heap.
Then it crashes in rwbt.c with an assertion error. I suspect that the Wifi and Bluetooth conflict somewhere and create a racing conditions

Steps to reproduce.

  1. Start the chip without any Bluetooth connection
  2. Connect PS4 controller to ESP32
  3. After 8 to 55 min it crashes

Debug Logs.

I 00:08:28.913 |        main.cpp: 184 |  free heap size: 34144
I 00:08:29.921 |        main.cpp: 184 |  free heap size: 34396
I 00:08:30.945 |        main.cpp: 184 |  free heap size: 34380
I 00:08:31.953 |        main.cpp: 184 |  free heap size: 35104
ASSERT_PARAM(8192 0), in rwbt.c at line 360
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4008ebfc: f01d020c 00004136 f01d0000
Core  0 register dump:
PC      : 0x4008ec03  PS      : 0x00060034  A0      : 0x800884da  A1      : 0x3ffc2108  
A2      : 0x00000000  A3      : 0x00002000  A4      : 0x00000000  A5      : 0x3ff9e7d2  
A6      : 0x00000168  A7      : 0xfffffffc  A8      : 0x8000814b  A9      : 0x3ffc2078  
A10     : 0x00000000  A11     : 0x3ffc209b  A12     : 0x3ffc2047  A13     : 0x00000030  
A14     : 0x00000000  A15     : 0x3ffc204c  SAR     : 0x00000004  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  


Backtrace: 0x4008ec00:0x3ffc2108 |<-CORRUPTED




ELF file SHA256: 77db749cd

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7176
load:0x40078000,len:15564
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3904
entry 0x40080638
I (31) boot: ESP-IDF 5.3.0 2nd stage bootloader
I (31) boot: compile time Jan 10 2025 22:41:09

More Information.

Coredump
Checking "python3" ...
Python 3.10.12
"python3" has been detected

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

==================== ESP32 CORE DUMP START ====================
The ROM ELF file won't load automatically since it was not found for the provided chip type.

Crashed task handle: 0x3ffde81c, name: 'wifi', GDB name: 'process 1073604636'
Crashed task is not in the interrupt context

================== CURRENT THREAD REGISTERS ===================
exccause 0xffff (InvalidCauseRegister)
excvaddr 0x0
pc 0x20000000 0x20000000
lbeg 0x4000c2e0 1073791712
lend 0x4000c2f6 1073791734
lcount 0xffffffff 4294967295
sar 0x17 23
ps 0x30 48
threadptr
br
scompare1
acclo
acchi
m0
m1
m2
m3
expstate
f64r_lo
f64r_hi
f64s
fcr
fsr
a0 0x20000070 536871024
a1 0x0 0
a2 0x0 0
a3 0x0 0
a4 0x60220 393760
a5 0x60223 393763
a6 0x3477e 214910
a7 0x0 0
a8 0x3ff000dc 1072693468
a9 0x1 1
a10 0x3ffbde50 1073471056
a11 0xffffffff -1
a12 0x3fff6ea0 1073704608
a13 0x60223 393763
a14 0x1 1
a15 0xcdcd 52685

==================== CURRENT THREAD STACK =====================
#0 0x20000000 in ?? ()

======================== THREADS INFO =========================
Id Target Id Frame

  • 1 process 1073604636 0x20000000 in ?? ()
    2 process 1073461856 0x4000bff0 in ?? ()
    3 process 1073464720 0x4008ee2e in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
    4 process 1073466860 0x4008ee2e in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
    5 process 1073596464 0x4000bff0 in ?? ()
    6 process 1073626408 0x4000bff0 in ?? ()
    7 process 1073608984 0x4000bff0 in ?? ()
    8 process 1073462580 0x40081d48 in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
    9 process 1073469116 0x4000bff0 in ?? ()
    10 process 1073710072 0x40081d48 in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
    11 process 1073653556 0x4000bff0 in ?? ()
    12 process 1073658000 0x4000bff0 in ?? ()
    13 process 1073667184 0x4000bff0 in ?? ()
    14 process 1073445456 0x4000bff0 in ?? ()
    15 process 1073443608 0x4000bff0 in ?? ()
    16 process 1073601220 0x4000bff0 in ?? ()
    17 process 1073704604 0x4000bff0 in ?? ()
    18 process 1073688448 0x4000bff0 in ?? ()

     TCB             NAME PRIO C/B  STACK USED/FREE
    

0x3ffde81c wifi 23/23 1184/5468
0x3ffbba60 esp_timer 22/22 688/6812
0x3ffbc590 IDLE0 0/0 416/1364
0x3ffbcdec IDLE1 0/0 416/1368
0x3ffdc830 tiT 18/18 560/3012
0x3ffe3d28 sys 5/5 528/3564
0x3ffdf918 zenoh 5/5 528/3468
0x3ffbbd34 main 1/1 576/6932
0x3ffbd6bc wifi 5/5 528/3560
0x3fff83f8 12/12 480/4636
0x3ffea734 ps4 5/5 608/5496
0x3ffeb890 led 5/5 528/3556
0x3ffedc70 btstack_stdio 12/12 480/1556
0x3ffb7a50 ipc1 24/24 432/1056
0x3ffb7318 ipc0 5/5 432/1064
0x3ffddac4 sys_evt 20/20 544/3072
0x3fff6e9c 18/12 1136/3976
0x3fff2f80 btController 23/23 512/3572

==================== THREAD 1 (TCB: 0x3ffde81c, name: 'wifi') =====================
#0 0x20000000 in ?? ()

==================== THREAD 2 (TCB: 0x3ffbba60, name: 'esp_timer') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffde178) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be032 in xQueueGenericSend (xQueue=0x3ffde12c, pvItemToQueue=0x3ffbb8f0, xTicksToWait=, xCopyPosition=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1056
#4 0x401bcf9f in queue_send_wrapper (queue=0x3ffde12c, item=0x3ffbb8f0, block_time_tick=10) at /home/lieven/.platformio/packages/framework-espidf/components/esp_wifi/esp32/esp_adapter.c:301
#5 0x4008570c in pp_post ()
#6 0x40160613 in ieee80211_timer_process ()
#7 0x40172aa6 in pp_timer_process ()
#8 0x4016afc4 in ?? ()
#9 0x4019e039 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /home/lieven/.platformio/packages/framework-espidf/components/esp_timer/src/esp_timer.c:456
#10 0x4019e088 in timer_task (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_timer/src/esp_timer.c:482
#11 0x400905a1 in vPortTaskWrapper (pxCode=0x4019e074 <timer_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 3 (TCB: 0x3ffbc590, name: 'IDLE0') =====================
#0 0x4008ee2e in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
#1 0x40109b95 in esp_vApplicationIdleHook () at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58
#2 0x401be92c in prvIdleTask (pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:4344
#3 0x400905a1 in vPortTaskWrapper (pxCode=0x401be920 , pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 4 (TCB: 0x3ffbcdec, name: 'IDLE1') =====================
#0 0x4008ee2e in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
#1 0x40109b95 in esp_vApplicationIdleHook () at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58
#2 0x401be92c in prvIdleTask (pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:4344
#3 0x400905a1 in vPortTaskWrapper (pxCode=0x401be920 , pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 5 (TCB: 0x3ffdc830, name: 'tiT') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffbda78) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffbda2c, pvBuffer=0x3ffdc778, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x40123da4 in sys_arch_mbox_fetch (mbox=, msg=0x3ffdc778, timeout=166) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/port/freertos/sys_arch.c:317
#5 0x4011240f in tcpip_timeouts_mbox_fetch (mbox=0x3ffd3324 <tcpip_mbox>, msg=0x3ffdc778) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c:104
#6 0x401124dd in tcpip_thread (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c:142
#7 0x400905a1 in vPortTaskWrapper (pxCode=0x401124b0 <tcpip_thread>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 6 (TCB: 0x3ffe3d28, name: 'sys') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffb7d50) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffb7d04, pvBuffer=0x3ffe8e6c, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x400d6bb9 in Channel<SysCmd*>::receive (timeout=, message=0x3ffe8e6c, this=0x3ffc3e50 <sys_actor+16>) at src/actor.h:33
#5 Actor<SysEvent, SysCmd>::loop (this=0x3ffc3e40 <sys_actor>) at src/actor.h:294
#6 0x400d6c64 in Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3e40 <sys_actor>, __closure=0x0) at src/actor.h:279
#7 Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at src/actor.h:279
#8 0x400905a1 in vPortTaskWrapper (pxCode=0x400d6c5c <Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3e40 <sys_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 7 (TCB: 0x3ffdf918, name: 'zenoh') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffb7cbc) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffb7c70, pvBuffer=0x3ffdf83c, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x400d6ab5 in Channel<ZenohCmd*>::receive (timeout=, message=0x3ffdf83c, this=0x3ffc40f0 <zenoh_actor+16>) at src/actor.h:33
#5 Actor<ZenohEvent, ZenohCmd>::loop (this=0x3ffc40e0 <zenoh_actor>) at src/actor.h:294
#6 0x400d6b60 in Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc40e0 <zenoh_actor>, __closure=0x0) at src/actor.h:279
#7 Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at src/actor.h:279
#8 0x400905a1 in vPortTaskWrapper (pxCode=0x400d6b58 <Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc40e0 <zenoh_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 8 (TCB: 0x3ffbbd34, name: 'main') =====================
#0 0x40081d48 in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
#1 0x401becc5 in vTaskDelay (xTicksToDelay=1000) at /home/lieven/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:41
#2 0x400d7cf5 in app_main () at src/main.cpp:178
#3 0x401bd319 in main_task (args=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/app_startup.c:208
#4 0x400905a1 in vPortTaskWrapper (pxCode=0x401bd250 <main_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 9 (TCB: 0x3ffbd6bc, name: 'wifi') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffb7bf4) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffb7ba8, pvBuffer=0x3ffdb94c, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x400d69b1 in Channel<WifiCmd*>::receive (timeout=, message=0x3ffdb94c, this=0x3ffc4278 <wifi_actor+16>) at src/actor.h:33
#5 Actor<WifiEvent, WifiCmd>::loop (this=0x3ffc4268 <wifi_actor>) at src/actor.h:294
#6 0x400d6a5c in Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc4268 <wifi_actor>, __closure=0x0) at src/actor.h:279
#7 Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at src/actor.h:279
#8 0x400905a1 in vPortTaskWrapper (pxCode=0x400d6a54 <Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc4268 <wifi_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 10 (TCB: 0x3fff83f8, name: '') =====================
#0 0x40081d48 in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
#1 0x401becc5 in vTaskDelay (xTicksToDelay=3312) at /home/lieven/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:41
#2 0x400e2c7c in z_sleep_ms (time=) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:179
#3 0x400e44fb in _zp_unicast_lease_task (ztu_arg=0x3fff3a08) at .pio/libdeps/ps4/zenoh-pico/src/transport/unicast/lease.c:110
#4 0x400e2b12 in z_task_wrapper (arg=0x3fff3c84) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:61
#5 0x400905a1 in vPortTaskWrapper (pxCode=0x400e2b08 <z_task_wrapper>, pvParameters=0x3fff3c84) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 11 (TCB: 0x3ffea734, name: 'ps4') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffbe100 ) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401bfa21 in xTaskGenericNotifyWait (uxIndexToWait=0, ulBitsToClearOnEntry=, ulBitsToClearOnExit=4294967295, pulNotificationValue=0x0, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5841
#4 0x400f5128 in btstack_run_loop_freertos_execute () at /home/lieven/esp/esp-idf/components/btstack/platform/freertos/btstack_run_loop_freertos.c:202
#5 0x400ec82e in btstack_run_loop_execute () at /home/lieven/esp/esp-idf/components/btstack/src/btstack_run_loop.c:310
#6 0x400d8a17 in Ps4Actor::on_start (this=0x3ffc3d84 <ps4_actor>) at src/ps4_actor.cpp:37
#7 0x400d6ca4 in Actor<Ps4Event, Ps4Cmd>::loop (this=0x3ffc3d84 <ps4_actor>) at src/actor.h:290
#8 0x400d6d6c in Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3d84 <ps4_actor>, __closure=0x0) at src/actor.h:279
#9 Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::_FUN(void*) () at src/actor.h:279
#10 0x400905a1 in vPortTaskWrapper (pxCode=0x400d6d64 <Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3d84 <ps4_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 12 (TCB: 0x3ffeb890, name: 'led') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffb7e98) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffb7e4c, pvBuffer=0x3ffeb7ac, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x400d6dc5 in Channel<LedCmd*>::receive (timeout=, message=0x3ffeb7ac, this=0x3ffc3d50 <led_actor+16>) at src/actor.h:33
#5 Actor<LedEvent, LedCmd>::loop (this=0x3ffc3d40 <led_actor>) at src/actor.h:294
#6 0x400d6e64 in Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3d40 <led_actor>, __closure=0x0) at src/actor.h:279
#7 Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at src/actor.h:279
#8 0x400905a1 in vPortTaskWrapper (pxCode=0x400d6e5c <Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3d40 <led_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 13 (TCB: 0x3ffedc70, name: 'btstack_stdio') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffebcb8) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be241 in xQueuePeek (xQueue=0x3ffebc6c, pvBuffer=0x3ffedbb0, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:2084
#4 0x400ed1bb in btstack_stdio_task (arg=0x0) at /home/lieven/esp/esp-idf/components/btstack/btstack_stdio_esp32.c:135
#5 0x400905a1 in vPortTaskWrapper (pxCode=0x400ed198 <btstack_stdio_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 14 (TCB: 0x3ffb7a50, name: 'ipc1') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffbe100 ) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401beb88 in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5756
#4 0x40081d9c in ipc_task (arg=0x1) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/esp_ipc.c:62
#5 0x400905a1 in vPortTaskWrapper (pxCode=0x40081d6c <ipc_task>, pvParameters=0x1) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 15 (TCB: 0x3ffb7318, name: 'ipc0') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffbe100 ) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401beb88 in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5756
#4 0x40081d9c in ipc_task (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/esp_ipc.c:62
#5 0x400905a1 in vPortTaskWrapper (pxCode=0x40081d6c <ipc_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 16 (TCB: 0x3ffddac4, name: 'sys_evt') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3ffdca2c) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3ffdc9e0, pvBuffer=0x3ffdd9dc, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x401ba874 in esp_event_loop_run (event_loop=0x3ffbdb04, ticks_to_run=4294967295) at /home/lieven/.platformio/packages/framework-espidf/components/esp_event/esp_event.c:560
#5 0x401ba8a0 in esp_event_loop_run_task (args=0x3ffbdb04) at /home/lieven/.platformio/packages/framework-espidf/components/esp_event/esp_event.c:105
#6 0x400905a1 in vPortTaskWrapper (pxCode=0x401ba894 <esp_event_loop_run_task>, pvParameters=0x3ffbdb04) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 17 (TCB: 0x3fff6e9c, name: '') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3fff3e78) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3fff3e2c, pvBuffer=0x3fff6b88, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x40123d81 in sys_arch_mbox_fetch (mbox=, msg=0x3fff6b88, timeout=0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/port/freertos/sys_arch.c:313
#5 0x40125356 in netconn_recv_data (conn=0x3fff3de4, new_buf=0x3fff6c38, apiflags=8 '\b') at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/api_lib.c:615
#6 0x4012548d in netconn_recv_data_tcp (conn=0x3fff3de4, new_buf=0x3fff6c38, apiflags=8 '\b') at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/api_lib.c:727
#7 0x40125538 in netconn_recv_tcp_pbuf_flags (conn=0x3fff3de4, new_buf=0x3fff6c38, apiflags=8 '\b') at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/api_lib.c:808
#8 0x40110ae4 in lwip_recv_tcp (sock=0x3ffd30cc , mem=0x3fff4bbb, len=, flags=0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/sockets.c:951
#9 0x4011197f in lwip_recvfrom (s=54, mem=0x3fff4bbb, len=1793, flags=0, from=0x0, fromlen=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/sockets.c:1218
#10 0x40111a69 in lwip_recv (s=54, mem=0x3fff4bbb, len=1793, flags=0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/sockets.c:1283
#11 0x400ea049 in recv (flags=0, len=1793, mem=0x3fff4bbb, s=54) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/include/lwip/sockets.h:38
#12 _z_read_tcp (sock=..., ptr=0x3fff4bbb <error: Cannot access memory at address 0x3fff4bbb>, len=1793) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/network.c:120
#13 0x400e60d0 in _z_f_link_read_tcp (zl=0x3fff3a0c, ptr=0x3fff4bbb <error: Cannot access memory at address 0x3fff4bbb>, len=1793, addr=0x0) at .pio/libdeps/ps4/zenoh-pico/src/link/unicast/tcp.c:150
#14 0x400e5bd0 in _z_link_recv_zbuf (link=0x3fff3a0c, zbf=0x3fff3a8c, addr=0x0) at .pio/libdeps/ps4/zenoh-pico/src/link/link.c:138
#15 0x400e45cd in _zp_unicast_read_task (ztu_arg=0x3fff3a08) at .pio/libdeps/ps4/zenoh-pico/src/transport/unicast/read.c:67
#16 0x400e2b12 in z_task_wrapper (arg=0x3fff3c3c) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:61
#17 0x400905a1 in vPortTaskWrapper (pxCode=0x400e2b08 <z_task_wrapper>, pvParameters=0x3fff3c3c) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 18 (TCB: 0x3fff2f80, name: 'btController') =====================
#0 0x4000bff0 in ?? ()
#1 0x400907c6 in vPortClearInterruptMaskFromISR (prev_level=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2 vPortExitCritical (mux=0x3fff1dc4) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:504
#3 0x401be385 in xQueueReceive (xQueue=0x3fff1d78, pvBuffer=0x3fff2ec0, xTicksToWait=) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4 0x401882f8 in queue_recv_hlevel_wrapper (queue=0x3ffef0a0, item=0x3fff2ec0, block_time_ms=4294967295) at /home/lieven/.platformio/packages/framework-espidf/components/bt/controller/esp32/bt.c:781
#5 0x4017bb1a in btdm_controller_task ()
#6 0x400905a1 in vPortTaskWrapper (pxCode=0x4017baf4 <btdm_controller_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

======================= 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
.rtc_fast_reserved 0x3ff82000 0x0 RW
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x1c5ab R XA
.dram0.data 0x3ffbdb60 0x61d4 RW A
.ext_ram_noinit 0x3f800000 0x0 RW
.ext_ram.bss 0x3f800000 0x0 RW
.flash.appdesc 0x3f400020 0x100 R A
.flash.rodata 0x3f400120 0x330bc RW A
.flash.text 0x400d0020 0xf1fda R XA
.iram0.data 0x4009c9b0 0x0 RW
.iram0.bss 0x4009c9b0 0x0 RW
.dram0.heap_start 0x3ffd89e8 0x0 RW
.coredump.tasks.data 0x3ffde81c 0x154 RW
.coredump.tasks.data 0x20000000 0x70 RW
.coredump.tasks.data 0x3ffbba60 0x154 RW
.coredump.tasks.data 0x3ffbb7a0 0x2b0 RW
.coredump.tasks.data 0x3ffbc590 0x154 RW
.coredump.tasks.data 0x3ffbc3e0 0x1a0 RW
.coredump.tasks.data 0x3ffbcdec 0x154 RW
.coredump.tasks.data 0x3ffbcc40 0x1a0 RW
.coredump.tasks.data 0x3ffdc830 0x154 RW
.coredump.tasks.data 0x3ffdc5f0 0x230 RW
.coredump.tasks.data 0x3ffe3d28 0x154 RW
.coredump.tasks.data 0x3ffe8d30 0x210 RW
.coredump.tasks.data 0x3ffdf918 0x154 RW
.coredump.tasks.data 0x3ffdf700 0x210 RW
.coredump.tasks.data 0x3ffbbd34 0x154 RW
.coredump.tasks.data 0x3ffda7e0 0x240 RW
.coredump.tasks.data 0x3ffbd6bc 0x154 RW
.coredump.tasks.data 0x3ffdb810 0x210 RW
.coredump.tasks.data 0x3fff83f8 0x154 RW
.coredump.tasks.data 0x3fff8210 0x1e0 RW
.coredump.tasks.data 0x3ffea734 0x154 RW
.coredump.tasks.data 0x3ffea4c0 0x260 RW
.coredump.tasks.data 0x3ffeb890 0x154 RW
.coredump.tasks.data 0x3ffeb670 0x210 RW
.coredump.tasks.data 0x3ffedc70 0x154 RW
.coredump.tasks.data 0x3ffeda80 0x1e0 RW
.coredump.tasks.data 0x3ffb7a50 0x154 RW
.coredump.tasks.data 0x3ffb7890 0x1b0 RW
.coredump.tasks.data 0x3ffb7318 0x154 RW
.coredump.tasks.data 0x3ffb7160 0x1b0 RW
.coredump.tasks.data 0x3ffddac4 0x154 RW
.coredump.tasks.data 0x3ffdd890 0x220 RW
.coredump.tasks.data 0x3fff6e9c 0x154 RW
.coredump.tasks.data 0x3fff6a20 0x470 RW
.coredump.tasks.data 0x3fff2f80 0x154 RW
.coredump.tasks.data 0x3fff2d70 0x200 RW

===================== ESP32 CORE DUMP END =====================

Done!

@vortex314 vortex314 added the Type: Bug bugs in IDF label Jan 12, 2025
@github-actions github-actions bot changed the title ASSERT_PARAM(8192 0), in rwbt.c at line 360 ASSERT_PARAM(8192 0), in rwbt.c at line 360 (IDFGH-14409) Jan 12, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 12, 2025
@vortex314
Copy link
Author

See also : ricardoquesada/bluepad32#137

@ESP-YTGerd
Copy link
Collaborator

Hi, @vortex314,
Could you kindly provide the specific ESP-IDF version or the commit hash of the Bluetooth library you are using? The printing information you shared for v5.3.0 doesn't match our expected output, so it's possible that you're not using the exact v5.3.0 version.

@vortex314
Copy link
Author

@ESP-YTGerd in the above screenshot you can see that at boot, it gives this line

I (31) boot: ESP-IDF 5.3.0 2nd stage bootloader

This looks to confirm the 5.3.0 version, I use platformio to compile , see here : https://github.com/vortex314/zenoh-projects/tree/main/zenoh-esp32 . So this defines the version I guess.

The crash is located in source rwbt.c based on an assertion. I suspect that the ASSERT ( 8192 0 ) indicates that it is running out of memory, when trying to allocate 8K block. This code is part of the espressif BT library, blob only.

Do you have access to this source code ? Can you validate the assumption ?

Any other way I can check the version ?

@ESP-YTGerd
Copy link
Collaborator

Hi, @vortex314
I double-checked, and in the v5.3 version, our BT library no longer contains this specific print statement. The assert_param(8192, 0) message is just an internal debug print with a different meaning.
Alternatively, after Bluetooth initialization, you can use the follwing function to expose it and call it to retrieve the exact commit ID.
const char *btdm_controller_get_compile_version(void);

@vortex314
Copy link
Author

@ESP-YTGerd I'll print the version in the code .
Another observation as I am using the Bluepad32 library to talk to the PS4 controller The bluepad32 doc : specifies to execute a script from 'btstack' which replaces the btstack of espressif with another one . Don't know if this changes the blob concerned.
The script from btstack seems to insert itself in the espressif provided one , the script is 3 years old.

@ESP-YTGerd
Copy link
Collaborator

@vortex314 Maybe you could check the version of the ESP-IDF on your local setup? It seems that the script does not explicitly switch to a specific version but rather depends on the ESP-IDF version installed locally.

@vortex314
Copy link
Author

Version information :
I (817) coexist: coex firmware version: dab85ae96
I (1073) BTDM_INIT: BT controller compile version [f021fb7]

Does this clarify something more ?

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7176
load:0x40078000,len:15564
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3904
entry 0x40080638
I (31) boot: ESP-IDF 5.3.0 2nd stage bootloader
I (31) boot: compile time Jan 12 2025 20:35:20
I (31) boot: Multicore bootloader
I (35) boot: chip revision: v1.0
I (38) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 2MB
I (52) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 nvs              WiFi data        01 02 00009000 00005000
I (76) boot:  1 otadata          OTA data         01 00 0000e000 00002000
I (83) boot:  2 app0             OTA app          00 10 00010000 00170000
I (91) boot:  3 coredump         Unknown data     01 03 00180000 00020000
I (98) boot: End of partition table
I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=3321ch (209436) map
I (183) esp_image: segment 1: paddr=00043244 vaddr=3ffbdb60 size=061d0h ( 25040) load
I (192) esp_image: segment 2: paddr=0004941c vaddr=40080000 size=06bfch ( 27644) load
I (203) esp_image: segment 3: paddr=00050020 vaddr=400d0020 size=f20c4h (991428) map
I (543) esp_image: segment 4: paddr=001420ec vaddr=40086bfc size=15db4h ( 89524) load
I (593) boot: Loaded app from partition at offset 0x10000
I (593) boot: Disabling RNG early entropy source...
I (605) cpu_start: Multicore app
I (614) cpu_start: Pro cpu start user code
I (614) cpu_start: cpu freq: 160000000 Hz
I (614) app_init: Application information:
I (617) app_init: Project name:     zenoh-lib
I (622) app_init: App version:      609f9e2-dirty
I (628) app_init: Compile time:     Jan 13 2025 18:38:10
I (634) app_init: ELF file SHA256:  e4bc66dc6...
I (639) app_init: ESP-IDF:          5.3.0
I (644) efuse_init: Min chip rev:     v0.0
I (648) efuse_init: Max chip rev:     v3.99 
I (653) efuse_init: Chip rev:         v1.0
I (658) heap_init: Initializing. RAM available for dynamic allocation:
I (665) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (671) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (677) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (684) heap_init: At 3FFD89E0 len 00007620 (29 KiB): DRAM
I (690) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (696) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (703) heap_init: At 4009C9B0 len 00003650 (13 KiB): IRAM
I (711) spi_flash: detected chip: generic
I (713) spi_flash: flash io: dio
W (717) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I 00:00:00.022 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.027 |  wifi_actor.cpp:  23 | Starting WiFi actor sizeof(WifiCmd ) : 44 
I 00:00:00.035 |         actor.h:  23 | Channel created [6][4]  
I 00:00:00.040 | zenoh_actor.cpp:  16 | Starting WiFi actor sizeof(ZenohCmd ) : 48 
I 00:00:00.048 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.053 |   sys_actor.cpp:   6 | Starting Sys actor sizeof(SysCmd ) : 48 
I 00:00:00.060 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.066 |   ps4_actor.cpp:  20 | Starting PS4 actor sizeof(Ps4Cmd ) : 36 
I 00:00:00.073 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.079 |   led_actor.cpp:   8 | Starting LED actor sizeof(LedCmd ) : 16 
I (796) esp_core_dump_flash: Init core dump to flash
I (802) esp_core_dump_flash: Found partition 'coredump' @ 180000 131072 bytes
E (809) esp_core_dump_flash: Incorrect size of core dump image: 1387274896
I (817) coexist: coex firmware version: dab85ae96
I (824) main_task: Started on CPU0
I (827) main_task: Calling app_main()
I 00:00:00.147 |         actor.h: 289 | starting actor wifi
I 00:00:00.153 |         actor.h: 289 | starting actor zenohI (863) wifi:wifi driver task: 3ffdf8c4, prio:23, stack:6656, core=0

I (881) wifi:wifi firmware version: 0caa81945
I (882) wifi:wifi certification version: v7.0
I (882) wifi:config NVS flash: enabled
I (882) wifi:config nano formating: disabled
I (886) wifi:Init data frame dynamic rx buffer num: 32
I (891) wifi:Init static rx mgmt buffer num: 5
I (895) wifi:Init management short buffer num: 32
I (900) wifi:Init dynamic tx buffer num: 32
I (904) wifi:Init static rx buffer size: 1600
I (908) wifi:Init static rx buffer num: 10
I (911) wifi:Init dynamic rx buffer num: 32
I 00:00:00.207 |         actor.h: 289 | I (917) wifi_init: rx ba win: 6
starting actor sysI (923) wifi_init: accept mbox: 6

starting actor ps4I (928) wifi_init: tcpip mbox: 32

I 00:00:00.219 |         actor.h: 289 | I (934) wifi_init: udp mbox: 6
I (941) wifi_init: tcp mbox: 6
I (956) wifi_init: tcp mss: 1440
I (957) wifi_init: WiFi IRAM OP enabled
I (957) wifi_init: WiFi RX IRAM OP enabled
I (957) uart: queue free spaces: 10
I (969) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08
I 00:00:00.269 |   ps4_actor.cpp:  27 | 
btdm_controller_get_compile_version()=f021fb7
I 00:00:00.285 |   ps4_actor.cpp:  76 | custom: init()
I (1059) wifi:mode : sta (98:f4:ab:6d:2d:74)
I (1064) wifi:enable tsf
I (1073) BTDM_INIT: BT controller compile version [f021fb7]
I (1088) BTDM_INIT: Bluetooth MAC: 98:f4:ab:6d:2d:76
I 00:00:00.461 |  wifi_actor.cpp: 432 | Max AP number ap_info can hold = 10
I (1368) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (1382) wifi:state: init -> auth (0xb0)
I 00:00:00.683 |  wifi_actor.cpp: 435 | Total APs scanned = 0, actual AP number ap_info holds = 0
I 00:00:00.695 |  wifi_actor.cpp: 455 | Highest RSSI = -128, AP index = 0
I 00:00:00.703 |  wifi_actor.cpp:  41 | Scanned SSID: I (1395) wifi:
state: auth -> assoc (0x0)
I 00:00:00.735 |  wifi_actor.cpp: 148 | Connecting to WiFi network...
I (1450) wifi:state: assoc -> run (0x10)
I (1469) wifi:<ba-add>idx:0 (ifx:0, 00:23:cd:19:fc:f5), tid:0, ssn:0, winSize:64
I (1498) wifi:connected with Merckx2, aid = 3, channel 1, BW20, bssid = 00:23:cd:19:fc:f5
I (1512) wifi:security: WPA2-PSK, phy: bgn, rssi: -33
I (1542) wifi:pm start, type: 1

@vortex314
Copy link
Author

Not sure where platformio seeks for espidf , because it looks that my normal install points to version 5.4 and not 5.3 like shown in the logs.

lieven@pcdell:~/esp/esp-idf$ . export.sh
Checking "python3" ...
Python 3.10.12
"python3" has been detected
Activating ESP-IDF 5.4
* Checking python version ... 3.10.12
* Checking python dependencies ... OK
* Deactivating the current ESP-IDF environment (if any) ... OK
* Establishing a new ESP-IDF environment ... OK
* Identifying shell ... bash
* Detecting outdated tools in system ... Found tools that are not used by active ESP-IDF version.
For removing old versions of esp32ulp-elf, xtensa-esp-elf-gdb, openocd-esp32, xtensa-esp32s2-elf, xtensa-esp32-elf, xtensa-esp-elf, riscv32-esp-elf-gdb, riscv32-esp-elf, xtensa-esp32s3-elf, esp-rom-elfs use command 'python 
/home/lieven/esp/esp-idf/tools/idf_tools.py uninstall'
To free up even more space, remove installation packages of those tools.
Use option python /home/lieven/esp/esp-idf/tools/idf_tools.py uninstall --remove-archives.
* Shell completion ... Autocompletion code generated

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build
lieven@pcdell:~/esp/esp-idf$ idf.py --version
ESP-IDF v5.4

@vortex314
Copy link
Author

vortex314 commented Jan 13, 2025

AFter upgrading the espressif framework in platformio 👍
I 00:00:00.253 | ps4_actor.cpp: 27 | btdm_controller_get_compile_version()=b022216
I (1061) BTDM_INIT: BT controller compile version [b022216]
The ESPIDF version mentioned is still 5.3

Looks like platformio installs it's own versions of the bt library
./.platformio/packages/framework-espidf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a

Looks like replacing the library with 5.4 leads to further linking issues.

/home/lieven/.platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/lieven/.platformio/packages/framework-espidf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(ea.o):(.iram1.4+0x8): undefined reference to `ld_acl_rsw_evt_start_cbk'
/home/lieven/.platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/lieven/.platformio/packages/framework-espidf/components/bt/controller/lib_esp32/esp32/libbtdm_app.a(ea.o):(.iram1.7+0x0): undefined reference to `ld_sco_evt_stop_cbk'

@ESP-YTGerd
Copy link
Collaborator

@vortex314 The commit f021fb7 is from June last year, and it should already include the fix for the issue you mentioned. If you can confirm that the Bluetooth library you’re using is from this commit, could you try running the tests again to see if the problem still occurs?

@vortex314
Copy link
Author

vortex314 commented Jan 14, 2025

@ESP-YTGerd as I upgraded platformio to 6.9.0 build system, it brought in also a newer version of ESPIDF 5.3.1 and a new version of the BT controller version : b022216. I guess b022216 is newer than f021fb7 ?
The crashes still occur ( after some time ) , I'll check if the coredump is also the same.

@ESP-YTGerd
Copy link
Collaborator

@ESP-YTGerd as I upgraded platformio to 6.9.0 build system, it brought in also a newer version of ESPIDF 5.3.1 and a new version of the BT controller version : b022216. I guess b022216 is newer than f021fb7 ? The crashes still occur ( after some time ) , I'll check if the coredump is also the same.

@vortex314 Yes, Is the assert information still like ASSERT_PARAM(8192 0)?

@vortex314
Copy link
Author

@ESP-YTGerd it's still the same issue , it runs fine without connecting to the PS4, up to 2 hours.
After connecting with the PS4 controller , it dies after 5 min.
As you see in the logs below it's with ESP-IDF 5.3.1 and BT version btdm_controller_get_compile_version()=b022216

I 02:03:47.756 | main.cpp: 194 | free heap size: 19212 biggest block : 18432
I 02:03:48.769 | main.cpp: 194 | free heap size: 17416 biggest block : 16384
I 02:03:49.788 | main.cpp: 194 | free heap size: 17304 biggest block : 16384
I 02:03:50.822 | main.cpp: 194 | free heap size: 21000 biggest block : 19456
ASSERT_PARAM(8192 0), in rwbt.c at line 360
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4008eeac: f01d020c 00004136 f01d0000
Core 0 register dump:
PC : 0x4008eeb3 PS : 0x00060134 A0 : 0x80088376 A1 : 0x3ffc2670
A2 : 0x00000000 A3 : 0x00002000 A4 : 0x00000000 A5 : 0x3ff9e7d2
A6 : 0x00000168 A7 : 0xfffffffc A8 : 0x8000814b A9 : 0x3ffc25e0
A10 : 0x00000000 A11 : 0x3ffc2603 A12 : 0x3ffc25af A13 : 0x00000030
A14 : 0x00000000 A15 : 0x3ffc25b4 SAR : 0x00000004 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

Backtrace: 0x4008eeb0:0x3ffc2670 0x40088373:0x3ffc2690 0x40055749:0x3ffc26b0 0x4008c03b:0x3ffc26d0 0x40081255:0x3ffc26f0 0x400811c1:0x3ffc2710 0x400811a3:0x00000000 |<-CORRUPTED

ELF file SHA256: e45ca4550

I (23005) esp_core_dump_flash: Save core dump to flash...
I (23013) esp_core_dump_flash: Erase flash 28672 bytes @ 0x180000
I (23416) esp_core_dump_flash: Write end offset 0x6e04, check sum length 4
I (23416) esp_core_dump_flash: Core dump has been saved to flash.
Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7176
load:0x40078000,len:15564
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3904
entry 0x40080638
I (31) boot: ESP-IDF 5.3.1 2nd stage bootloader
I (31) boot: compile time Jan 14 2025 01:25:13
I (31) boot: Multicore bootloader
I (35) boot: chip revision: v1.0
I (39) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00005000
I (76) boot: 1 otadata OTA data 01 00 0000e000 00002000
I (84) boot: 2 app0 OTA app 00 10 00010000 00170000
I (91) boot: 3 coredump Unknown data 01 03 00180000 00020000
I (99) boot: End of partition table
I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=33a90h (211600) map
I (184) esp_image: segment 1: paddr=00043ab8 vaddr=3ffbdb60 size=06270h ( 25200) load
I (194) esp_image: segment 2: paddr=00049d30 vaddr=40080000 size=062e8h ( 25320) load
I (204) esp_image: segment 3: paddr=00050020 vaddr=400d0020 size=f0cc4h (986308) map
I (542) esp_image: segment 4: paddr=00140cec vaddr=400862e8 size=1695ch ( 92508) load
I (593) boot: Loaded app from partition at offset 0x10000
I (593) boot: Disabling RNG early entropy source...
I (605) cpu_start: Multicore app
I (614) cpu_start: Pro cpu start user code
I (614) cpu_start: cpu freq: 160000000 Hz
I (615) app_init: Application information:
I (617) app_init: Project name: zenoh-lib
I (622) app_init: App version: 609f9e2-dirty
I (628) app_init: Compile time: Jan 14 2025 00:27:08
I (634) app_init: ELF file SHA256: e45ca4550...
I (639) app_init: ESP-IDF: 5.3.1
I (644) efuse_init: Min chip rev: v0.0
I (649) efuse_init: Max chip rev: v3.99
I (654) efuse_init: Chip rev: v1.0
I (659) heap_init: Initializing. RAM available for dynamic allocation:
I (666) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (672) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (678) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (684) heap_init: At 3FFD8A90 len 00007570 (29 KiB): DRAM
I (690) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (696) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (703) heap_init: At 4009CC44 len 000033BC (12 KiB): IRAM
I (711) spi_flash: detected chip: winbond
I (714) spi_flash: flash io: dio
I 00:00:00.009 | actor.h: 23 | Channel created [10][4]
I 00:00:00.014 | wifi_actor.cpp: 23 | Starting WiFi actor sizeof(WifiCmd ) : 44
I 00:00:00.021 | actor.h: 23 | Channel created [6][4]
I 00:00:00.027 | zenoh_actor.cpp: 16 | Starting WiFi actor sizeof(ZenohCmd ) : 48
I 00:00:00.034 | actor.h: 23 | Channel created [10][4]
I 00:00:00.040 | sys_actor.cpp: 6 | Starting Sys actor sizeof(SysCmd ) : 48
I 00:00:00.047 | actor.h: 23 | Channel created [10][4]
I 00:00:00.053 | ps4_actor.cpp: 20 | Starting PS4 actor sizeof(Ps4Cmd ) : 36
I 00:00:00.060 | actor.h: 23 | Channel created [10][4]
I 00:00:00.066 | led_actor.cpp: 8 | Starting LED actor sizeof(LedCmd ) : 16
I (783) esp_core_dump_flash: Init core dump to flash
I (789) esp_core_dump_flash: Found partition 'coredump' @ 180000 131072 bytes
I (836) esp_core_dump_flash: Core dump data checksum is correct
I (836) esp_core_dump_flash: Found core dump 28164 bytes in flash @ 0x180000
I (839) coexist: coex firmware version: 4482466
I (846) main_task: Started on CPU0
I (849) main_task: Calling app_main()
I 00:00:00.181 | actor.h: 289 | starting actor wifi
I 00:00:00.183 | actor.h: 289 | starting actor zenoh
I 00:00:00.184 | actor.h: 289 | starting actor sys
I 00:00:00.186 | actor.h: 289 | starting actor ps4
starting actor led
I (915) uart: queue free spaces: 10
I 00:00:00.207 | ps4_actor.cpp: 27 | btdm_controller_get_compile_version()=b022216
I (939) wifi:wifi firmware version: ccaebfaI 00:00:00.231 | ps4_actor.cpp: f6er num: 5
I (958) wifi:Init management short buffer num: 32
I (961) wifi:Init dynamic tx buffer num: 32I (959) BTDM_INIT: BT controller compile version [b022216]

I (972) wifi:Init static rx buffer size: 1600
I (975) wifi:I (976) BTDM_INIT: Bluetooth MAC: 30:ae:a4:ff:22:82
Init static rx buffer num: 10
I (985) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08
I (985) wifi:Init dynamic rx buffer num: 32
I (1001) wifi_init: rx ba win: 6
I (1004) wifi_init: accept mbox: 6
I (1006) wifi_init: tcpip mbox: 32
I (1008) wifi_init: udp mbox: 6
I (1009) wifi_init: tcp mbox: 6
I (1011) wifi_init: tcp tx win: 5760
I (1018) wifi_init: tcp rx win: 5760
I (1020) wifi_init: tcp mss: 1440
I (1027) wifi_init: WiFi IRAM OP enabled
I (1029) wifi_init: WiFi RX IRAM OP enabled
I (1087) wifi:mode : sta (30:ae:a4:ff:22:80)
I (1093) wifi:enable tsf
I (1364) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (1369) wifi:state: init -> auth (0xb0)
I (1377) wifi:state: auth -> assoc (0x0)
I (1388) wifi:state: assoc -> run (0x10)
I (1395) wifi:idx:0 (ifx:0, 00:23:cd:19:fc:f5), tid:0, ssn:0, winSize:64
I 00:00:00.694 | wifi_actor.cpp: 432 | Max AP number ap_info can hold = 10I (1412) wifi:
connected with Merckx2, aid = 3, channel 1, BW20, bssid = 00:23:cd:19:fc:f5
I (1423) wifi:security: WPA2-PSK, phy: bgn, rssi: -60
I (1430) wifi:pm start, type: 1

I (1432) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I 00:00:00.727 | wifi_actor.cpp: 435 | Total APs scanned = 0, actual AP number ap_info holds = 0
I 00:00:00.735 | wifi_actor.cpp: 455 | Highest RSSI = -128, AP index = 0
I 00:00:00.741 | wifi_actor.cpp: 41 | Scanned SSID:
W (1457) wifi:Password length matches WPA2 standards, authmode threshold changes from OPEN to WPA2
I (1464) wifi:I 00:00:00.754 | wifi_actor.cpp: 148 | AP's beacon interval = 102400 us, DTIM period = 1Connecting to WiFi network...

BTstack up and running at 30:AE:A4:FF:22:82
I 00:00:00.816 | ps4_actor.cpp: 99 | custom: on_init_complete()
I 00:00:00.824 | ps4_actor.cpp: 231 | custom: Bluetooth enabled: 1
A9 45 EA CB 5A EF 53 2F E9 3F 7F 90 54 8D 38 75
I (1727) wifi:idx:1 (ifx:0, 00:23:cd:19:fc:f5), tid:6, ssn:0, winSize:64
I 00:00:01.187 | main.cpp: 194 | free heap size: 54812 biggest block : 53248
I 00:00:02.193 | main.cpp: 194 | free heap size: 54812 biggest block : 53248
I (2945) esp_netif_handlers: sta ip: 192.168.0.231, mask: 255.255.255.0, gw: 192.168.0.1
I 00:00:02.312 | zenoh_actor.cpp: 52 | Connected to Zenoh.
I 00:00:02.316 | zenoh_actor.cpp: 156 | Declaring subscriber for 'dst/lm1/**'...
I 00:00:02.326 | zenoh_actor.cpp: 165 | OK
I 00:00:03.204 | main.cpp: 194 | free heap size: 33084 biggest block : 30720
I 00:00:04.222 | main.cpp: 194 | free heap size: 34616 biggest block : 30720
I 00:00:05.233 | main.cpp: 194 | free heap size: 32672 biggest block : 30720
I 00:00:06.244 | main.cpp: 194 | free heap size: 32672 biggest block : 30720
I 00:00:07.255 | main.cpp: 194 | free heap size: 32672 biggest block : 30720
I 00:00:08.266 | main.cpp: 194 | free heap size: 32904 biggest block : 30720
I 00:00:09.280 | main.cpp: 194 | free heap size: 32904 biggest block : 30720
I 00:00:10.290 | main.cpp: 194 | free heap size: 32904 biggest block : 30720
I 00:00:11.301 | main.cpp: 194 | free heap size: 32896 biggest block : 30720
I 00:00:12.317 | main.cpp: 194 | free heap size: 34452 biggest block : 30720
I 00:00:13.329 | main.cpp: 194 | free heap size: 34460 biggest block : 30720
I 00:00:14.345 | main.cpp: 194 | free heap size: 32672 biggest block : 30720
I 00:00:15.356 | main.cpp: 194 | free heap size: 32668 biggest block : 30720
I 00:00:16.366 | main.cpp: 194 | free heap size: 32672 biggest block : 30720


@vortex314
Copy link
Author

The last time it run was from 17:00 -> 22:16. So about 5 hours. I don't have the message that appeared. The core dump is below and looks the same as previous cases

Checking "python3" ...
Python 3.10.12
"python3" has been detected

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build
===============================================================
==================== ESP32 CORE DUMP START ====================
The ROM ELF file won't load automatically since it was not found for the provided chip type.

Crashed task handle: 0x3ffdfa9c, name: 'wifi', GDB name: 'process 1073609372'
Crashed task is not in the interrupt context

================== CURRENT THREAD REGISTERS ===================
exccause       0xffff (InvalidCauseRegister)
excvaddr       0x0
pc             0x20000000          0x20000000
lbeg           0x4000c2e0          1073791712
lend           0x4000c2f6          1073791734
lcount         0xffffffff          4294967295
sar            0x17                23
ps             0x30                48
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             0x20000070          536871024
a1             0x0                 0
a2             0x0                 0
a3             0x0                 0
a4             0x60820             395296
a5             0x60823             395299
a6             0x12d025b           19726939
a7             0x0                 0
a8             0x3ff000dc          1072693468
a9             0x1                 1
a10            0x3ffbde40          1073471040
a11            0xffffffff          -1
a12            0x3ffbba64          1073461860
a13            0x60823             395299
a14            0x1                 1
a15            0xcdcd              52685

==================== CURRENT THREAD STACK =====================
#0  0x20000000 in ?? ()

======================== THREADS INFO =========================
  Id   Target Id          Frame 
* 1    process 1073609372 0x20000000 in ?? ()
  2    process 1073461856 0x4000bff0 in ?? ()
  3    process 1073581428 0x4008f086 in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
  4    process 1073583568 0x4008f086 in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
  5    process 1073689376 0x4000bff0 in ?? ()
  6    process 1073594512 0x4000bff0 in ?? ()
  7    process 1073689720 0x40081d0c in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
  8    process 1073589828 0x4000bff0 in ?? ()
  9    process 1073610060 0x4000bff0 in ?? ()
  10   process 1073468096 0x40081d0c in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
  11   process 1073609716 0x4000bff0 in ?? ()
  12   process 1073626488 0x4000bff0 in ?? ()
  13   process 1073630912 0x4000bff0 in ?? ()
  14   process 1073644128 0x4000bff0 in ?? ()
  15   process 1073445456 0x4000bff0 in ?? ()
  16   process 1073599296 0x4000bff0 in ?? ()
  17   process 1073443608 0x4000bff0 in ?? ()
  18   process 1073665624 0x4000bff0 in ?? ()


       TCB             NAME PRIO C/B  STACK USED/FREE
---------- ---------------- -------- ----------------
0x3ffdfa9c             wifi    23/23         768/5880
0x3ffbba60        esp_timer    22/22         688/6812
0x3ffd8d74            IDLE0      0/0         416/1368
0x3ffd95d0            IDLE1      0/0         416/1364
0x3fff3320                     23/12        1072/4036
0x3ffdc090              tiT    18/18         560/3012
0x3fff3478                     12/12         480/4624
0x3ffdae44             wifi      5/5         528/3456
0x3ffdfd4c              sys      5/5         528/3560
0x3ffbd2c0             main      1/1         576/4924
0x3ffdfbf4            zenoh      5/5         528/3468
0x3ffe3d78              ps4      5/5         608/5508
0x3ffe4ec0              led      5/5         528/1508
0x3ffe8260    btstack_stdio    12/12         480/1556
0x3ffb7a50             ipc1    24/24         432/1056
0x3ffdd340          sys_evt    20/20         544/3076
0x3ffb7318             ipc0      5/5         432/1064
0x3ffed658     btController    23/23         512/3580

==================== THREAD 1 (TCB: 0x3ffdfa9c, name: 'wifi') =====================
#0  0x20000000 in ?? ()

==================== THREAD 2 (TCB: 0x3ffbba60, name: 'esp_timer') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffdd9f4) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bcd1a in xQueueGenericSend (xQueue=0x3ffdd9a8, pvItemToQueue=0x3ffbb8f0, xTicksToWait=<optimized out>, xCopyPosition=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1056
#4  0x401bbc83 in queue_send_wrapper (queue=0x3ffdd9a8, item=0x3ffbb8f0, block_time_tick=10) at /home/lieven/.platformio/packages/framework-espidf/components/esp_wifi/esp32/esp_adapter.c:301
#5  0x400857fc in pp_post ()
#6  0x40155d5f in ieee80211_timer_process ()
#7  0x4015e93e in pp_timer_process ()
#8  0x4015bfc0 in ?? ()
#9  0x4019be3d in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /home/lieven/.platformio/packages/framework-espidf/components/esp_timer/src/esp_timer.c:456
#10 0x4019be8c in timer_task (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_timer/src/esp_timer.c:482
#11 0x400907f9 in vPortTaskWrapper (pxCode=0x4019be78 <timer_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 3 (TCB: 0x3ffd8d74, name: 'IDLE0') =====================
#0  0x4008f086 in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
#1  0x400f9db9 in esp_vApplicationIdleHook () at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58
#2  0x401bd614 in prvIdleTask (pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:4344
#3  0x400907f9 in vPortTaskWrapper (pxCode=0x401bd608 <prvIdleTask>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 4 (TCB: 0x3ffd95d0, name: 'IDLE1') =====================
#0  0x4008f086 in esp_cpu_wait_for_intr () at /home/lieven/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64
#1  0x400f9db9 in esp_vApplicationIdleHook () at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58
#2  0x401bd614 in prvIdleTask (pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:4344
#3  0x400907f9 in vPortTaskWrapper (pxCode=0x401bd608 <prvIdleTask>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 5 (TCB: 0x3fff3320, name: '') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3fff3138) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3fff30ec, pvBuffer=0x3fff5eb8, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x40113320 in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3fff5eb8, timeout=100) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/port/freertos/sys_arch.c:317
#5  0x401148d2 in netconn_recv_data (conn=0x3fff2ed4, new_buf=0x3fff5f18, apiflags=0 '\000') at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/api_lib.c:615
#6  0x401149b0 in netconn_recv_udp_raw_netbuf_flags (conn=0x3fff2ed4, new_buf=0x3fff5f18, apiflags=0 '\000') at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/api_lib.c:847
#7  0x400ff189 in lwip_recvfrom_udp_raw (sock=0x3ffd3164 <sockets>, flags=0, msg=0x3fff5f60, datagram_len=0x3fff5f56, dbg_s=54) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/sockets.c:1117
#8  0x400fff3a in lwip_recvfrom (s=54, mem=0x3fff3e44, len=2048, flags=0, from=0x3fff5fb0, fromlen=0x3fff5fac) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/sockets.c:1238
#9  0x40184080 in recvfrom (fromlen=0x3fff5fac, from=0x3fff5fb0, flags=0, len=2048, mem=0x3fff3e44, s=54) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/include/lwip/sockets.h:40
#10 _z_read_udp_unicast (sock=..., ptr=0x3fff3e44 <error: Cannot access memory at address 0x3fff3e44>, len=2048) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/network.c:214
#11 0x40180258 in _z_f_link_read_udp_unicast (self=0x3fff2b0c, ptr=0x3fff3e44 <error: Cannot access memory at address 0x3fff3e44>, len=2048, addr=0x0) at .pio/libdeps/ps4/zenoh-pico/src/link/unicast/udp.c:157
#12 0x4017fb1b in _z_link_recv_zbuf (link=0x3fff2b0c, zbf=0x3fff2b8c, addr=0x0) at .pio/libdeps/ps4/zenoh-pico/src/link/link.c:138
#13 0x4017e67a in _zp_unicast_read_task (ztu_arg=0x3fff2b08) at .pio/libdeps/ps4/zenoh-pico/src/transport/unicast/read.c:88
#14 0x4017cc30 in z_task_wrapper (arg=0x3fff2d3c) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:61
#15 0x400907f9 in vPortTaskWrapper (pxCode=0x4017cc24 <z_task_wrapper>, pvParameters=0x3fff2d3c) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 6 (TCB: 0x3ffdc090, name: 'tiT') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffdb200) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffdb1b4, pvBuffer=0x3ffdbfd8, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x40113320 in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffdbfd8, timeout=131) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/port/freertos/sys_arch.c:317
#5  0x40100977 in tcpip_timeouts_mbox_fetch (mbox=0x3ffd33bc <tcpip_mbox>, msg=0x3ffdbfd8) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c:104
#6  0x40100a45 in tcpip_thread (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/lwip/lwip/src/api/tcpip.c:142
#7  0x400907f9 in vPortTaskWrapper (pxCode=0x40100a18 <tcpip_thread>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 7 (TCB: 0x3fff3478, name: '') =====================
#0  0x40081d0c in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
#1  0x401bd9ad in vTaskDelay (xTicksToDelay=3333) at /home/lieven/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:41
#2  0x4017cd8d in z_sleep_ms (time=<optimized out>) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:179
#3  0x4017e55b in _zp_unicast_lease_task (ztu_arg=0x3fff2b08) at .pio/libdeps/ps4/zenoh-pico/src/transport/unicast/lease.c:110
#4  0x4017cc30 in z_task_wrapper (arg=0x3fff2d84) at .pio/libdeps/ps4/zenoh-pico/src/system/espidf/system.c:61
#5  0x400907f9 in vPortTaskWrapper (pxCode=0x4017cc24 <z_task_wrapper>, pvParameters=0x3fff2d84) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 8 (TCB: 0x3ffdae44, name: 'wifi') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffb7bf4) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffb7ba8, pvBuffer=0x3ffdad5c, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x400d4a25 in Channel<WifiCmd*>::receive (timeout=<optimized out>, message=0x3ffdad5c, this=0x3ffc4310 <wifi_actor+16>) at .pio/libdeps/ps4/limero/src/actor.h:33
#5  Actor<WifiEvent, WifiCmd>::loop (this=0x3ffc4300 <wifi_actor>) at .pio/libdeps/ps4/limero/src/actor.h:294
#6  0x400d4ad0 in Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc4300 <wifi_actor>, __closure=0x0) at .pio/libdeps/ps4/limero/src/actor.h:279
#7  Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at .pio/libdeps/ps4/limero/src/actor.h:279
#8  0x400907f9 in vPortTaskWrapper (pxCode=0x400d4ac8 <Actor<WifiEvent, WifiCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc4300 <wifi_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 9 (TCB: 0x3ffdfd4c, name: 'sys') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffb7d50) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffb7d04, pvBuffer=0x3ffe24ac, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x400d4c2d in Channel<SysCmd*>::receive (timeout=<optimized out>, message=0x3ffe24ac, this=0x3ffc3ee8 <sys_actor+16>) at .pio/libdeps/ps4/limero/src/actor.h:33
#5  Actor<SysEvent, SysCmd>::loop (this=0x3ffc3ed8 <sys_actor>) at .pio/libdeps/ps4/limero/src/actor.h:294
#6  0x400d4cd8 in Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3ed8 <sys_actor>, __closure=0x0) at .pio/libdeps/ps4/limero/src/actor.h:279
#7  Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at .pio/libdeps/ps4/limero/src/actor.h:279
#8  0x400907f9 in vPortTaskWrapper (pxCode=0x400d4cd0 <Actor<SysEvent, SysCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3ed8 <sys_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 10 (TCB: 0x3ffbd2c0, name: 'main') =====================
#0  0x40081d0c in esp_crosscore_int_send_yield (core_id=0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/crosscore_int.c:121
#1  0x401bd9ad in vTaskDelay (xTicksToDelay=1000) at /home/lieven/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:41
#2  0x400d5e2d in app_main () at src/main.cpp:183
#3  0x401bc001 in main_task (args=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/app_startup.c:208
#4  0x400907f9 in vPortTaskWrapper (pxCode=0x401bbf38 <main_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 11 (TCB: 0x3ffdfbf4, name: 'zenoh') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffb7cbc) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffb7c70, pvBuffer=0x3ffe14ac, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x400d4b29 in Channel<ZenohCmd*>::receive (timeout=<optimized out>, message=0x3ffe14ac, this=0x3ffc4188 <zenoh_actor+16>) at .pio/libdeps/ps4/limero/src/actor.h:33
#5  Actor<ZenohEvent, ZenohCmd>::loop (this=0x3ffc4178 <zenoh_actor>) at .pio/libdeps/ps4/limero/src/actor.h:294
#6  0x400d4bd4 in Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc4178 <zenoh_actor>, __closure=0x0) at .pio/libdeps/ps4/limero/src/actor.h:279
#7  Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at .pio/libdeps/ps4/limero/src/actor.h:279
#8  0x400907f9 in vPortTaskWrapper (pxCode=0x400d4bcc <Actor<ZenohEvent, ZenohCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc4178 <zenoh_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 12 (TCB: 0x3ffe3d78, name: 'ps4') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffbe0f0 <xKernelLock>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401be709 in xTaskGenericNotifyWait (uxIndexToWait=0, ulBitsToClearOnEntry=<optimized out>, ulBitsToClearOnExit=4294967295, pulNotificationValue=0x0, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5841
#4  0x400e56ec in btstack_run_loop_freertos_execute () at /home/lieven/workspace/bluepad32/src/components/btstack/platform/freertos/btstack_run_loop_freertos.c:202
#5  0x400dce06 in btstack_run_loop_execute () at /home/lieven/workspace/bluepad32/src/components/btstack/src/btstack_run_loop.c:310
#6  0x400d601e in Ps4Actor::on_start (this=0x3ffc3e1c <ps4_actor>) at src/ps4_actor.cpp:38
#7  0x400d4d18 in Actor<Ps4Event, Ps4Cmd>::loop (this=0x3ffc3e1c <ps4_actor>) at .pio/libdeps/ps4/limero/src/actor.h:290
#8  0x400d4de0 in Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3e1c <ps4_actor>, __closure=0x0) at .pio/libdeps/ps4/limero/src/actor.h:279
#9  Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::_FUN(void*) () at .pio/libdeps/ps4/limero/src/actor.h:279
#10 0x400907f9 in vPortTaskWrapper (pxCode=0x400d4dd8 <Actor<Ps4Event, Ps4Cmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3e1c <ps4_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 13 (TCB: 0x3ffe4ec0, name: 'led') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffb7e98) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffb7e4c, pvBuffer=0x3ffe4ddc, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x400d4e39 in Channel<LedCmd*>::receive (timeout=<optimized out>, message=0x3ffe4ddc, this=0x3ffc3de8 <led_actor+16>) at .pio/libdeps/ps4/limero/src/actor.h:33
#5  Actor<LedEvent, LedCmd>::loop (this=0x3ffc3dd8 <led_actor>) at .pio/libdeps/ps4/limero/src/actor.h:294
#6  0x400d4ed8 in Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::operator()(void*) const (arg=0x3ffc3dd8 <led_actor>, __closure=0x0) at .pio/libdeps/ps4/limero/src/actor.h:279
#7  Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::_FUN(void*) () at .pio/libdeps/ps4/limero/src/actor.h:279
#8  0x400907f9 in vPortTaskWrapper (pxCode=0x400d4ed0 <Actor<LedEvent, LedCmd>::start()::{lambda(void*)#1}::_FUN(void*)>, pvParameters=0x3ffc3dd8 <led_actor>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 14 (TCB: 0x3ffe8260, name: 'btstack_stdio') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffe5268) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bcf29 in xQueuePeek (xQueue=0x3ffe521c, pvBuffer=0x3ffe81a0, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:2084
#4  0x400dd793 in btstack_stdio_task (arg=0x0) at /home/lieven/workspace/bluepad32/src/components/btstack/btstack_stdio_esp32.c:135
#5  0x400907f9 in vPortTaskWrapper (pxCode=0x400dd770 <btstack_stdio_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 15 (TCB: 0x3ffb7a50, name: 'ipc1') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffbe0f0 <xKernelLock>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd870 in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5756
#4  0x40081d60 in ipc_task (arg=0x1) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/esp_ipc.c:62
#5  0x400907f9 in vPortTaskWrapper (pxCode=0x40081d30 <ipc_task>, pvParameters=0x1) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 16 (TCB: 0x3ffdd340, name: 'sys_evt') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffdc2a8) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffdc25c, pvBuffer=0x3ffdd25c, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x401b952c in esp_event_loop_run (event_loop=0x3ffdc240, ticks_to_run=4294967295) at /home/lieven/.platformio/packages/framework-espidf/components/esp_event/esp_event.c:560
#5  0x401b9558 in esp_event_loop_run_task (args=0x3ffdc240) at /home/lieven/.platformio/packages/framework-espidf/components/esp_event/esp_event.c:105
#6  0x400907f9 in vPortTaskWrapper (pxCode=0x401b954c <esp_event_loop_run_task>, pvParameters=0x3ffdc240) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 17 (TCB: 0x3ffb7318, name: 'ipc0') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffbe0f0 <xKernelLock>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd870 in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:5756
#4  0x40081d60 in ipc_task (arg=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/esp_system/esp_ipc.c:62
#5  0x400907f9 in vPortTaskWrapper (pxCode=0x40081d30 <ipc_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

==================== THREAD 18 (TCB: 0x3ffed658, name: 'btController') =====================
#0  0x4000bff0 in ?? ()
#1  0x40090a1e in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:560
#2  vPortExitCritical (mux=0x3ffec49c) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:505
#3  0x401bd06d in xQueueReceive (xQueue=0x3ffec450, pvBuffer=0x3ffed5a0, xTicksToWait=<optimized out>) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/queue.c:1632
#4  0x40186094 in queue_recv_hlevel_wrapper (queue=0x3ffec440, item=0x3ffed5a0, block_time_ms=4294967295) at /home/lieven/.platformio/packages/framework-espidf/components/bt/controller/esp32/bt.c:781
#5  0x4016c572 in btdm_controller_task ()
#6  0x400907f9 in vPortTaskWrapper (pxCode=0x4016c54c <btdm_controller_task>, pvParameters=0x0) at /home/lieven/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134


======================= 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  
.rtc_fast_reserved 0x3ff82000 0x0 RW  
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x1c83f R XA
.dram0.data 0x3ffbdb60 0x6270 RW A
.ext_ram_noinit 0x3f800000 0x0 RW  
.ext_ram.bss 0x3f800000 0x0 RW  
.flash.appdesc 0x3f400020 0x100 R  A
.flash.rodata 0x3f400120 0x33990 RW A
.flash.text 0x400d0020 0xf0cc2 R XA
.iram0.data 0x4009cc44 0x0 RW  
.iram0.bss 0x4009cc44 0x0 RW  
.dram0.heap_start 0x3ffd8a90 0x0 RW  
.coredump.tasks.data 0x3ffdfa9c 0x154 RW 
.coredump.tasks.data 0x20000000 0x70 RW 
.coredump.tasks.data 0x3ffbba60 0x154 RW 
.coredump.tasks.data 0x3ffbb7a0 0x2b0 RW 
.coredump.tasks.data 0x3ffd8d74 0x154 RW 
.coredump.tasks.data 0x3ffbd970 0x1a0 RW 
.coredump.tasks.data 0x3ffd95d0 0x154 RW 
.coredump.tasks.data 0x3ffd9420 0x1a0 RW 
.coredump.tasks.data 0x3fff3320 0x154 RW 
.coredump.tasks.data 0x3fff5d50 0x430 RW 
.coredump.tasks.data 0x3ffdc090 0x154 RW 
.coredump.tasks.data 0x3ffdbe50 0x230 RW 
.coredump.tasks.data 0x3fff3478 0x154 RW 
.coredump.tasks.data 0x3fff73a0 0x1e0 RW 
.coredump.tasks.data 0x3ffdae44 0x154 RW 
.coredump.tasks.data 0x3ffdac20 0x210 RW 
.coredump.tasks.data 0x3ffdfd4c 0x154 RW 
.coredump.tasks.data 0x3ffe2370 0x210 RW 
.coredump.tasks.data 0x3ffbd2c0 0x154 RW 
.coredump.tasks.data 0x3ffbd070 0x240 RW 
.coredump.tasks.data 0x3ffdfbf4 0x154 RW 
.coredump.tasks.data 0x3ffe1370 0x210 RW 
.coredump.tasks.data 0x3ffe3d78 0x154 RW 
.coredump.tasks.data 0x3ffe3b10 0x260 RW 
.coredump.tasks.data 0x3ffe4ec0 0x154 RW 
.coredump.tasks.data 0x3ffe4ca0 0x210 RW 
.coredump.tasks.data 0x3ffe8260 0x154 RW 
.coredump.tasks.data 0x3ffe8070 0x1e0 RW 
.coredump.tasks.data 0x3ffb7a50 0x154 RW 
.coredump.tasks.data 0x3ffb7890 0x1b0 RW 
.coredump.tasks.data 0x3ffdd340 0x154 RW 
.coredump.tasks.data 0x3ffdd110 0x220 RW 
.coredump.tasks.data 0x3ffb7318 0x154 RW 
.coredump.tasks.data 0x3ffb7160 0x1b0 RW 
.coredump.tasks.data 0x3ffed658 0x154 RW 
.coredump.tasks.data 0x3ffed450 0x200 RW 

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


@vortex314
Copy link
Author

With the terminal log

ASSERT_PARAM(2097152 0), in rwbt.c at line 360

The ASSERT 8192 changed to somethings else.

I 00:49:59.083 |        main.cpp: 194 |  free heap size: 28352 biggest block : 26624 
I 00:49:59.891 |   ps4_actor.cpp: 141 | custom: device disconnected: 0x3ffd0db4
  #0  0x3ffd0db4 in ?? at /home/lieven/workspace/bluepad32/src/components/bluepad32/uni_hid_device.c:55

I 00:49:59.901 |        main.cpp: 142 | DEVICE_DISCONNECTED
I 00:50:00.098 |        main.cpp: 194 |  free heap size: 34300 biggest block : 30720 
I 00:50:01.110 |        main.cpp: 194 |  free heap size: 34288 biggest block : 30720 
I 00:50:02.122 |        main.cpp: 194 |  free heap size: 32532 biggest block : 30720 
I 00:50:03.136 |        main.cpp: 194 |  free heap size: 32380 biggest block : 30720 
I 00:50:04.150 |        main.cpp: 194 |  free heap size: 32504 biggest block : 30720 
I 00:50:05.162 |        main.cpp: 194 |  free heap size: 32504 biggest block : 30720 
I 00:50:06.173 |        main.cpp: 194 |  free heap size: 32504 biggest block : 30720 
I 00:50:07.185 |        main.cpp: 194 |  free heap size: 34300 biggest block : 30720 
I 00:50:08.198 |        main.cpp: 194 |  free heap size: 34296 biggest block : 30720 
I 00:50:09.210 |        main.cpp: 194 |  free heap size: 34296 biggest block : 30720 
I 00:50:10.222 |        main.cpp: 194 |  free heap size: 34288 biggest block : 30720 
I 00:50:11.233 |        main.cpp: 194 |  free heap size: 34300 biggest block : 30720 
I 00:50:12.244 |        main.cpp: 194 |  free heap size: 32504 biggest block : 30720 
I 00:50:13.254 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:14.266 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:15.277 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:16.290 |        main.cpp: 194 |  free heap size: 34300 biggest block : 30720 
I 00:50:17.302 |        main.cpp: 194 |  free heap size: 34300 biggest block : 30720 
I 00:50:18.315 |        main.cpp: 194 |  free heap size: 32744 biggest block : 30720 
I 00:50:19.326 |        main.cpp: 194 |  free heap size: 34288 biggest block : 30720 
I 00:50:20.340 |        main.cpp: 194 |  free heap size: 32380 biggest block : 30720 
I 00:50:21.358 |        main.cpp: 194 |  free heap size: 32504 biggest block : 30720 
I 00:50:22.368 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:23.379 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:24.389 |        main.cpp: 194 |  free heap size: 32492 biggest block : 30720 
I 00:50:25.402 |        main.cpp: 194 |  free heap size: 34288 biggest block : 30720 
ASSERT_PARAM(2097152 0), in rwbt.c at line 360
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4008eeac: f01d020c 00004136 f01d0000
Core  0 register dump:
PC      : 0x4008eeb3  PS      : 0x00060534  A0      : 0x80088376  A1      : 0x3ffc2670  
A2      : 0x00000000  A3      : 0x00200000  A4      : 0x00000000  A5      : 0x3ff9e7d2  
A6      : 0x00000168  A7      : 0xfffffffc  A8      : 0x8000814b  A9      : 0x3ffc25e0  
A10     : 0x00000000  A11     : 0x3ffc2603  A12     : 0x3ffc25af  A13     : 0x00000030  
A14     : 0x00000000  A15     : 0x3ffc25b4  SAR     : 0x00000004  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  


Backtrace: 0x4008eeb0:0x3ffc2670 0x40088373:0x3ffc2690 0x40055749:0x3ffc26b0 0x4008c03b:0x3ffc26d0 0x40081255:0x3ffc26f0 0x400811c1:0x3ffc2710 0x400811a3:0x00000000 |<-CORRUPTED




ELF file SHA256: de03cbfef

�[0;32mI (19882) esp_core_dump_flash: Save core dump to flash...�[0m
�[0;32mI (19889) esp_core_dump_flash: Erase flash 28672 bytes @ 0x280000�[0m
�[0;32mI (20241) esp_core_dump_flash: Write end offset 0x6d64, check sum length 4�[0m
�[0;32mI (20241) esp_core_dump_flash: Core dump has been saved to flash.�[0m
Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7176
load:0x40078000,len:15564
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3904
entry 0x40080638
�[0;32mI (31) boot: ESP-IDF 5.3.1 2nd stage bootloader�[0m
�[0;32mI (31) boot: compile time Jan 14 2025 01:37:36�[0m
�[0;32mI (31) boot: Multicore bootloader�[0m
�[0;32mI (35) boot: chip revision: v1.0�[0m
�[0;32mI (39) boot.esp32: SPI Speed      : 40MHz�[0m
�[0;32mI (44) boot.esp32: SPI Mode       : DIO�[0m
�[0;32mI (48) boot.esp32: SPI Flash Size : 4MB�[0m
�[0;32mI (53) boot: Enabling RNG early entropy source...�[0m
�[0;32mI (58) boot: Partition Table:�[0m
�[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length�[0m
�[0;32mI (69) boot:  0 nvs              WiFi data        01 02 00009000 00005000�[0m
�[0;32mI (76) boot:  1 otadata          OTA data         01 00 0000e000 00002000�[0m
�[0;32mI (84) boot:  2 app0             OTA app          00 10 00010000 00270000�[0m
�[0;32mI (91) boot:  3 coredump         Unknown data     01 03 00280000 00020000�[0m
�[0;32mI (99) boot: End of partition table�[0m
�[0;32mI (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=33a90h (211600) map�[0m
�[0;32mI (184) esp_image: segment 1: paddr=00043ab8 vaddr=3ffbdb60 size=06270h ( 25200) load�[0m
�[0;32mI (194) esp_image: segment 2: paddr=00049d30 vaddr=40080000 size=062e8h ( 25320) load�[0m
�[0;32mI (204) esp_image: segment 3: paddr=00050020 vaddr=400d0020 size=f0cc4h (986308) map�[0m
�[0;32mI (542) esp_image: segment 4: paddr=00140cec vaddr=400862e8 size=1695ch ( 92508) load�[0m
�[0;32mI (593) boot: Loaded app from partition at offset 0x10000�[0m
�[0;32mI (593) boot: Disabling RNG early entropy source...�[0m
�[0;32mI (605) cpu_start: Multicore app�[0m
�[0;32mI (614) cpu_start: Pro cpu start user code�[0m
�[0;32mI (614) cpu_start: cpu freq: 160000000 Hz�[0m
�[0;32mI (615) app_init: Application information:�[0m
�[0;32mI (617) app_init: Project name:     zenoh-lib�[0m
�[0;32mI (622) app_init: App version:      be54627-dirty�[0m
�[0;32mI (628) app_init: Compile time:     Jan 14 2025 01:36:14�[0m
�[0;32mI (634) app_init: ELF file SHA256:  de03cbfef...�[0m
�[0;32mI (639) app_init: ESP-IDF:          5.3.1�[0m
�[0;32mI (644) efuse_init: Min chip rev:     v0.0�[0m
�[0;32mI (649) efuse_init: Max chip rev:     v3.99 �[0m
�[0;32mI (654) efuse_init: Chip rev:         v1.0�[0m
�[0;32mI (659) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (666) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM�[0m
�[0;32mI (672) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM�[0m
�[0;32mI (678) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM�[0m
�[0;32mI (684) heap_init: At 3FFD8A90 len 00007570 (29 KiB): DRAM�[0m
�[0;32mI (690) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM�[0m
�[0;32mI (696) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (703) heap_init: At 4009CC44 len 000033BC (12 KiB): IRAM�[0m
�[0;32mI (711) spi_flash: detected chip: winbond�[0m
�[0;32mI (714) spi_flash: flash io: dio�[0m
I 00:00:00.009 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.014 |  wifi_actor.cpp:  23 | Starting WiFi actor sizeof(WifiCmd ) : 44 
I 00:00:00.021 |         actor.h:  23 | Channel created [6][4]  
I 00:00:00.027 | zenoh_actor.cpp:  16 | Starting WiFi actor sizeof(ZenohCmd ) : 48 
I 00:00:00.034 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.040 |   sys_actor.cpp:   6 | Starting Sys actor sizeof(SysCmd ) : 48 
I 00:00:00.047 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.053 |   ps4_actor.cpp:  20 | Starting PS4 actor sizeof(Ps4Cmd ) : 36 
I 00:00:00.060 |         actor.h:  23 | Channel created [10][4]  
I 00:00:00.066 |   led_actor.cpp:   8 | Starting LED actor sizeof(LedCmd ) : 16 
�[0;32mI (783) esp_core_dump_flash: Init core dump to flash�[0m
�[0;32mI (789) esp_core_dump_flash: Found partition 'coredump' @ 280000 131072 bytes�[0m
�[0;32mI (835) esp_core_dump_flash: Core dump data checksum is correct�[0m
�[0;32mI (836) esp_core_dump_flash: Found core dump 28004 bytes in flash @ 0x280000�[0m
�[0;32mI (839) coexist: coex firmware version: 4482466�[0m
�[0;32mI (846) main_task: Started on CPU0�[0m
�[0;32mI (849) main_task: Calling app_main()�[0m
I 00:00:00.181 |         actor.h: 289 | starting actor wifi
I 00:00:00.183 |         actor.h: 289 | starting actor zenoh
I 00:00:00.183 |         actor.h: 289 | starting actor sys
I 00:00:00.186 |         actor.h: 289 | starting actor ps4
starting actor led
�[0;32mI (915) uart: queue free spaces: 10�[0m
I 00:00:00.207 |   ps4_actor.cpp:  27 | btdm_controller_get_compile_version()=b022216
I (939) wifi:wifi firmware version: ccaebfaI 00:00:00.231 |   ps4_actor.cpp:  76 | 
custom: init()I (945) wifi:
wifi certification version: v7.0
I (948) wifi:config NVS flash: enabled
I (950) wifi:config nano formating: disabled
I (953) wifi:Init data frame dynamic rx buffer num: 32
I (956) wifi:Init static rx mgmt buffer num: 5
I (958) wifi:Init management short buffer num: 32
I (960) wifi:�[0;32mI (961) BTDM_INIT: BT controller compile version [b022216]�[0m
Init dynamic tx buffer num: 32
I (972) wifi:Init static rx buffer size: 1600
�[0;32mI (975) BTDM_INIT: Bluetooth MAC: 30:ae:a4:ff:22:82�[0m
I (974) wifi:Init static rx buffer num: 10�[0;32mI (984) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08�[0m

I (993) wifi:Init dynamic rx buffer num: 32
�[0;32mI (1002) wifi_init: rx ba win: 6�[0m
�[0;32mI (1004) wifi_init: accept mbox: 6�[0m
�[0;32mI (1006) wifi_init: tcpip mbox: 32�[0m
�[0;32mI (1008) wifi_init: udp mbox: 6�[0m
�[0;32mI (1010) wifi_init: tcp mbox: 6�[0m
�[0;32mI (1012) wifi_init: tcp tx win: 5760�[0m
�[0;32mI (1018) wifi_init: tcp rx win: 5760�[0m
�[0;32mI (1020) wifi_init: tcp mss: 1440�[0m
�[0;32mI (1027) wifi_init: WiFi IRAM OP enabled�[0m
�[0;32mI (1029) wifi_init: WiFi RX IRAM OP enabled�[0m
I (1086) wifi:mode : sta (30:ae:a4:ff:22:80)
I (1094) wifi:enable tsf
I (1347) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (1351) wifi:state: init -> auth (0xb0)
I (1359) wifi:state: auth -> assoc (0x0)
I (1369) wifi:state: assoc -> run (0x10)
I (1376) wifi:<ba-add>idx:0 (ifx:0, 00:23:cd:19:fc:f5), tid:0, ssn:0, winSize:64
I (1396) wifi:connected with Merckx2, aid = 1, channel 1, BW20, bssid = 00:23:cd:19:fc:f5
I (1401) wifi:security: WPA2-PSK, phy: bgn, rssi: -35
I 00:00:00.694 |  wifi_actor.cpp: 432 | I (1409) wifi:pm start, type: 1
Max AP number ap_info can hold = 10

I (1415) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I 00:00:00.711 |  wifi_actor.cpp: 435 | Total APs scanned = 0, actual AP number ap_info holds = 0
I 00:00:00.721 |  wifi_actor.cpp: 455 | Highest RSSI = -128, AP index = 0
I 00:00:00.726 |  wifi_actor.cpp:  41 | Scanned SSID: 
W (1442) wifi:Password length matches WPA2 standards, authmode threshold changes from OPEN to WPA2
I 00:00:00.739 |  wifi_actor.cpp: 148 | Connecting to WiFi network...
BTstack up and running at 30:AE:A4:FF:22:82
I 00:00:00.781 |   ps4_actor.cpp:  99 | custom: on_init_complete()
I (1498) wifi:AP's beacon interval = 102400 us, DTIM period = 1I 00:00:00.790 |   ps4_actor.cpp: 231 | 
custom: Bluetooth enabled: 1
6C F6 41 76 8A C1 C7 10 6F 4E 51 DE 33 98 FC 28 
I (1729) wifi:<ba-add>idx:1 (ifx:0, 00:23:cd:19:fc:f5), tid:6, ssn:0, winSize:64
I 00:00:01.188 |        main.cpp: 194 |  free heap size: 54804 biggest block : 53248 
I 00:00:02.193 |        main.cpp: 194 |  free heap size: 54624 biggest block : 53248 
�[0;32mI (2929) esp_netif_handlers: sta ip: 192.168.0.231, mask: 255.255.255.0, gw: 192.168.0.1�[0m
I 00:00:02.317 | zenoh_actor.cpp:  52 | Connected to Zenoh.
I 00:00:02.323 | zenoh_actor.cpp: 156 | Declaring subscriber for 'dst/lm1/**'...
I 00:00:02.338 | zenoh_actor.cpp: 165 | OK
I 00:00:03.201 |        main.cpp: 194 |  free heap size: 32872 biggest block : 30720 
I 00:00:04.210 |        main.cpp: 194 |  free heap size: 32872 biggest block : 30720 
I 00:00:05.225 |        main.cpp: 194 |  free heap size: 32708 biggest block : 30720 
I 00:00:06.237 |        main.cpp: 194 |  free heap size: 32904 biggest block : 30720 
I 00:00:07.249 |        main.cpp: 194 |  free heap size: 32892 biggest block : 30720 
I 00:00:08.262 |        main.cpp: 194 |  free heap size: 32904 biggest block : 30720 
I 00:00:09.273 |        main.cpp: 194 |  free heap size: 32544 biggest block : 30720 
I 00:00:10.289 |        main.cpp: 194 |  free heap size: 32664 biggest block : 30720 
I 00:00:11.300 |        main.cpp: 194 |  free heap size: 32668 biggest block : 30720 
I 00:00:12.312 |        main.cpp: 194 |  free heap size: 32668 biggest block : 30720 
I 00:00:13.323 |        main.cpp: 194 |  free heap size: 34460 biggest block : 30720 
I 00:00:14.339 |        main.cpp: 194 |  free heap size: 32904 biggest block : 30720 
I 00:00:15.350 |        main.cpp: 194 |  free heap size: 32904 biggest block : 30720 
I 00:00:16.359 |        main.cpp: 194 |  free heap size: 32904 biggest block : 30720 

@vortex314
Copy link
Author

@ESP-YTGerd can you share the piece of code and what this assert is testing ? Maybe it can give me a clue where to look for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants