This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DF beacon/scanner aging test crashes

Hi teams,

I am testing Direction Finding beacon/scanner pairs with nRF52833 DKs.

With nRFConnect SDK v1.7.1, I started beacon/scanner pair and leave untouched for a few days.

And I got the following crash in scanner side.

PER_ADV_SYNC[0]: [DEVICE]: 09:4D:94:E8:43:23 (random), tx_power 127, RSSI -36, CTE AOA, data length 0, data:
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -360
PER_ADV_SYNC[0]: [DEVICE]: 09:4D:94:E8:43:23 (random), tx_power 127, RSSI -32, CTE AOA, data length 0, data:
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -320
PER_ADV_SYNC[0]: [DEVICE]: 09:4D:94:E8:43:23 (random), tx_power 127, RSSI -40, CTE AOA, data length 0, data:
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -400
PER_ADV_SYNC[0]: [DEVICE]: 09:4D:94:E8:43:23 (random), tx_power 127, RSSI -36, CTE AOA, data length 0, data:
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC OK, RSSI -360
CTE[0]: samples count 45, cte type AOA, slot durations: 2 [us], packet status CRC not OK, CTE Info OK, RSSI -330
PER_ADV_SYNC[0]: [DEVICE]: 09:4D:94:E8:43:23 (random) sync terminated
Periodic sync lost.
Start scanning...success
Waiting for periodic advertising...
[DEVICE]: 52:67:5C:01:EC:12 (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: FC:4E:0F:24:19:EF (random), AD evt type 3, Tx Pwr: 127, RSSI -70  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 50:FA:50:77:47:3C (random), AD evt type 3, Tx Pwr: 127, RSSI -75  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 4F:A4:94:29:6A:3F (random), AD evt type 2, Tx Pwr: 127, RSSI -69  C:0 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 43:4B:56:39:DA:36 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 27:E6:52:81:FF:86 (random), AD evt type 3, Tx Pwr: 127, RSSI -46  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: F7:BC:D8:95:B4:A7 (public), AD evt type 0, Tx Pwr: 127, RSSI -72 Trkr C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 5F:13:0F:26:BB:3F (random), AD evt type 3, Tx Pwr: 127, RSSI -66  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 6F:1F:97:9D:52:45 (random), AD evt type 3, Tx Pwr: 127, RSSI -64  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 76:43:9B:F8:B3:A0 (random), AD evt type 2, Tx Pwr: 127, RSSI -72  C:0 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 39:87:AF:34:CE:86 (random), AD evt type 3, Tx Pwr: 127, RSSI -55  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 3A:A0:C3:5E:77:6A (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 07:F5:05:2F:B1:F0 (random), AD evt type 3, Tx Pwr: 127, RSSI -61  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 25:44:D8:19:64:A1 (random), AD evt type 3, Tx Pwr: 127, RSSI -37  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: EF:B8:58:DD:18:35 (random), AD evt type 0, Tx Pwr: 127, RSSI -61  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 09:4D:94:E8:43:23 (random), AD evt type 5, Tx Pwr: 127, RSSI -38 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
success. Found periodic advertising.
Creating Periodic Advertising Sync...success.
Waiting for periodic sync...
[DEVICE]: 6A:44:79:77:C8:B9 (random), AD evt type 0, Tx Pwr: 127, RSSI -73  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 6A:44:79:77:C8:B9 (random), AD evt type 4, Tx Pwr: 127, RSSI -73  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 38:B0:4D:2C:06:CE (random), AD evt type 3, Tx Pwr: 127, RSSI -70  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: DB:79:BA:19:4E:FC (public), AD evt type 3, Tx Pwr: 127, RSSI -27  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 4D:11:5F:F5:10:02 (random), AD evt type 0, Tx Pwr: 127, RSSI -69  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: D9:81:B8:AB:70:37 (random), AD evt type 3, Tx Pwr: 127, RSSI -66  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 52:67:5C:01:EC:12 (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 5B:21:9D:9F:90:3F (random), AD evt type 0, Tx Pwr: 127, RSSI -68  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 7B:3A:E3:51:51:0E (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: E2:AD:AA:18:56:2D (public), AD evt type 0, Tx Pwr: 127, RSSI -63 Tracker C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 27:E6:52:81:FF:86 (random), AD evt type 3, Tx Pwr: 127, RSSI -46  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 5F:A4:3C:9E:E8:6D (random), AD evt type 0, Tx Pwr: 127, RSSI -77  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 3A:06:40:74:14:2B (random), AD evt type 3, Tx Pwr: 127, RSSI -68  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: EC:1C:4B:7B:26:4A (random), AD evt type 0, Tx Pwr: 127, RSSI -58  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: DE:81:64:E5:57:95 (public), AD evt type 0, Tx Pwr: 127, RSSI -61  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 6F:1F:97:9D:52:45 (random), AD evt type 3, Tx Pwr: 127, RSSI -67  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 7E:37:ED:3B:FB:10 (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 3A:A0:C3:5E:77:6A (random), AD evt type 3, Tx Pwr: 127, RSSI -76  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
[DEVICE]: 7D:42:FC:F2:37:B1 (random), AD evt type 3, Tx Pwr: 127, RSSI -67  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/controller/ll_sw/ull.c:1171
[08:51:14.308,135] <wrn> bt_hci_core: Malformed data
[08:51:14.915,740] <err> os: r0/a1:  0x00000003  r1/a2:  0x00012908  r2/a3:  0x00000001
[08:51:14.915,740] <err> os: r3/a4:  0x00002845 r12/ip:  0x00000000 r14/lr:  0x00008295
[08:51:14.915,740] <err> os:  xpsr:  0x41000000
[08:51:14.915,740] <err> os: Faulting instruction address (r15/pc): 0x000082a0
[08:51:14.915,740] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[08:51:14.915,771] <err> os: Current thread: 0x20000628 (unknown)
[08:51:14.987,884] <err> os: Halting system

Any ideas?

P.S.> I have been testing this since it is available (v1.6.0, maybe), and has similar crashes in all tests.

Parents
  • Can you try to add the following so we may get more information about the assert?

    Thanks.
    Kenneth

    --- Add to prj.conf:

    # Debugging configuration
    CONFIG_THREAD_NAME=y
    CONFIG_THREAD_ANALYZER=y
    CONFIG_THREAD_ANALYZER_AUTO=y
    CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
    CONFIG_THREAD_ANALYZER_USE_PRINTK=y
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    CONFIG_SERIAL=y
    CONFIG_PRINTK=y
    CONFIG_USE_SEGGER_RTT=n

    # add asserts
    CONFIG_ASSERT=y
    CONFIG_ASSERT_VERBOSE=y
    CONFIG_ASSERT_NO_COND_INFO=n
    CONFIG_ASSERT_NO_MSG_INFO=n
    CONFIG_RESET_ON_FATAL_ERROR=n
    CONFIG_THREAD_NAME=y
    CONFIG_ARM_MPU=y

    You can also add:

    CONFIG_HW_STACK_PROTECTION=y

  • Hi Kenneth,

    I built both applications with your request options.

    Scanner app crashes even much faster than before, here is the full crash log.

    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic adver[DEVICE]: 4C:54:54:DB:FB:AF (public), AD evt type 3, Tx Pwr: 127, RSSI -40  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 70:4E:1F:D0:1F:77 (random), AD evt type 0, Tx Pwr: 127, RSSI -53  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 6C:5D:1F:34:27:EB (random), AD evt type 2, Tx Pwr: 127, RSSI -77  C:0 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: DC:48:C0:B6:90:91 (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    tising...
    [00:00:00.263,854] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)DEVICE]: 0A:13:FF:90:8B:20 (random), AD evt type 3, Tx Pwr: 127, RSSI -71  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7F:B4:D9:65:0A:9A (random), AD evt type 3, Tx Pwr: 127, RSSI -75  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FA:22:42:D5:A4:53 (public), AD evt type 0, Tx Pwr: 127, RSSI -57  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 54:C3:62:A8:74:A0 (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    0m
    [00:00:00.[DEVICE]: 5E:F1:E7:94:00:C9 (random), AD evt type 0, Tx Pwr: 127, RSSI -82  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 63:FB:65:26:2B:0E (random), AD evt type 0, Tx Pwr: 127, RSSI -78  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 63:FB:65:26:2B:0E (random), AD evt type 4, Tx Pwr: 127, RSSI -79  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 34:9C:08:3D:EC:AD (random), AD evt type 3, Tx Pwr: 127, RSSI -60  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    263,[DEVICE]: 01:43:5F:6F:3B:2E (random), AD evt type 3, Tx Pwr: 127, RSSI -64  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 65:D1:27:E1:CE:27 (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    854] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
    [00:00:00.263,885] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.6 Build 99
    [00:00:00.264,739] <inf> bt_hci_core: Identity: F1:16:4C:B8:28:B7 (random)
    [00:00:00.264,739] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05[DEVICE]: 2C:7B:B8:3A:8A:15 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 45:A0:BE:FE:A6:57 (random), AD evt type 3, Tx Pwr: 127, RSSI -57  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 64:E6:84:5F:3E:CA (random), AD evt type 3, Tx Pwr: 127, RSSI -64  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    f1
    [00:00:00.264,770] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff
    Thread analyze:
     BT RX               : STACK: unused 416 usage 608 / 1024 (59 %); CPU: 76 %
     BT RX pri[DEVICE]: 25:D4:AB:63:A1:F4 (random), AD evt type 3, Tx Pwr: 127, RSSI -39  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 06:F7:C1:FA:2B:CE (random), AD evt type 3, Tx Pwr: 127, RSSI -71  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
               : STACK: unused 304 usage 144 / 448 (32 %); CPU: 0 %
     BT TX               : STACK: unused 224 usage 416 / 640 (65 %); CPU: 0 %
     thread_analyzer     : STACK: unused 624 usage 400 / 1024 (39 %); CPU: 2 %
     sysworkq            : STACK: unused 856 usage 168 / 1024 (16 %); CPU: 0 %
     logging             : STACK: unused 240 usa[DEVICE]: 5E:FF:99:8F:84:B8 (random), AD evt type 3, Tx Pwr: 127, RSSI -50  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 79:C7:91:AB:FB:40 (random), AD evt type 0, Tx Pwr: 127, RSSI -64  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 41:F4:84:C8:03:5E (random), AD evt type 0, Tx Pwr: 127, RSSI -33  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 39:AF:B9:39:EB:68 (random), AD evt type 5, Tx Pwr: 127, RSSI -29 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 62:A4:85:F5:91:EF (random), AD evt type 3, Tx Pwr: 127, RSSI -77  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 66:F9:CB:9B:89:46 (random), AD evt type 3, Tx Pwr: 127, RSSI -75  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 10:03:30:83:8A:32 (random), AD evt type 3, Tx Pwr: 127, RSSI -49  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Found periodic advertising.
    Creating Periodic Advertising Sync...success.
    Waiting for periodic sync...
    ge 528 / 768 (68 %); CPU: 13 %
     idle 00             : STACK: unused 288 usage 32 / 320 (10 %)[DEVICE]: 69:62:0B:CD:F2:63 (random), AD evt type 0, Tx Pwr: 127, RSSI -65  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 0A:13:FF:90:8B:20 (random), AD evt type 3, Tx Pwr: 127, RSSI -80  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 58:D1:4A:04:59:79 (random), AD evt type 0, Tx Pwr: 127, RSSI -72  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 54:C3:62:A8:74:A0 (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    ;[DEVICE]: 41:90:87:69:16:8F (random), AD evt type 3, Tx Pwr: 127, RSSI -78  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 41:1A:35:BB:65:2E (random), AD evt type 0, Tx Pwr: 127, RSSI -80  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 70:4E:1F:D0:1F:77 (random), AD evt type 0, Tx Pwr: 127, RSSI -54  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 45:A0:BE:FE:A6:57 (random), AD evt type 3, Tx Pwr: 127, RSSI -55  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
     CPU: 0 %
     main                : STACK: unused 536 usage 488 / 1024 (47 %); [DEVICE]: 65:D1:27:E1:CE:27 (random), AD evt type 3, Tx Pwr: 127, RSSI -55  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 01:43:5F:6F:3B:2E (random), AD evt type 3, Tx Pwr: 127, RSSI -72  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 25:D4:AB:63:A1:F4 (random), AD evt type 3, Tx Pwr: 127, RSSI -37  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 25:CF:75:7E:C4:8D (random), AD evt type 3, Tx Pwr: 127, RSSI -63  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2C:7B:B8:3A:8A:15 (random), AD evt type 3, Tx Pwr: 127, RSSI -59  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 48:8E:11:81:1A:43 (random), AD evt type 3, Tx Pwr: 127, RSSI -69  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 34:9C:08:3D:EC:AD (random), AD evt type 3, Tx Pwr: 127, RSSI -56  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 64:E6:84:5F:3E:CA (random), AD evt type 3, Tx Pwr: 127, RSSI -68  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 06:F7:C1:FA:2B:CE (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: BC:8A:A3:00:65:2C (public), AD evt type 0, Tx Pwr: 127, RSSI -79  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 05:3F:6C:D2:35:44 (random), AD evt type 3, Tx Pwr: 127, RSSI -60  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 10:03:30:83:8A:32 (random), AD evt type 3, Tx Pwr: 127, RSSI -58  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    CPU: 5 %
    [DEVICE]: 42:35:C4:CC:52:3C (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: D0:33:34:80:76:87 (public), AD evt type 0, Tx Pwr: 127, RSSI -62  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7F:B4:D9:65:0A:9A (random), AD evt type 3, Tx Pwr: 127, RSSI -73  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 80:EA:CA:80:D2:76 (public), AD evt type 0, Tx Pwr: 127, RSSI -56 Dialog WRBL C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 80:EA:CA:80:D2:76 (public), AD evt type 4, Tx Pwr: 127, RSSI -56  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 41:1A:35:BB:65:2E (random), AD evt type 0, Tx Pwr: 127, RSSI -83  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 45:A0:BE:FE:A6:57 (random), AD evt type 3, Tx Pwr: 127, RSSI -67  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3E:CE:2D:23:D0:BB (random), AD evt type 3, Tx Pwr: 127, RSSI -64  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: DF:FF:DB:FF:1F:5C (random), AD evt type 3, Tx Pwr: 127, RSSI -62  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 79:C7:91:AB:FB:40 (random), AD evt type 0, Tx Pwr: 127, RSSI -62  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 01:43:5F:6F:3B:2E (random), AD evt type 3, Tx Pwr: 127, RSSI -65  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 25:CF:75:7E:C4:8D (random), AD evt type 3, Tx Pwr: 127, RSSI -59  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 06:7D:FE:94:88:FB (random), AD evt type 3, Tx Pwr: 127, RSSI -78  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 16:29:C4:47:01:A4 (random), AD evt type 3, Tx Pwr: 127, RSSI -69  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 34:9C:08:3D:EC:AD (random), AD evt type 3, Tx Pwr: 127, RSSI -56  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: FF:2D:09:F8:E2:04 (public), AD evt type 0, Tx Pwr: 127, RSSI -43 Tracker C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 54:C3:62:A8:74:A0 (random), AD evt type 3, Tx Pwr: 127, RSSI -50  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 2C:2F:96:C4:96:B4 (random), AD evt type 3, Tx Pwr: 127, RSSI -80  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 25:D4:AB:63:A1:F4 (random), AD evt type 3, Tx Pwr: 127, RSSI -40  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 67:87:35:F8:75:F1 (random), AD evt type 0, Tx Pwr: 127, RSSI -70  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 5E:FF:99:8F:84:B8 (random), AD evt type 3, Tx Pwr: 127, RSSI -47  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 42:35:C4:CC:52:3C (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: DE:81:64:E5:57:95 (public), AD evt type 0, Tx Pwr: 127, RSSI -54  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: DE:81:64:E5:57:95 (public), AD evt type 4, Tx Pwr: 127, RSSI -53 IF-WT100 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 19:70:81:C1:21:FE (random), AD evt type 3, Tx Pwr: 127, RSSI -78  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 05:3F:6C:D2:35:44 (random), AD evt type 3, Tx Pwr: 127, RSSI -55  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 77:F9:34:E7:C3:6C (random), AD evt type 3, Tx Pwr: 127, RSSI -71  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 33:48:B2:57:F2:B7 (random), AD evt type 3, Tx Pwr: 127, RSSI -72  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3E:CE:2D:23:D0:BB (random), AD evt type 3, Tx Pwr: 127, RSSI -60  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 0A:13:FF:90:8B:20 (random), AD evt type 3, Tx Pwr: 127, RSSI -80  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 62:A4:85:F5:91:EF (random), AD evt type 3, Tx Pwr: 127, RSSI -79  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: EC:1C:4B:7B:26:4A (random), AD evt type 0, Tx Pwr: 127, RSSI -56  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: EC:1C:4B:7B:26:4A (random), AD evt type 4, Tx Pwr: 127, RSSI -56 INFOMARK MESH 7B264A C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 45:A0:BE:FE:A6:57 (random), AD evt type 3, Tx Pwr: 127, RSSI -48  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 58:D1:4A:04:59:79 (random), AD evt type 0, Tx Pwr: 127, RSSI -74  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 58:D1:4A:04:59:79 (random), AD evt type 4, Tx Pwr: 127, RSSI -74  C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 54:C3:62:A8:74:A0 (random), AD evt type 3, Tx Pwr: 127, RSSI -63  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 39:AF:B9:39:EB:68 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    [DEVICE]: 39:AF:B9:39:EB:68 (random), AD evt type 5, Tx Pwr: 127, RSSI -29 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    [DEVICE]: 2C:7B:B8:3A:8A:15 (random), AD evt type 3, Tx Pwr: 127, RSSI -62  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 16:29:C4:47:01:A4 (random), AD evt type 3, Tx Pwr: 127, RSSI -65  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 5E:FF:99:8F:84:B8 (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 01:43:5F:6F:3B:2E (random), AD evt type 3, Tx Pwr: 127, RSSI -62  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 65:D1:27:E1:CE:27 (random), AD evt type 3, Tx Pwr: 127, RSSI -54  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 25:CF:75:7E:C4:8D (random), AD evt type 3, Tx Pwr: 127, RSSI -65  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    success. Periodic sync established.
    Enable receiving of CTE...
    success. CTE receive enabled.
    Scan disable...Success.
    Waiting for periodic sync lost...
    PER_ADV_SYNC[0]: [DEVICE]: 39:AF:B9:39:EB:68 (random), tx_power 127, RSSI -27, CTE AOA, data length 0, data: 
    ASSERTION FAIL [net_buf_simple_tailroom(buf) >= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:802
    [00:00:03.063,995] <err> os: r0/a1:  0x00000004  r1/a2:  0x00000322  r2/a3:  0x00000001
    [00:00:03.063,995] <err> os: r3/a4:  0x00003251 r12/ip:  0x00000000 r14/lr:  0x0000dd9d
    [00:00:03.064,025] <err> os:  xpsr:  0x41000000
    [00:00:03.064,025] <err> os: Faulting instruction address (r15/pc): 0x000133b0
    [00:00:03.064,025] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
    [00:00:03.064,056] <err> os: Current thread: 0x20000878 (BT RX)
    [00:00:03.108,978] <err> os: Halting system
    

  • Can you try to set CONFIG_BT_RX_STACK_SIZE=2048, CONFIG_BT_BUF_ACL_RX_COUNT=10, and 
    CONFIG_BT_BUF_ACL_RX_SIZE=200 in prj.conf?

    This should increase the thread stack and buffers for RX.

  • After applying the above, different crash occurs.

    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    Starting Connectionless Locator Demo
    Bluetooth initialization...success
    Scan callbacks register...success.
    Periodic Advertising callbacks register...success.
    Start scanning...success
    Waiting for periodic advertising...
    [00:00:00.263,916] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)[DEVICE]: 07:1D:AC:86:0F:4E (random), AD evt type 3, Tx Pwr: 127, RSSI -56  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    
    [00:00:00.263,916] <inf> bt_hci_core: HW Variant: nRF52x (0x0002)
    [00:00:00.263,946] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.6 Build 99
    [00:00:00.264,801] <inf> bt_hci_core: Identity: F1:16:4C:B8:28:B7 (random)
    [00:00:00.264,831] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1
    [00:00:00.264,831] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff
    Thread analyze:
     BT RX               : STACK: unused 1440 usage 608 / 2048 (29 %); CPU: 15 %
     BT RX pri           : STACK: unused 304 usage 144 / 448 (32 %); CPU: 0 %
     BT TX               : STACK: unused 224 usage 416 / 640[DEVICE]: 53:2C:49:99:9B:5C (random), AD evt type 3, Tx Pwr: 127, RSSI -56  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
     (65 %); CPU: 1 %
     thread_analyzer     : STACK: unused 624 usage 400 / 1024 (39 %); CPU: 16 %
     sysworkq            : STACK: unused 856 usage 168 / 1024 (16 %); CPU: 0 %
     logging             : STACK: unused 264 usage 504 / 768 (65 %); CPU: 39 %
     idle [DEVICE]: 54:69:9A:49:5F:72 (random), AD evt type 3, Tx Pwr: 127, RSSI -65  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    00             : STACK: unused 288 usage 32 / 320 (10 %); CPU:[DEVICE]: 5B:D8:94:D9:1B:89 (random), AD evt type 3, Tx Pwr: 127, RSSI -52  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 7C:EB:E3:71:F5:7F (random), AD evt type 3, Tx Pwr: 127, RSSI -74  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 39:AF:B9:39:EB:68 (random), AD evt type 5, Tx Pwr: 127, RSSI -31 DF Connectionless Beacon App C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400 ms), SID: 0
    success. Found periodic advertising.
    Creating [DEVICE]: F7:BC:D8:95:B4:A7 (public), AD evt type 0, Tx Pwr: 127, RSSI -77 Trkr C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 4E:1F:95:D4:21:FF (random), AD evt type 3, Tx Pwr: 127, RSSI -53  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 07:F2:17:35:A2:04 (random), AD evt type 3, Tx Pwr: 127, RSSI -39  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 3A:94:23:4E:A0:76 (random), AD evt type 3, Tx Pwr: 127, RSSI -67  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    Periodic Advertising Sync...success.
    Waiting for periodic sync...
     0 %
     main                : STACK: unused 5[DEVICE]: 2B:20:5E:2A:64:E8 (random), AD evt type 3, Tx Pwr: 127, RSSI -75  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: CC:47:8B:F1:E1:81 (public), AD evt type 0, Tx Pwr: 127, RSSI -79  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: CC:47:8B:F1:E1:81 (public), AD evt type 4, Tx Pwr: 127, RSSI -78 Mi Smart Band 6 C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 67:DA:88:83:6D:A9 (random), AD evt type 3, Tx Pwr: 127, RSSI -70  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    36 usage 488 / 1024 (47 %); CPU: 12 %
    [DEVICE]: EC:1C:4B:7B:26:4A (random), AD evt type 0, Tx Pwr: 127, RSSI -69  C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: EC:1C:4B:7B:26:4A (random), AD evt type 4, Tx Pwr: 127, RSSI -68 INFOMARK MESH 7B264A C:1 S:1 D:0 SR:1 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 10:E8:E1:C8:73:70 (random), AD evt type 3, Tx Pwr: 127, RSSI -75  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    [DEVICE]: 5C:9E:9C:5C:E2:0C (random), AD evt type 3, Tx Pwr: 127, RSSI -78  C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval: 0x0000 (0 ms), SID: 255
    PER_ADV_SYNC[0]: [DEVICE]: 39:AF:B9:39:EB:68 (random) synced, Interval 0x0780 (2400 ms), PHY LE 2M
    success. Periodic sync established.
    Enable receiving of CTE...
    success. CTE receive enabled.
    Scan disable...Success.
    Waiting for periodic sync lost...
    [00:00:02.118,774] <err> os: ***** MPU FAULT *****
    [00:00:02.118,804] <err> os:   Stacking error (context area might be not valid)
    [00:00:02.118,804] <err> os:   Data Access Violation
    [00:00:02.118,804] <err> os:   MMFAR Address: 0x200030c0
    [00:00:02.118,835] <err> os: r0/a1:  0x0000119d  r1/a2:  0x00000030  r2/a3:  0x0000001c
    [00:00:02.118,835] <err> os: r3/a4:  0x00000011 r12/ip:  0x200000e8 r14/lr:  0x20004a88
    [00:00:02.118,835] <err> os:  xpsr:  0x61000000
    [00:00:02.118,865] <err> os: Faulting instruction address (r15/pc): 0x000132e2
    [00:00:02.118,865] <err> os: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
    [00:00:02.118,865] <err> os: Current thread: 0x20000878 (BT RX)
    [00:00:02.188,812] <err> os: Halting system
    

  • Can you try to increase CONFIG_BT_RX_STACK_SIZE=4096?

    Kenneth

  • OK, now it is running as before.

    I'll leave additional notes if something happens.

Reply Children
No Data
Related