This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Connect SDK nfc_pairing example failure

Hi, I'm trying to run the nfc_pairing example from the master branch (1.3.99) of NCS. I've successfully built the example in SES and loaded it onto my nRF52840DK, but the application fails when I fire it up on the board. Debug console output associated with this fault is shown below:

*** Booting Zephyr OS build v2.3.0-rc1-ncs1-1451-gb160c8c5caa5 ***
Starting Bluetooth NFC Pairing Reference example
I: 8 Sectors of 4096 bytes
I: alloc wra: 0, fc8
I: data wra: 0, 3c
I: No ID address. App must call settings_load()
Bluetooth initialized
E: ***** MPU FAULT *****
E: Stacking error (context area might be not valid)
E: Data Access Violation
E: MMFAR Address: 0x20004898
E: r0/a1: 0x00000000 r1/a2: 0xe000ed00 r2/a3: 0x20002b04
E: r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0xe000ed00
E: xpsr: 0x61000000
E: Faulting instruction address (r15/pc): 0x0001c1e0
E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
E: Current thread: 0x20001090 (unknown)
E: Resetting system

I've been attempting to follow the fault through debug, but the best I've been able to do is determine it is occurring some time after calling k_work_init(&adv_work, adv_handler) in main. I know the master branch is pre-release isn't stable per se, but I'm not sure if this applies to the nfc_pairing example. Has anyone successfully run this example on a nRF52840DK? Just trying to determine if the example even works as written, and if there are any config issues/fault workarounds on my end I need to address. Still very new to NCS and zephyr, so thanks in advance for assistance.

Related