Coder Social home page Coder Social logo

Comments (10)

acassis avatar acassis commented on July 25, 2024

@tmedicci Did you know what could be this issue?

@WJ-JAY does this issue happen if you connect only 1 BLE device? Or only 2 devices?

from nuttx.

WJ-JAY avatar WJ-JAY commented on July 25, 2024

@acassis I can try later, but connecting 6 BLEs is our top priority. We are eager to solve this issue, and we would greatly appreciate it if we succeed. In the future, we would like to enable both WIFI and connecting to 6 BLE devices simultaneously. Is this also possible?

from nuttx.

tmedicci avatar tmedicci commented on July 25, 2024

Hi @WJ-JAY ,

Please try enabling stack coloration to check if it isn't a stack overflow (CONFIG_STACK_COLORATION). If you identify some task whose stack is near its capacity, please increase it.

Also, there is a list of saved interrupt states that contains NR_IRQSTATE_FLAGS entries. It is initialized here. Try to increase CONFIG_ESP32_BLE_INTERRUPT_SAVE_STATUS to let more interrupt states to be saved.

from nuttx.

WJ-JAY avatar WJ-JAY commented on July 25, 2024

Hi @tmedicci ,
I made adjustments to the stack sizes of each thread as you advised, but the previous issue still occurred. It seems that the problem is not caused by stack overflow. I also set CONFIG_ESP32_BLE_INTERRUPT_SAVE_STATUS to 5. Below is the log when the issue occurred. Please help analyze, thank you.

