Maybe this is not the best site but I'm not sure if is a stack problem or a problem with my code.
My first question is: It's compatible use promiscuous mode after the WiFi configured as STA connects an AP? I did not find anything saying no.
Context:
- I'm using the last commit from master esp-idf.
- WiFi + BLE coexistence is active.
- BLE has been configured just to advertise an Eddystone message.
- WiFi is configured as STA and connected to an AP with WPA.
- WiFi promiscuous mode is been enabled after connect to the AP and get IP.
- Device was sending a UDP packet via WiFi using the udp.h api.
- This ocurred after a couple of hours of work.
- Show two different errors differing in the last method
Best regards and sorry for the inconvenience
Crash report 1:
Code: Select all
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC : 0x40087a3a PS : 0x00060a34 A0 : 0x80085993 A1 : 0x3ffd7b10
A2 : 0x3ffde9f4 A3 : 0x3ffd7e20 A4 : 0x00060a23 A5 : 0x3ffd7b00
A6 : 0x24221f1c A7 : 0x2e2c2927 A8 : 0x3ffd7e20 A9 : 0x3ffd7e20
A10 : 0x00000002 A11 : 0x00000002 A12 : 0x00060a23 A13 : 0x3ffc9700
A14 : 0x3ffc961c A15 : 0x60033084 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x40087a3a:0x3ffd7b10 0x40085993:0x3ffd7b30 0x4008697b:0x3ffd7b50 0x40107ed1:0x3ffd7b90 0x400f9e31:0x3ffd7bc0 0x400ff54c:0x3ffd7bf0 0x400fa8b4:0x3ffd7cb0 0x400fb284:0x3ffd7cf0 0x400fb3a6:0x3ffd7d20 0x400ff8a5:0x3ffd7d50
Entering gdb stub now.
$ xtensa-esp32-elf-gdb ./build/tfgproject-esp32.elf -b 115200 -ex 'target remote COM5'
GNU gdb (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/tfgproject-esp32.elf...done.
Remote debugging using COM5
0x40087a3a in vListInsert (pxList=0x3ffde9f4, pxNewListItem=0x3ffd7e20)
at C:/ESP32/github/esp-idf/components/freertos/list.c:188
188 for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
(gdb) bt
#0 0x40087a3a in vListInsert (pxList=0x3ffde9f4, pxNewListItem=0x3ffd7e20)
at C:/ESP32/github/esp-idf/components/freertos/list.c:188
#1 0x40085993 in vTaskPlaceOnEventList (pxEventList=0x3ffde9f4,
xTicksToWait=100)
at C:/ESP32/github/esp-idf/components/freertos/tasks.c:2852
#2 0x4008697b in xQueueGenericReceive (xQueue=0x3ffde9d0, pvBuffer=0x0,
xTicksToWait=100, xJustPeeking=0)
at C:/ESP32/github/esp-idf/components/freertos/queue.c:1586
#3 0x40107ed1 in wpa_parse_kde_ies ()
#4 0x400f9e31 in lmacProcessTxopStartData ()
#5 0x400ff54c in ppResortTxAMPDU ()
#6 0x400fa8b4 in ?? ()
#7 0x400fb284 in lmacProcessAckTimeout ()
#8 0x400fb3a6 in lmacProcessTxSuccess ()
#9 0x400ff8a5 in ppTask ()
(gdb)
Code: Select all
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x40087a69 PS : 0x00060433 A0 : 0x80084f25 A1 : 0x3ffd7b10
A2 : 0x3ffce89c A3 : 0x00060423 A4 : 0x00000000 A5 : 0x3ffc0560
A6 : 0x00000003 A7 : 0x00060323 A8 : 0x00000000 A9 : 0x3ffce89c
A10 : 0x3ffce89c A11 : 0x00060423 A12 : 0x00060423 A13 : 0x3ffc0530
A14 : 0x3ff000e0 A15 : 0x00000001 SAR : 0x00000000 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000004 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x40087a69:0x3ffd7b10 0x40084f25:0x3ffd7b30 0x400865b8:0x3ffd7b50 0x40107f18:0x3ffd7b90 0x400f9e31:0x3ffd7bc0 0x400ff54c:0x3ffd7bf0 0x400fa8b4:0x3ffd7cb0 0x400fb284:0x3ffd7cf0 0x400fb3a6:0x3ffd7d20 0x400ff8a5:0x3ffd7d50
Entering gdb stub now.
$ xtensa-esp32-elf-gdb ./build/tfgproject-esp32.elf -b 115200 -ex 'target remote COM5'
GNU gdb (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/tfgproject-esp32.elf...done.
Remote debugging using COM5
uxListRemove (pxItemToRemove=0x3ffce89c)
at C:/ESP32/github/esp-idf/components/freertos/list.c:218
218 if( pxList->pxIndex == pxItemToRemove )
(gdb) bt
#0 uxListRemove (pxItemToRemove=0x3ffce89c)
at C:/ESP32/github/esp-idf/components/freertos/list.c:218
#1 0x40084f25 in xTaskRemoveFromEventList (pxEventList=<optimized out>)
at C:/ESP32/github/esp-idf/components/freertos/tasks.c:3040
#2 0x400865b8 in xQueueGenericSend (xQueue=0x3ffde9b4,
pvItemToQueue=<optimized out>, xTicksToWait=0, xCopyPosition=0)
at C:/ESP32/github/esp-idf/components/freertos/queue.c:763
#3 0x40107f18 in wpa_parse_kde_ies ()
#4 0x400f9e31 in lmacProcessTxopStartData ()
#5 0x400ff54c in ppResortTxAMPDU ()
#6 0x400fa8b4 in ?? ()
#7 0x400fb284 in lmacProcessAckTimeout ()
#8 0x400fb3a6 in lmacProcessTxSuccess ()
#9 0x400ff8a5 in ppTask ()