Hello all
I am having a problem with nRF Connect SDK where whenever I try to read from a sensor while bluetooth is enables, the software crashes. If I disable bluetooth or dont read from the sensor, the software runs just fine. I thought it might be a stack overflow but that does seems to be the case. This is my log output.
00> [00:00:14.868,377] <inf> MAX32664: populateDataStruct: G:201891 R:524287 IR:524287 00> [00:00:14.868,469] <inf> MAX32664: populateDataStruct: HR: 60, HR_Conf: 0 00> [00:00:14.932,556] <err> sdc_hci_driver: sdc_assertion_handler: SoftDevice Controller ASSERT: 62, 729 00> [00:00:14.932,617] <err> os: hard_fault: ***** HARD FAULT ***** 00> [00:00:14.932,708] <err> os: hard_fault: Fault escalation (see below) 00> [00:00:14.932,769] <err> os: hard_fault: ARCH_EXCEPT with reason 3 00> 00> [00:00:14.932,891] <err> os: esf_dump: r0/a1: 0x00000003 r1/a2: 0x00000002 r2/a3: 0x00000001 00> [00:00:14.932,983] <err> os: esf_dump: r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0x000492bf 00> [00:00:14.933,044] <err> os: esf_dump: xpsr: 0x41000018 00> [00:00:14.933,135] <err> os: esf_dump: Faulting instruction address (r15/pc): 0x00037e3e 00> [00:00:14.933,258] <err> os: z_fatal_error: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0 00> [00:00:14.933,349] <err> os: z_fatal_error: Fault during interrupt handling 00> 00> [00:00:14.933,441] <err> os: z_fatal_error: Current thread: 0x200038c8 (idle) 00> [00:00:15.347,290] <err> fatal_error: k_sys_fatal_error_handler: Resetting system 00> *** Booting Zephyr OS build v3.1.99-ncs1-4226-geb7519d36a0c *** 00> [00:00:02.516,845] <inf> MAIN: main: -------------- VMARS -------------- 00> [00:00:02.516,906] <inf> MAIN: main: Initializing... 00> [00:00:02.517,700] <inf> sdc_hci_driver: hci_driver_open: SoftDevice Controller build revision: 00> 06 73 2c 87 88 0f b6 51 77 d5 15 bb de ae 0b 6c |.s,....Q w......l 00> 57 54 fa 7c |WT.| 00> [00:00:02.526,214] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002) 00> [00:00:02.526,306] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF52x (0x0002) 00> [00:00:02.526,397] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 6.11379 Build 3054471303 00> [00:00:02.530,212] <inf> bt_hci_core: bt_dev_show_info: Identity: E3:B6:09:9D:96:3D (random) 00> [00:00:02.530,334] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x11de, manufacturer 0x0059 00> [00:00:02.530,426] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0x11de 00> [00:00:02.531,005] <inf> MAIN: main: Initialization complete 00> [00:00:02.531,311] <inf> SYSTEM_T: init_sleep_state: Entered sleep state 00> [00:00:02.531,677] <inf> thread_analyzer: thread_analyzer_print: Thread analyze: 00> [00:00:02.572,204] <inf> thread_analyzer: thread_print_cb: led_thread : STACK: unused 2016 usage 32 / 2048 (1 %); CPU: 0 % 00> [00:00:02.572,265] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 0 00> [00:00:02.572,784] <inf> thread_analyzer: thread_print_cb: ble_thread : STACK: unused 992 usage 32 / 1024 (3 %); CPU: 0 % 00> [00:00:02.572,875] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 0 00> [00:00:02.573,547] <inf> thread_analyzer: thread_print_cb: system_thread : STACK: unused 1456 usage 592 / 2048 (28 %); CPU: 0 % 00> [00:00:02.573,638] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 7 00> [00:00:02.573,852] <inf> thread_analyzer: thread_print_cb: BT CTLR ECDH : STACK: unused 140 usage 764 / 904 (84 %); CPU: 0 % 00> [00:00:02.573,944] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 842 00> [00:00:02.574,279] <inf> thread_analyzer: thread_print_cb: BT RX : STACK: unused 516 usage 1020 / 1536 (66 %); CPU: 0 % 00> [00:00:02.574,371] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 5 00> [00:00:02.574,707] <inf> thread_analyzer: thread_print_cb: BT TX : STACK: unused 556 usage 980 / 1536 (63 %); CPU: 0 % 00> [00:00:02.574,798] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 95 00> [00:00:02.574,981] <inf> thread_analyzer: thread_print_cb: thread_analyzer : STACK: unused 48 usage 976 / 1024 (95 %); CPU: 0 % 00> [00:00:02.575,073] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 121 00> [00:00:02.575,836] <inf> thread_analyzer: thread_print_cb: sysworkq : STACK: unused 1636 usage 412 / 2048 (20 %); CPU: 0 % 00> [00:00:02.575,897] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 1 00> [00:00:02.576,080] <inf> thread_analyzer: thread_print_cb: MPSL Work : STACK: unused 36 usage 988 / 1024 (96 %); CPU: 0 % 00> [00:00:02.576,171] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 108 00> [00:00:02.576,446] <inf> thread_analyzer: thread_print_cb: BT_LW_WQ : STACK: unused 348 usage 956 / 1304 (73 %); CPU: 0 % 00> [00:00:02.576,538] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 455 00> [00:00:02.578,002] <inf> thread_analyzer: thread_print_cb: logging : STACK: unused 3692 usage 404 / 4096 (9 %); CPU: 0 % 00> [00:00:02.578,094] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 2 00> [00:00:02.578,277] <inf> thread_analyzer: thread_print_cb: idle : STACK: unused 52 usage 268 / 320 (83 %); CPU: 97 % 00> [00:00:02.578,338] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 82368 00> [00:00:02.578,765] <inf> thread_analyzer: thread_print_cb: main : STACK: unused 752 usage 1296 / 2048 (63 %); CPU: 0 % 00> [00:00:02.578,857] <inf> thread_analyzer: thread_print_cb: : Total CPU cycles used: 239 00> [00:00:02.579,315] <inf> thread_analyzer: isr_stacks: ISR0 : STACK: unused 896 usage 1152 / 2048 (56 %)
Any help would be greatly appreciated.