nsh> Call form key client. Key: 0. value: 1
Local Server Excute Time : 0ms Service Id :2
_assert: Current Version: NuttX 12.5.1 8b9bed1544-dirty Apr 26 2024 18:35:37 xtensa
_assert: Assertion failed (g_current_regs[(0)]) == ((void*)0): at file: common/xtensa_irqdispatch.c:58 task: luat process: luat 0x4010d698
up_dump_register: PC: 00000000 PS: 00000000
up_dump_register: A0: 00000000 A1: 00000000 A2: 00000000 A3: 00000000
up_dump_register: A4: 00000000 A5: 00000000 A6: 00000000 A7: 00000000
up_dump_register: A8: 00000000 A9: 00000000 A10: 00000000 A11: 00000000
up_dump_register: A12: 00000000 A13: 00000000 A14: 00000000 A15: 00000000
up_dump_register: SAR: 00000000 CAUSE: 00000000 VADDR: 00000000
up_dump_register: LBEG: 00000000 LEND: 00000000 LCNT: 00000000
dump_stacks: ERROR: Stack pointer is not within the stack
dump_stack: IRQ Stack:
dump_stack: base: 0x3ffceeb0
dump_stack: size: 00008192
stack_dump: 0x3ffd0b60: 00000000 00000000 00000000 00000009 00000008 00000000 00000008 00000009
stack_dump: 0x3ffd0b80: deadbeef deadbeef deadbeef deadbeef 00000030 00000060 3ffd0cc0 3ffd0ce0
stack_dump: 0x3ffd0ba0: 00000008 3f408d26 deadbeef 00000008 80104210 3ffd0be0 fffffffc 3ffd0c20
stack_dump: 0x3ffd0bc0: 64363938 00000042 3ffd0cf0 3ffd0d10 801018d2 3ffd0c00 3ffd0c20 3f408cf7
stack_dump: 0x3ffd0be0: 00000038 3f408d27 00000000 3f408d27 800d75ac 3ffd0c20 00000060 3f408cf7
stack_dump: 0x3ffd0c00: 3ffd0ce0 3ffd0cc0 00000008 3f408d59 800d75d8 3ffd0c70 00000000 3f408cf7
stack_dump: 0x3ffd0c20: 00000060 4010413c 401040ac 40104068 00000000 3ffc1bf8 000000c4 00000000
stack_dump: 0x3ffd0c40: 0000000a 3ffd0d00 00000008 3f408e60 0000000a 3ffd0d00 00000008 3f408e60
stack_dump: 0x3ffd0c60: 8008e475 3ffd0cb0 00000000 3f408cf7 3ffd0ce0 3ffd0cc0 00000008 00000000
stack_dump: 0x3ffd0c80: 3ffd0ce0 3ffd0cc0 00000008 40104068 3ffd0ce0 3ffd0cc0 00000008 3ffd0d20
stack_dump: 0x3ffd0ca0: 8008e4e1 3ffd0d00 3ffd0ca0 3ffd0eb0 3ffd0ce0 3ffd0cc0 00000008 00000006
stack_dump: 0x3ffd0cc0: 3ffd0d20 3ffd0d00 3f408f76 3ffd0ca0 8008e4e1 3ffd0d00 00000008 00000006
stack_dump: 0x3ffd0ce0: 3f408f76 3ffd0cc0 3ffd0d20 3ffd0d00 8008e7b9 3ffd0d40 3f408e61 00000000
stack_dump: 0x3ffd0d00: 3ffd0d20 3ffd0d00 8008e7b9 3ffd0d40 3f408e61 00000000 00000008 00000000
stack_dump: 0x3ffd0d20: 00000000 00000000 00000008 00000000 8008e341 3ffd0d60 3ffe7530 3ffffa58
stack_dump: 0x3ffd0d40: 3ffceeb0 00002000 00000350 3f408f81 80082df5 3ffd0e50 3f40466f 0000003a
stack_dump: 0x3ffd0d60: 3ffffaf8 3ffffaf8 4010d698 3ffcd69c 7474754e 3ffb0058 0000000c 00000000
stack_dump: 0x3ffd0d80: 80089db9 3ffd00d0 3ffb80ec 3ffe38c0 00000023 3ffb12d6 00000000 00000002
stack_dump: 0x3ffd0da0: 00000007 2e323100 00312e35 3ffe2cd8 000000ff 3ffcdcc0 62380001 64656239
stack_dump: 0x3ffd0dc0: 34343531 7269642d 41207974 32207270 30322036 31203432 35333a38 0037333a
stack_dump: 0x3ffd0de0: 8008cbb8 3ffd0e10 40089d18 657478b8 0061736e 3ffb9274 40083d28 3f88e560
stack_dump: 0x3ffd0e00: 8008e8fd 3ffffa58 3ffc3250 3f40464b 3f40466f 0000003a 3f9047ec 3f88e560
stack_dump: 0x3ffd0e20: 00001fd0 0000003a 00060023 00000001 3ffceeb0 00000000 00000001 3ffe9500
stack_dump: 0x3ffd0e40: 80080fe2 3ffd0e70 00000004 3ffd0c48 3f40464b 3ffd0df0 3ffb8d40 00000200
stack_dump: 0x3ffd0e60: 40080b2e 3ffd0e90 20000000 3ffd0c48 3ffc22bc 3ffcd63c 00000000 00076bb8
stack_dump: 0x3ffd0e80: 4008cca4 3ffd0eb0 00000001 3ffd0d20 0000001d 20000000 0000001f 00000004
stack_dump: 0x3ffd0ea0: 8008a9fc 3ffd0d20 deadbeef deadbeef 00000000 00000000 00000000 00000000
dump_stack: User Stack:
dump_stack: base: 0x3ffe7530
dump_stack: size: 00008144
dump_stack: sp: 0x3ffe9050
stack_dump: 0x3ffe9030: 00000006 00000000 00000000 00000006 80134f36 3ffe9060 3ffe91f0 3f9047ec
stack_dump: 0x3ffe9050: 8013500a 3ffe90e0 3f9047ec 3f88e560 3ffe91f0 00000003 4012c2a8 3ffe90a0
stack_dump: 0x3ffe9070: 3ffe90a0 4012a774 00000001 00000006 8012a796 3ffe90d0 3f9047ec 3f8e2d54
stack_dump: 0x3ffe9090: 00000001 8013500a 3ffe90e0 3f9047ec 00000001 8012bca4 00000000 00000000
stack_dump: 0x3ffe90b0: 3f9047ec 00000002 40134b7c 3ffe90e0 3ffe90e0 fffffc2a 00000000 3f904864
stack_dump: 0x3ffe90d0: 80137d01 3ffe9120 3f9047ec 3f88e560 3f88e560 00000000 3f9047ec 00000000
stack_dump: 0x3ffe90f0: 00000000 3f9019a0 3f8eb7a0 3f8eb7b0 00000001 00000000 00000000 3f44c430
stack_dump: 0x3ffe9110: 8012c380 3ffe9140 3f9047ec 3f8f0cd8 00000001 3f8dd230 00000000 00000001
stack_dump: 0x3ffe9130: 8012c3ac 3ffe9190 3f9047ec 3f903c80 42140000 42100000 3ffe91e0 3ffffa58
stack_dump: 0x3ffe9150: 3f901ad8 00000000 3f8ffa50 00000000 00000007 00000010 ffffffff 40080af4
stack_dump: 0x3ffe9170: 3f8eb788 3f88e560 00000001 3f8eb790 801274a4 3ffe91b0 3f9047ec 3f903c80
stack_dump: 0x3ffe9190: ffffffff 3ffd0e50 00000004 3ffe9108 8012bcb2 3ffe91d0 3f9047ec 3ffe92a0
stack_dump: 0x3ffe91b0: ffffffff 00060820 3ffe91e0 3ffffa58 8012c558 3ffe91f0 3ffe93a0 40127494
stack_dump: 0x3ffe91d0: 40127494 3ffe9260 3ffe9214 3ffe9260 80128158 3ffe9270 00000000 40127494
stack_dump: 0x3ffe91f0: 3ffe93a0 8012c558 3ffe91f0 3ffe93a0 3f9047ec 3ffe92a0 00000000 00000002
stack_dump: 0x3ffe9210: 0000019c 3ffe9240 3ffdd868 3f902960 0000000d 80128158 3ffe9270 00000000
stack_dump: 0x3ffe9230: 40127494 8012bca4 00000000 00000000 3f9047ec 00000001 40127494 3ffe92a0
stack_dump: 0x3ffe9250: 3ffe92a0 00000000 00000002 0000019c 8010d5c6 3ffe92a0 3f9047ec 3f903c88
stack_dump: 0x3ffe9270: 3f903dd8 00000001 00000002 00000000 3ffe92a0 00000010 00000000 3f9047ec
stack_dump: 0x3ffe9290: 8012c0dd 3ffe92d0 3f9047ec 3f443f5b 3f903c80 ffffffff 0000006c 3f443f5b
stack_dump: 0x3ffe92b0: ffffffff 00000000 00000000 00000000 8012c376 3ffe9310 3f9047ec 00000000
stack_dump: 0x3ffe92d0: 61756c2f 69616d2f 756c2e6e 00000061 00000000 00000000 00000000 00000000
stack_dump: 0x3ffe92f0: 00000003 0000000a 3ffe9450 3ffe92b8 8012c3ac 3ffe9340 3f9047ec 3f9046a8
stack_dump: 0x3ffe9310: 4000c2e0 00000001 ffffffff 40080af4 000000a0 3f903dd8 4010d560 00000016
stack_dump: 0x3ffe9330: 801274a4 3ffe9360 3f9047ec 3f9046a8 00000001 3ffd0e50 00000004 3ffe92b8
stack_dump: 0x3ffe9350: 8012bcb2 3ffe9380 3f9047ec 3ffe9450 00000001 3f903e08 3f904400 3f904411
stack_dump: 0x3ffe9370: 8012c558 3ffe93a0 00000000 40127494 40127494 3ffe9410 3ffe93c4 3ffe9410
stack_dump: 0x3ffe9390: 80128158 3ffe9420 00000000 40127494 00000000 8012c558 3ffe93a0 00000000
stack_dump: 0x3ffe93b0: 3f9047ec 3ffe9450 00000045 3ffe93e4 3ffe9430 80131e39 3ffe93c0 00000000
stack_dump: 0x3ffe93d0: 3f9047ec 80128158 3ffe9420 00000000 40127494 8012bca4 00000000 4015af8c
stack_dump: 0x3ffe93f0: 3f9047ec 00000000 40127494 3ffe9450 3ffe9450 00000045 3ffe93e4 3ffe9430
stack_dump: 0x3ffe9410: 8010d678 3ffe9450 3f9047ec 3f9046b0 3f904820 00000001 00000001 00000000
stack_dump: 0x3ffe9430: 3ffe9450 00000008 00000000 3f9047ec 8010d720 3ffe9480 3f9047ec 3ffc3e4c
stack_dump: 0x3ffe9450: 3f9046a8 00000001 00100000 0000000a 00000001 00000000 00000000 00000000
stack_dump: 0x3ffe9470: 800d6351 3ffe94a0 00003a98 3f443f56 0000000a 0000000a 3ffe9450 0000000c
stack_dump: 0x3ffe9490: 800d4194 3ffe94c0 4010d698 00000001 00000000 00000000 00000000 3ffe1c90
stack_dump: 0x3ffe94b0: 00000000 3ffe94e0 00000000 00000000 3ffe7520 3ffe1b70 00000000 00000001
stack_dump: 0x3ffe94d0: 00000000 3ffe9500 00000000 00000000 00000000 00000000 00000000 00000000
stack_dump: 0x3ffe94f0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
backtrace| 7: 0x00102170 0x0008e7fd 0x0008e341 0x00082df5 0x00080fe2 0x00080b2e 0x0012bca4 0x00134f36
backtrace| 7: 0x0013500a 0x00137d01 0x0012c380 0x0012c3ac 0x001274a4 0x0012bcb2 0x0012c558 0x00128158
backtrace| 7: 0x0010d5c6 0x0012c0dd 0x0012c376 0x0012c3ac 0x001274a4 0x0012bcb2 0x0012c558 0x00128158
backtrace| 7: 0x0010d678 0x0010d720 0x000d6351 0x000d4194
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
dump_tasks: ---- --- --- -------- ------- --- ------- ---------- ---------------- 0x3ffceeb0 8192 992 12.1% irq
dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000 0x3ffceaa0 992 736 74.1% Idle_Task
dump_task: 1 1 224 RR Kthread - Waiting Semaphore 0000000000000000 0x3ffe0628 936 584 62.3% hpwork 0x3ffc08dc 0x3ffc08f0
dump_task: 2 2 100 RR Kthread - Waiting Semaphore 0000000000000000 0x3ffe0a30 1968 936 47.5% lpwork 0x3ffc08b4 0x3ffc08c8
dump_task: 3 3 100 RR Task - Waiting Semaphore 0000000000000000 0x3ffe1228 3000 1928 64.2% nsh_main
dump_task: 4 4 223 RR Kthread - Waiting Semaphore 0000000000000000 0x3ffe1e30 960 360 37.5% rt_timer
dump_task: 5 5 200 RR Kthread - Waiting MQ empty 0000000000000000 0x3ffe5d30 4032 1928 47.8% btController
dump_task: 6 6 120 RR Kthread - Waiting MQ empty 0000000000000000 0x3ffe6d38 1976 456 23.0% BT_HCI_Tx
dump_task: 7 7 99 RR Task - Running 0000000000000000 0x3ffe7530 8144 5712 70.1% luat
dump_task: 24 7 99 RR pthread - Waiting MQ empty 0000000000000000 0x3ffee168 2008 1400 69.7% luat 0x4010a474 0
dump_task: 9 7 100 RR pthread - Waiting MQ empty 0000000000000000 0x3ffe9930 2016 872 43.2% luat 0x40115708 0
dump_task: 10 7 100 RR pthread - Waiting MQ empty 0000000000000000 0x3ffea138 2008 696 34.6% luat 0x40115290 0
dump_task: 11 7 100 RR pthread - Waiting Signal 0000000000000000 0x3ffea940 2016 1400 69.4% luat 0x40115350 0
dump_task: 12 7 100 RR pthread - Waiting Semaphore 0000000000000000 0x3ffeb148 2008 968 48.2% luat 0x40148450 0
dump_task: 13 7 100 RR pthread - Waiting MQ empty 0000000000000000 0x3ffeb950 4064 2280 56.1% luat 0x40122694 0
dump_task: 14 7 100 RR pthread - Waiting MQ empty 0000000000000000 0x3ffec958 3032 1800 59.3% luat 0x40121190 0
dump_task: 15 7 100 RR pthread - Waiting MQ empty 0000000000000000 0x3ffed560 3040 1672 55.0% luat 0x401210fc 0
backtrace| 0: 0x000d2acf 0x000d23da
backtrace| 1: 0x000d3674 0x000d3699 0x000d3118 0x000d4184
backtrace| 2: 0x000d3674 0x000d3699 0x000d3118 0x000d4184
backtrace| 3: 0x000d3674 0x00101265 0x000e343a 0x000e345c 0x000e3470 0x000dae6d 0x000dc0e8 0x000daeaa
backtrace| 3: 0x000dad85 0x000dac2a 0x000dabe9 0x000d6351 0x000d4194
backtrace| 4: 0x000d3674 0x000da2f8 0x000d4184
backtrace| 5: 0x00150a9c 0x0015086a 0x001549b0 0x000ec741 0x000d4184
backtrace| 6: 0x00150a9c 0x0015086a 0x00156354 0x00155e7c 0x000d4184
backtrace| 7: 0x00102170 0x0008e4f0 0x000ffeb2 0x0008e898 0x0008e341 0x00082df5 0x00080fe2 0x00080b2e
backtrace| 7: 0x0012bca4 0x00134f36 0x0013500a 0x00137d01 0x0012c380 0x0012c3ac 0x001274a4 0x0012bcb2
backtrace| 7: 0x0012c558 0x00128158 0x0010d5c6 0x0012c0dd 0x0012c376 0x0012c3ac 0x001274a4 0x0012bcb2
backtrace| 7: 0x0012c558 0x00128158 0x0010d678 0x0010d720 0x000d6351 0x000d4194
backtrace|24: 0x00150a9c 0x0015098e 0x00121929 0x00125978 0x0013e0b8 0x0013e209 0x0013e2f0 0x0013e318
backtrace|24: 0x001256b1 0x0010a47d 0x001020e0 0x00150cb8
backtrace| 9: 0x00150a9c 0x0015086a 0x0011571e 0x001020e0 0x00150cb8
backtrace|10: 0x00150a9c 0x0015086a 0x001152a5 0x001020e0 0x00150cb8
backtrace|11: 0x0015179e 0x00151258 0x001512ed 0x001046f8 0x0011535e 0x001020e0 0x00150cb8
backtrace|12: 0x000d3674 0x000e1d68 0x000e1d94 0x000e1da5 0x00141d8e 0x0014056d 0x0014038c 0x000e40e1
backtrace|12: 0x000e343a 0x000e345c 0x000e3470 0x0014846a 0x001020e0 0x00150cb8
backtrace|13: 0x00150a9c 0x0015086a 0x001508a6 0x001508be 0x00123544 0x00122827 0x001216ee 0x001226a0
backtrace|13: 0x001020e0 0x00150cb8
backtrace|1?? Jul 29 2019 12:21:46

