W01 crashes with WIFI tx at max power



  • Hello

    We have developed a pcb with the oem module W01 (firmware is WiPy-1.20.2.r0)

    If we turn on the Bluetooth and keep the maximum wifi power then most of the time the pycom crashes in about 5 minutes (some times pycom runs for 30 minutes or little more but it always crashes).

    However, if we decrease the tx power of wifi, for example with the function max_tx_power(52), then the module will run without issues.

    We don’t think the problem is the power supply, because among the various tests we did we directly powered the oem module with a power supply that can deliver 10A at 3.3v

    Our pcb is designed to run four 12v motors that we supply by a boost converter and a 3.7v battery, the 3.3v for the pycom is obtained by a buck (step-down) converter that decrease the 12v to 3.3v. But as we mentioned we powered the pycom directly with a big 3.3v power supply (and without motors connected).

    We have collected several dumps and decoded them by espcoredump.py
    Task handle can change, GDB name can change, function in current thread stack can change but the pycom always crashes at wifi thread:

    ==================== ESP32 CORE DUMP START ====================
    Crashed task handle: 0x3ffb4344, name: 'wifi', GDB name: 'process 1073431364'

    We noticed that the last function of the last thread in the dump is :

    =============== THREAD 19 (TCB: 0x3ffbb2c4, name: 'SmartConfig') ================

    0x400e6a93 in TASK_SMART_CONFIG (pvParameters=<optimized out>) at mods/modwlan.c:974

    below we attach a dump and the sample code of our test

    ===============================================================
    ==================== ESP32 CORE DUMP START ====================
    
    Crashed task handle: 0x3ffb4344, name: 'wifi', GDB name: 'process 1073431364'
    
    ================== CURRENT THREAD REGISTERS ===================
    exccause       0x0 (IllegalInstructionCause)
    excvaddr       0x0
    epc1           0x0
    epc2           0x0
    epc3           0x0
    epc4           0x0
    epc5           0x0
    epc6           0x0
    epc7           0x0
    eps2           0x0
    eps3           0x0
    eps4           0x0
    eps5           0x0
    eps6           0x0
    eps7           0x0
    pc             0x40145482       0x40145482
    lbeg           0x40091ac8       1074338504
    lend           0x40091af6       1074338550
    lcount         0xffffffff       4294967295
    sar            0x20     32
    ps             0x60d20  396576
    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             0x80145ae7       -2146149657
    a1             0x3ffb41d0       1073430992
    a2             0x3ffcbff0       1073528816
    a3             0x0      0
    a4             0x0      0
    a5             0x0      0
    a6             0x3ffdf88c       1073608844
    a7             0x0      0
    a8             0xb33fffff       -1287651329
    a9             0xcdcd   52685
    a10            0x3ffc0e38       1073483320
    a11            0x2      2
    a12            0xb33fffff       -1287651329
    a13            0xcdcd   52685
    a14            0x1      1
    a15            0x3ffbe6e0       1073473248
    
    ==================== CURRENT THREAD STACK =====================
    #0  0x40145482 in ?? ()
    #1  0x40145ae7 in lmacProcessAckTimeout ()
    #2  0x40145b8b in lmacProcessTxError ()
    #3  0x40145e3c in lmacProcessTxComplete ()
    #4  0x4014abb7 in ppTask ()
    
    ======================== THREADS INFO =========================
      Id   Target Id         Frame
    * 1    process 1073431364 0x40145482 in ?? ()
      2    process 1073461568 0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      3    process 1073462964 0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      4    process 1073455028 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb9edc, pvBuffer=0x3ffbaf30, xTicksToWait=36, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      5    process 1073497036 0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      6    process 1073466144 0x40096365 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:589
      7    process 1073587804 0x4000bff0 in ?? ()
      8    process 1073445936 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb7bd8, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      9    process 1073459364 0x40094458 in xQueueGenericReceive (xQueue=0x3ffbd428, pvBuffer=0x3ffd72d0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      10   process 1073445480 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb760c, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      11   process 1073582992 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe7b1c, pvBuffer=0x3ffd917c, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      12   process 1073554572 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3660, pvBuffer=0x3ffd23f0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      13   process 1073551640 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3094, pvBuffer=0x3ffd1880, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      14   process 1073589224 0x40094458 in xQueueGenericReceive (xQueue=0x3ffd9500, pvBuffer=0x3ffdcca0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      15   process 1073557504 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3a40, pvBuffer=0x3ffd2f60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      16   process 1073557872 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe597c, pvBuffer=0x3ffe6e60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      17   process 1073547340 0x40094458 in xQueueGenericReceive (xQueue=0x3ffcf7f0, pvBuffer=0x3ffd07b0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      18   process 1073443452 0x40094458 in xQueueGenericReceive (xQueue=0x3ffc3e20 <s_timer_semaphore_memory>, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      19   process 1073459908 0x4000bff0 in ?? ()
    
    ==================== THREAD 1 (TCB: 0x3ffb4344, name: 'wifi') =====================
    #0  0x40145482 in ?? ()
    #1  0x40145ae7 in lmacProcessAckTimeout ()
    #2  0x40145b8b in lmacProcessTxError ()
    #3  0x40145e3c in lmacProcessTxComplete ()
    #4  0x4014abb7 in ppTask ()
    
    ==================== THREAD 2 (TCB: 0x3ffbb940, name: 'IDLE0') =====================
    #0  0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
    #1  0x40166562 in esp_vApplicationIdleHook () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/freertos_hooks.c:63
    #2  0x40095434 in prvIdleTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:3382
    
    ==================== THREAD 3 (TCB: 0x3ffbbeb4, name: 'IDLE1') =====================
    #0  0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
    #1  0x40166562 in esp_vApplicationIdleHook () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/freertos_hooks.c:63
    #2  0x40095434 in prvIdleTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:3382
    
    ==================== THREAD 4 (TCB: 0x3ffb9fb4, name: 'tiT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb9edc, pvBuffer=0x3ffbaf30, xTicksToWait=36, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x4018184d in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffbaf30, timeout=36) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:297
    #2  0x40179d1f in sys_timeouts_mbox_fetch (mbox=0x3ffce240 <mbox>, msg=0x3ffbaf30) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/core/timeouts.c:430
    #3  0x40172783 in tcpip_thread (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/tcpip.c:109
    
    ==================== THREAD 5 (TCB: 0x3ffc43cc, name: 'MicroPy') =====================
    #0  0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
    #1  0x400e0c41 in mp_hal_delay_ms (delay=1) at hal/esp32_mphal.c:217
    #2  0x400e0cb9 in mp_hal_stdin_rx_chr () at hal/esp32_mphal.c:148
    #3  0x400e11d8 in readline (line=0x3ffd6600, prompt=0x3f4018a7 \">>> \") at ../lib/mp-readline/readline.c:425
    #4  0x400e144a in pyexec_friendly_repl () at ../lib/utils/pyexec.c:474
    #5  0x400dffd4 in TASK_Micropython (pvParameters=<optimized out>) at mptask.c:341
    
    ==================== THREAD 6 (TCB: 0x3ffbcb20, name: 'Tmr Svc') =====================
    #0  0x40096365 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:589
    #1  prvTimerTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:544
    
    ==================== THREAD 7 (TCB: 0x3ffda65c, name: 'Socket Operatio') =====================
    #0  0x4000bff0 in ?? ()
    #1  0x40094d6c in vTaskExitCritical (mux=0x3ffbdd44 <xTaskQueueMutex>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4274
    #2  0x40095e72 in ulTaskNotifyTake (xClearCountOnExit=1, xTicksToWait=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4664
    #3  0x400e5cae in TASK_SOCK_OPS (pvParameters=<optimized out>) at mods/modusocket.c:704
    
    ==================== THREAD 8 (TCB: 0x3ffb7c30, name: 'ipc1') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb7bd8, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40081c4c in ipc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/ipc.c:51
    
    ==================== THREAD 9 (TCB: 0x3ffbb0a4, name: 'eventTask') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffbd428, pvBuffer=0x3ffd72d0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40166434 in esp_event_loop_task (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/event_loop.c:53
    
    ==================== THREAD 10 (TCB: 0x3ffb7a68, name: 'ipc0') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb760c, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40081c4c in ipc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/ipc.c:51
    
    ==================== THREAD 11 (TCB: 0x3ffd9390, name: 'Servers') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe7b1c, pvBuffer=0x3ffd917c, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x4018184d in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffd917c, timeout=4294967295) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:297
    #2  0x40181cdb in netconn_recv_data (conn=0x3fbc82e4, new_buf=0x3ffd91f0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/api_lib.c:550
    #3  0x4018208f in netconn_recv_tcp_pbuf (conn=<optimized out>, new_buf=0x3ffd91f0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/api_lib.c:654
    #4  0x401712cd in lwip_recvfrom (s=<optimized out>, mem=0x3ffda86c, len=96, flags=0, from=0x0, fromlen=0x0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:1034
    #5  0x40172085 in lwip_recvfrom_r (s=56, mem=0x3ffda86c, len=96, flags=0, from=0x0, fromlen=0x0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:3399
    #6  0x401720e1 in lwip_recv_r (s=56, mem=0x3ffda86c, len=96, flags=0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:3406
    #7  0x400f4422 in recv (flags=0, len=96, mem=0x3ffda86c, s=<optimized out>) at /var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp-idf/components/lwip/lwip/src/include/lwip/sockets.h:583
    #8  telnet_recv_text_non_blocking (buff=0x3ffda86c, Maxlen=96, rxLen=0x3ffd92c0) at telnet/telnet.c:411
    #9  0x400f4907 in telnet_process () at telnet/telnet.c:435
    #10 telnet_run () at telnet/telnet.c:247
    #11 0x400e00a1 in TASK_Servers (pvParameters=<optimized out>) at serverstask.c:103
    
    ==================== THREAD 12 (TCB: 0x3ffd248c, name: 'hciHostT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3660, pvBuffer=0x3ffd23f0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401d44d0 in hci_host_thread_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/hci/hci_layer.c:225
    
    ==================== THREAD 13 (TCB: 0x3ffd1918, name: 'Btc_task') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3094, pvBuffer=0x3ffd1880, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401aff80 in btc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/btc/core/btc_task.c:103
    
    ==================== THREAD 14 (TCB: 0x3ffdabe8, name: 'IRQs') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffd9500, pvBuffer=0x3ffdcca0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x400f3ba4 in TASK_Interrupts (pvParameters=<optimized out>) at util/mpirq.c:61
    #2  0x400e074c in freertos_entry (arg=0x3ffc9044 <mpirq_args>) at mpthreadport.c:140
    
    ==================== THREAD 15 (TCB: 0x3ffd3000, name: 'hciH4T') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe3a40, pvBuffer=0x3ffd2f60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401e2628 in hci_hal_h4_rx_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/hci/hci_hal_h4.c:175
    
    ==================== THREAD 16 (TCB: 0x3ffd3170, name: 'btuT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe597c, pvBuffer=0x3ffe6e60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401bf9c4 in btu_task_thread_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/stack/btu/btu_task.c:222
    
    ==================== THREAD 17 (TCB: 0x3ffd084c, name: 'btController') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffcf7f0, pvBuffer=0x3ffd07b0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401ad979 in queue_recv_wrapper (queue=0x3ffcf7f0, item=0x3ffd07b0, block_time_ms=4294967295) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bt.c:710
    #2  0x401ed4ac in btdm_controller_task ()
    
    ==================== THREAD 18 (TCB: 0x3ffb727c, name: 'esp_timer') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffc3e20 <s_timer_semaphore_memory>, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x400d23dd in timer_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/esp_timer.c:324
    
    ==================== THREAD 19 (TCB: 0x3ffbb2c4, name: 'SmartConfig') =====================
    #0  0x4000bff0 in ?? ()
    #1  0x40094d6c in vTaskExitCritical (mux=0x3ffbdd44 <xTaskQueueMutex>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4274
    #2  0x40095e72 in ulTaskNotifyTake (xClearCountOnExit=1, xTicksToWait=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4664
    #3  0x400e6a93 in TASK_SMART_CONFIG (pvParameters=<optimized out>) at mods/modwlan.c:974
    
    
    ======================= ALL MEMORY REGIONS ========================
    Name   Address   Size   Attrs
    .rtc.text 0x400c0000 0x64 R XA
    .rtc.data 0x50000000 0x818 RW A
    .rtc_noinit 0x50000818 0x0 RW
    .rtc.force_slow 0x50000818 0x0 RW
    .iram0.vectors 0x40080000 0x400 R XA
    .iram0.text 0x40080400 0x16ea0 R XA
    .dram0.data 0x3ffbdb60 0x473c RW A
    .noinit 0x3ffc229c 0x0 RW
    .flash.rodata 0x3f400020 0x44cc4 RW A
    .flash.text 0x400d0018 0x134b24 R XA
    .coredump.tasks.data 0x3ffb4344 0x16c RW
    .coredump.tasks.data 0x3ffb4110 0x22c RW
    .coredump.tasks.data 0x3ffbb940 0x16c RW
    .coredump.tasks.data 0x3ffbb7a0 0x198 RW
    .coredump.tasks.data 0x3ffbbeb4 0x16c RW
    .coredump.tasks.data 0x3ffbbd10 0x19c RW
    .coredump.tasks.data 0x3ffb9fb4 0x16c RW
    .coredump.tasks.data 0x3ffbadd0 0x1f4 RW
    .coredump.tasks.data 0x3ffc43cc 0x16c RW
    .coredump.tasks.data 0x3ffd64b0 0x2cc RW
    .coredump.tasks.data 0x3ffbcb20 0x16c RW
    .coredump.tasks.data 0x3ffbc9c0 0x158 RW
    .coredump.tasks.data 0x3ffda65c 0x16c RW
    .coredump.tasks.data 0x3ffda4c0 0x194 RW
    .coredump.tasks.data 0x3ffb7c30 0x16c RW
    .coredump.tasks.data 0x3ffb9cb0 0x188 RW
    .coredump.tasks.data 0x3ffbb0a4 0x16c RW
    .coredump.tasks.data 0x3ffd71d0 0x1b0 RW
    .coredump.tasks.data 0x3ffb7a68 0x16c RW
    .coredump.tasks.data 0x3ffb78e0 0x180 RW
    .coredump.tasks.data 0x3ffd9390 0x16c RW
    .coredump.tasks.data 0x3ffd9030 0x358 RW
    .coredump.tasks.data 0x3ffd248c 0x16c RW
    .coredump.tasks.data 0x3ffd22f0 0x194 RW
    .coredump.tasks.data 0x3ffd1918 0x16c RW
    .coredump.tasks.data 0x3ffd1780 0x190 RW
    .coredump.tasks.data 0x3ffdabe8 0x16c RW
    .coredump.tasks.data 0x3ffdcb40 0x214 RW
    .coredump.tasks.data 0x3ffd3000 0x16c RW
    .coredump.tasks.data 0x3ffd2e60 0x198 RW
    .coredump.tasks.data 0x3ffd3170 0x16c RW
    .coredump.tasks.data 0x3ffe6d60 0x190 RW
    .coredump.tasks.data 0x3ffd084c 0x16c RW
    .coredump.tasks.data 0x3ffd0690 0x1b4 RW
    .coredump.tasks.data 0x3ffb727c 0x16c RW
    .coredump.tasks.data 0x3ffb70e0 0x194 RW
    .coredump.tasks.data 0x3ffbb2c4 0x16c RW
    .coredump.tasks.data 0x3ffd81f0 0x194 RW
    
    ===================== ESP32 CORE DUMP END =====================
    ===============================================================
    

    the main:

    import ble #bluetooth function
    from network import WLAN
    import _thread
    import time
    
    t0 = time.time()
    
    wlan = WLAN()
    #wlan.max_tx_power(52) #comment to crash
    
    ble.activate()
    
    def print_time():
        global t0
        while True:
            time.sleep(1)
            t1 = time.time() - t0
            str_t1 = str(t1)
            print("time elapsed: " + str_t1 + " sec.")
    
    _thread.start_new_thread(print_time, ())
    

    ble:

    from network import Bluetooth
    import binascii
    
    def uuid2bytes(uuid):
        uuid = uuid.encode().replace(b'-',b'')
        tmp = binascii.unhexlify(uuid)
        return bytes(reversed(tmp))
    
    def activate():
        bluetooth = Bluetooth(modem_sleep=False)
    
        bluetooth.set_advertisement(name='TESTBLE', service_uuid=b'1234567890abcdef')
    
        bluetooth.advertise(True)
    
        """
        srv1 = bluetooth.service(uuid=uuid2bytes('5922fea0-4444-11e7-9598-0800200c9a66'), isprimary=True, nbr_chars=2)
        chr1 = srv1.characteristic(uuid=uuid2bytes('5922fea0-4444-11e7-9598-0800200c0002'), properties=Bluetooth.PROP_INDICATE | Bluetooth.PROP_BROADCAST | Bluetooth.PROP_READ | Bluetooth.PROP_NOTIFY, value='InitialValue')
        chr2 = srv1.characteristic(uuid=uuid2bytes('5922fea0-4444-11e7-9598-0800200c0001'), properties=Bluetooth.PROP_INDICATE | Bluetooth.PROP_BROADCAST | Bluetooth.PROP_WRITE | Bluetooth.PROP_NOTIFY, value='InitialValue')
        """
    
    


  • Hello, I took an old PCB with a W01 module, and with our test code it works without crash (I have tried it for 4 hours). And I uploaded the same pycom firmware.

    That old pcb is the prototype of the pcb where the W01 crashes.

    They have some differences, for example the antenna position, the antenna size, pcb layers etc.

    But even the W01 have some differences (such as the text on top of the metal plate).

    You can see below the pycom that crashes (with wiring to power the pycom directly by a 3.3v-10A power supply):

    alt text

    Below you can see the pycom that works:

    alt text

    one test I'm going to do is swap pycom W01 between the two PCB.



  • Hi @robert-hh

    I suspected it too. But then we conducted tests with the pcb on a table. I put my finger on the W01. it doesn't get hot.

    I also thought it might be some EMI interference. But I don't have the right equipment to check it out. In any case it seems strange to me. Since we have disconnected all the motors.

    We have two OEM W01 modules and the problem occurs on both of them.

    We also have two WiPy with expansion board 3 and they have no problems.

    Either the OEM modules are faulty (but it seems strange to me) or it is something in our pcb layout. But now we power directly the oem without motors or other components that can cause heavy EMI noise



  • @amstaff88 Could it be a thermal problem?



  • Hi @Gijs

    Unfortunately it didn't solve the problem. Here is the dump:

    ==================== ESP32 CORE DUMP START ====================
    
    Crashed task handle: 0x3ffb4344, name: 'wifi', GDB name: 'process 1073431364'
    
    ================== CURRENT THREAD REGISTERS ===================
    exccause       0x0 (IllegalInstructionCause)
    excvaddr       0x0
    epc1           0x0
    epc2           0x0
    epc3           0x0
    epc4           0x0
    epc5           0x0
    epc6           0x0
    epc7           0x0
    eps2           0x0
    eps3           0x0
    eps4           0x0
    eps5           0x0
    eps6           0x0
    eps7           0x0
    pc             0x40145abb       0x40145abb <lmacProcessAckTimeout+247>
    lbeg           0x40091ac8       1074338504
    lend           0x40091af6       1074338550
    lcount         0xffffffff       4294967295
    sar            0x20     32
    ps             0x60d20  396576
    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             0x0      0
    a1             0x3ffb4200       1073431040
    a2             0x3ffcc560       1073530208
    a3             0x0      0
    a4             0x60d20  396576
    a5             0x1      1
    a6             0xfe     254
    a7             0x0      0
    a8             0x0      0
    a9             0x3ffdf88c       1073608844
    a10            0x3ffcbff0       1073528816
    a11            0x0      0
    a12            0x0      0
    a13            0x3ffcbff0       1073528816
    a14            0x0      0
    a15            0x0      0
    
    ==================== CURRENT THREAD STACK =====================
    #0  0x40145abb in lmacProcessAckTimeout ()
    
    ======================== THREADS INFO =========================
      Id   Target Id         Frame
    * 1    process 1073431364 0x40145abb in lmacProcessAckTimeout ()
      2    process 1073462964 0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      3    process 1073461568 0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      4    process 1073455028 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb9edc, pvBuffer=0x3ffbaf30, xTicksToWait=46, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      5    process 1073639864 0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      6    process 1073497036 0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      7    process 1073466144 0x40096365 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:589
      8    process 1073587804 0x4000bff0 in ?? ()
      9    process 1073589224 0x40094458 in xQueueGenericReceive (xQueue=0x3ffd9500, pvBuffer=0x3ffdcca0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      10   process 1073445480 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb760c, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      11   process 1073445936 0x40094458 in xQueueGenericReceive (xQueue=0x3ffb7bd8, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      12   process 1073554572 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe496c, pvBuffer=0x3ffd23f0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      13   process 1073557504 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe4d4c, pvBuffer=0x3ffd2f60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      14   process 1073557872 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe4ebc, pvBuffer=0x3ffe63a0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      15   process 1073551640 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe43c4, pvBuffer=0x3ffd1880, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      16   process 1073459364 0x40094458 in xQueueGenericReceive (xQueue=0x3ffbd428, pvBuffer=0x3ffd72d0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      17   process 1073582992 0x40094458 in xQueueGenericReceive (xQueue=0x3ffe872c, pvBuffer=0x3ffd917c, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      18   process 1073547340 0x40094458 in xQueueGenericReceive (xQueue=0x3ffcf7f0, pvBuffer=0x3ffd07b0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      19   process 1073443452 0x40094458 in xQueueGenericReceive (xQueue=0x3ffc3e20 <s_timer_semaphore_memory>, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      20   process 1073459908 0x4000bff0 in ?? ()
    
    ==================== THREAD 1 (TCB: 0x3ffb4344, name: 'wifi') =====================
    #0  0x40145abb in lmacProcessAckTimeout ()
    
    ==================== THREAD 2 (TCB: 0x3ffbbeb4, name: 'IDLE1') =====================
    #0  0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
    #1  0x40166562 in esp_vApplicationIdleHook () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/freertos_hooks.c:63
    #2  0x40095434 in prvIdleTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:3382
    
    ==================== THREAD 3 (TCB: 0x3ffbb940, name: 'IDLE0') =====================
    #0  0x40201f06 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
    #1  0x40166562 in esp_vApplicationIdleHook () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/freertos_hooks.c:63
    #2  0x40095434 in prvIdleTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:3382
    
    ==================== THREAD 4 (TCB: 0x3ffb9fb4, name: 'tiT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb9edc, pvBuffer=0x3ffbaf30, xTicksToWait=46, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x4018184d in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffbaf30, timeout=46) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:297
    #2  0x40179d1f in sys_timeouts_mbox_fetch (mbox=0x3ffce240 <mbox>, msg=0x3ffbaf30) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/core/timeouts.c:430
    #3  0x40172783 in tcpip_thread (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/tcpip.c:109
    
    ==================== THREAD 5 (TCB: 0x3ffe71b8, name: 'MPThread') =====================
    #0  0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
    #1  0x400e0c41 in mp_hal_delay_ms (delay=1000) at hal/esp32_mphal.c:217
    #2  0x40113a5a in time_sleep (seconds_o=<optimized out>) at mods/modutime.c:137
    #3  0x40101394 in fun_builtin_1_call (self_in=0x3f42907c <time_sleep_obj>, n_args=1, n_kw=0, args=0x3ffe859c) at ../py/objfun.c:70
    #4  0x400fd7bc in mp_call_function_n_kw (fun_in=0x3f42907c <time_sleep_obj>, n_args=1, n_kw=0, args=0x3ffe859c) at ../py/runtime.c:624
    #5  0x400fd84c in mp_call_method_n_kw (n_args=1, n_kw=0, args=0x3ffe8594) at ../py/runtime.c:640
    #6  0x401097fa in mp_execute_bytecode (code_state=0x3ffe8580, inject_exc=0x0) at ../py/vm.c:1002
    #7  0x401014a7 in fun_bc_call (self_in=<optimized out>, n_args=<optimized out>, n_kw=0, args=0x3f94f1d8) at ../py/objfun.c:287
    #8  0x400fd7bc in mp_call_function_n_kw (fun_in=0x3f94f1b0, n_args=0, n_kw=0, args=0x3f94f1d8) at ../py/runtime.c:624
    #9  0x401087db in thread_entry (args_in=0x3f94f1c0) at ../py/modthread.c:187
    #10 0x400e074c in freertos_entry (arg=0x3f94f1c0) at mpthreadport.c:140
    
    ==================== THREAD 6 (TCB: 0x3ffc43cc, name: 'MicroPy') =====================
    #0  0x40095252 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
    #1  0x400e0c41 in mp_hal_delay_ms (delay=1) at hal/esp32_mphal.c:217
    #2  0x400e0cb9 in mp_hal_stdin_rx_chr () at hal/esp32_mphal.c:148
    #3  0x400e11d8 in readline (line=0x3ffd6600, prompt=0x3f4018a7 \">>> \") at ../lib/mp-readline/readline.c:425
    #4  0x400e144a in pyexec_friendly_repl () at ../lib/utils/pyexec.c:474
    #5  0x400dffd4 in TASK_Micropython (pvParameters=<optimized out>) at mptask.c:341
    
    ==================== THREAD 7 (TCB: 0x3ffbcb20, name: 'Tmr Svc') =====================
    #0  0x40096365 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:589
    #1  prvTimerTask (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:544
    
    ==================== THREAD 8 (TCB: 0x3ffda65c, name: 'Socket Operatio') =====================
    #0  0x4000bff0 in ?? ()
    #1  0x40094d6c in vTaskExitCritical (mux=0x3ffbdd44 <xTaskQueueMutex>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4274
    #2  0x40095e72 in ulTaskNotifyTake (xClearCountOnExit=1, xTicksToWait=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4664
    #3  0x400e5cae in TASK_SOCK_OPS (pvParameters=<optimized out>) at mods/modusocket.c:704
    
    ==================== THREAD 9 (TCB: 0x3ffdabe8, name: 'IRQs') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffd9500, pvBuffer=0x3ffdcca0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x400f3ba4 in TASK_Interrupts (pvParameters=<optimized out>) at util/mpirq.c:61
    #2  0x400e074c in freertos_entry (arg=0x3ffc9044 <mpirq_args>) at mpthreadport.c:140
    
    ==================== THREAD 10 (TCB: 0x3ffb7a68, name: 'ipc0') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb760c, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40081c4c in ipc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/ipc.c:51
    
    ==================== THREAD 11 (TCB: 0x3ffb7c30, name: 'ipc1') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffb7bd8, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40081c4c in ipc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/ipc.c:51
    
    ==================== THREAD 12 (TCB: 0x3ffd248c, name: 'hciHostT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe496c, pvBuffer=0x3ffd23f0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401d44d0 in hci_host_thread_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/hci/hci_layer.c:225
    
    ==================== THREAD 13 (TCB: 0x3ffd3000, name: 'hciH4T') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe4d4c, pvBuffer=0x3ffd2f60, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401e2628 in hci_hal_h4_rx_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/hci/hci_hal_h4.c:175
    
    ==================== THREAD 14 (TCB: 0x3ffd3170, name: 'btuT') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe4ebc, pvBuffer=0x3ffe63a0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401bf9c4 in btu_task_thread_handler (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/stack/btu/btu_task.c:222
    
    ==================== THREAD 15 (TCB: 0x3ffd1918, name: 'Btc_task') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe43c4, pvBuffer=0x3ffd1880, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401aff80 in btc_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bluedroid/btc/core/btc_task.c:103
    
    ==================== THREAD 16 (TCB: 0x3ffbb0a4, name: 'eventTask') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffbd428, pvBuffer=0x3ffd72d0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x40166434 in esp_event_loop_task (pvParameters=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/event_loop.c:53
    
    ==================== THREAD 17 (TCB: 0x3ffd9390, name: 'Servers') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffe872c, pvBuffer=0x3ffd917c, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x4018184d in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffd917c, timeout=4294967295) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:297
    #2  0x40181cdb in netconn_recv_data (conn=0x3fbc7448, new_buf=0x3ffd91f0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/api_lib.c:550
    #3  0x4018208f in netconn_recv_tcp_pbuf (conn=<optimized out>, new_buf=0x3ffd91f0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/api_lib.c:654
    #4  0x401712cd in lwip_recvfrom (s=<optimized out>, mem=0x3ffda84d, len=127, flags=0, from=0x0, fromlen=0x0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:1034
    #5  0x40172085 in lwip_recvfrom_r (s=56, mem=0x3ffda84d, len=127, flags=0, from=0x0, fromlen=0x0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:3399
    #6  0x401720e1 in lwip_recv_r (s=56, mem=0x3ffda84d, len=127, flags=0) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/sockets.c:3406
    #7  0x400f4422 in recv (flags=0, len=127, mem=0x3ffda84d, s=<optimized out>) at /var/jenkins_home/workspace/com_pycom-micropython-sigfox_Dev/esp-idf/components/lwip/lwip/src/include/lwip/sockets.h:583
    #8  telnet_recv_text_non_blocking (buff=0x3ffda84d, Maxlen=127, rxLen=0x3ffd92c0) at telnet/telnet.c:411
    #9  0x400f4907 in telnet_process () at telnet/telnet.c:435
    #10 telnet_run () at telnet/telnet.c:247
    #11 0x400e00a1 in TASK_Servers (pvParameters=<optimized out>) at serverstask.c:103
    
    ==================== THREAD 18 (TCB: 0x3ffd084c, name: 'btController') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffcf7f0, pvBuffer=0x3ffd07b0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x401ad979 in queue_recv_wrapper (queue=0x3ffcf7f0, item=0x3ffd07b0, block_time_ms=4294967295) at /Users/ehlers/pycom/pycom-esp-idf/components/bt/bt.c:710
    #2  0x401ed4ac in btdm_controller_task ()
    
    ==================== THREAD 19 (TCB: 0x3ffb727c, name: 'esp_timer') =====================
    #0  0x40094458 in xQueueGenericReceive (xQueue=0x3ffc3e20 <s_timer_semaphore_memory>, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
    #1  0x400d23dd in timer_task (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/esp_timer.c:324
    
    ==================== THREAD 20 (TCB: 0x3ffbb2c4, name: 'SmartConfig') =====================
    #0  0x4000bff0 in ?? ()
    #1  0x40094d6c in vTaskExitCritical (mux=0x3ffbdd44 <xTaskQueueMutex>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4274
    #2  0x40095e72 in ulTaskNotifyTake (xClearCountOnExit=1, xTicksToWait=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:4664
    #3  0x400e6a93 in TASK_SMART_CONFIG (pvParameters=<optimized out>) at mods/modwlan.c:974
    
    
    ======================= ALL MEMORY REGIONS ========================
    Name   Address   Size   Attrs
    .rtc.text 0x400c0000 0x64 R XA
    .rtc.data 0x50000000 0x818 RW A
    .rtc_noinit 0x50000818 0x0 RW
    .rtc.force_slow 0x50000818 0x0 RW
    .iram0.vectors 0x40080000 0x400 R XA
    .iram0.text 0x40080400 0x16ea0 R XA
    .dram0.data 0x3ffbdb60 0x473c RW A
    .noinit 0x3ffc229c 0x0 RW
    .flash.rodata 0x3f400020 0x44cc4 RW A
    .flash.text 0x400d0018 0x134b24 R XA
    .coredump.tasks.data 0x3ffb4344 0x16c RW
    .coredump.tasks.data 0x3ffb4140 0x1fc RW
    .coredump.tasks.data 0x3ffbbeb4 0x16c RW
    .coredump.tasks.data 0x3ffbbd10 0x19c RW
    .coredump.tasks.data 0x3ffbb940 0x16c RW
    .coredump.tasks.data 0x3ffbb7a0 0x198 RW
    .coredump.tasks.data 0x3ffb9fb4 0x16c RW
    .coredump.tasks.data 0x3ffbadd0 0x1f4 RW
    .coredump.tasks.data 0x3ffe71b8 0x16c RW
    .coredump.tasks.data 0x3ffe8360 0x3c4 RW
    .coredump.tasks.data 0x3ffc43cc 0x16c RW
    .coredump.tasks.data 0x3ffd64b0 0x2cc RW
    .coredump.tasks.data 0x3ffbcb20 0x16c RW
    .coredump.tasks.data 0x3ffbc9c0 0x158 RW
    .coredump.tasks.data 0x3ffda65c 0x16c RW
    .coredump.tasks.data 0x3ffda4c0 0x194 RW
    .coredump.tasks.data 0x3ffdabe8 0x16c RW
    .coredump.tasks.data 0x3ffdcb40 0x214 RW
    .coredump.tasks.data 0x3ffb7a68 0x16c RW
    .coredump.tasks.data 0x3ffb78e0 0x180 RW
    .coredump.tasks.data 0x3ffb7c30 0x16c RW
    .coredump.tasks.data 0x3ffb9cb0 0x188 RW
    .coredump.tasks.data 0x3ffd248c 0x16c RW
    .coredump.tasks.data 0x3ffd22f0 0x194 RW
    .coredump.tasks.data 0x3ffd3000 0x16c RW
    .coredump.tasks.data 0x3ffd2e60 0x198 RW
    .coredump.tasks.data 0x3ffd3170 0x16c RW
    .coredump.tasks.data 0x3ffe62a0 0x190 RW
    .coredump.tasks.data 0x3ffd1918 0x16c RW
    .coredump.tasks.data 0x3ffd1780 0x190 RW
    .coredump.tasks.data 0x3ffbb0a4 0x16c RW
    .coredump.tasks.data 0x3ffd71d0 0x1b0 RW
    .coredump.tasks.data 0x3ffd9390 0x16c RW
    .coredump.tasks.data 0x3ffd9030 0x358 RW
    .coredump.tasks.data 0x3ffd084c 0x16c RW
    .coredump.tasks.data 0x3ffd0690 0x1b4 RW
    .coredump.tasks.data 0x3ffb727c 0x16c RW
    .coredump.tasks.data 0x3ffb70e0 0x194 RW
    .coredump.tasks.data 0x3ffbb2c4 0x16c RW
    .coredump.tasks.data 0x3ffd81f0 0x194 RW
    
    ===================== ESP32 CORE DUMP END =====================
    

  • Global Moderator

    Hi,
    Nice job in determining the error source!
    The line you refer to mods/modwlan.c:974 is related to the starting of smartConfig. Have you perhaps tried:

    import pycom
    pycom.smart_config_on_boot(False)
    pycom.pybytes_on_boot(False) #disable pybytes if not using
    

    Let me know!
    Gijs


Log in to reply
 

Pycom on Twitter