rst:0x3 (SW_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:6952
load:0x40078000,len:15488
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3752
entry 0x40080648

from nuttx.

rftafas avatar rftafas commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

from nuttx.

WJ-JAY avatar WJ-JAY commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

Yes, it's 1 host and 5 slaves

from nuttx.

rftafas avatar rftafas commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

Yes, it's 1 host and 5 slaves

And who is crashing?

from nuttx.

WJ-JAY avatar WJ-JAY commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

Yes, it's 1 host and 5 slaves

And who is crashing?

We now use esp32 to run nuttx as the host and other modules as the slave. The crashing is esp32

from nuttx.

rftafas avatar rftafas commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

Yes, it's 1 host and 5 slaves

And who is crashing?

We now use esp32 to run nuttx as the host and other modules as the slave. The crashing is esp32

All six? Or is it the host?
Do you have Wi-Fi enabled as well?

from nuttx.

WJ-JAY avatar WJ-JAY commented on July 25, 2024

Simple question: is this some form of mesh? Or is this a set up with 1 host and 5 slave devices?

Yes, it's 1 host and 5 slaves

And who is crashing?

We now use esp32 to run nuttx as the host and other modules as the slave. The crashing is esp32

All six? Or is it the host? Do you have Wi-Fi enabled as well?

Only the ESP32 is running NuttX and acting as the host, while the other 6 modules are of different models and not running NuttX. The exception is the ESP32 host, which is currently not enabled for WiFi.

from nuttx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.