Using the Wi-Fi Fundamentals – Lesson 2, Exercise 3 (Provisioning over Bluetooth LE) sample from Nordic Semiconductor DevAcademy (GitHub solution l2e3_sol, main branch), the application builds and runs correctly on first boot: BLE provisioning succeeds and Wi-Fi connects as expected. However, after rebooting the device, a stack overflow occurs during startup.
This is reproducible on nRF Connect SDK v3.1.0 and v3.2.1 using board target nrf7002dk/nrf5340/cpuapp/ns, with no significant modifications to the sample. Logs showing successful first-boot connection and the post-reboot stack overflow are attached.
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df *** *** Using Zephyr OS v4.2.99-ec78104f1569 *** [00:00:01.706,176] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002) [00:00:01.706,207] <inf> bt_hci_core: HW Variant: nRF53x (0x0003) [00:00:01.706,237] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 252.16862 Build 1121034987 [00:00:01.708,801] <inf> bt_hci_core: HCI transport: IPC [00:00:01.708,984] <inf> bt_hci_core: Identity: CF:9C:C1:D3:44:74 (random) [00:00:01.709,014] <inf> bt_hci_core: HCI: version 6.1 (0x0f) revision 0x2069, manufacturer 0x0059 [00:00:01.709,045] <inf> bt_hci_core: LMP: version 6.1 (0x0f) subver 0x2069 [00:00:01.709,075] <inf> Lesson2_Exercise3: Bluetooth initialized. [00:00:01.709,075] <inf> Lesson2_Exercise3: Wi-Fi provisioning service starts successfully. [00:00:01.711,639] <inf> Lesson2_Exercise3: BT Advertising successfully started. [00:00:12.163,085] <inf> Lesson2_Exercise3: BT Connected: 7C:13:74:15:81:40 (random) [00:00:13.181,274] <inf> Lesson2_Exercise3: BT Disconnected: 7C:13:74:15:81:40 (random) (reason 0x13). [00:00:13.181,457] <inf> Lesson2_Exercise3: Cannot update advertisement data, err = -11 [00:00:16.911,499] <inf> Lesson2_Exercise3: BT Connected: 6F:E8:49:A3:F4:CE (random) [00:00:19.841,033] <inf> Lesson2_Exercise3: BT pairing completed: 6F:E8:49:A3:F4:CE (random), bonded: 0 [00:00:19.841,217] <inf> Lesson2_Exercise3: BT Security changed: 6F:E8:49:A3:F4:CE (random) level 2. [00:00:20.516,143] <inf> wifi_prov: Wi-Fi Provisioning service - control point: indications enabled [00:00:20.786,163] <inf> wifi_prov: Wi-Fi Provisioning service - data out: notifications enabled [00:00:21.146,636] <inf> wifi_prov: Start parsing... [00:00:21.146,667] <inf> wifi_prov: GET_STATUS received... [00:00:22.316,467] <inf> wifi_prov: Start parsing... [00:00:22.316,497] <inf> wifi_prov: Start_Scan received... [00:00:28.346,496] <inf> wifi_prov: Start parsing... [00:00:28.346,527] <inf> wifi_prov: Stop_Scan received... [00:01:56.366,943] <inf> wifi_prov: Start parsing... [00:01:56.366,973] <inf> wifi_prov: Set_config received... [00:02:09.303,314] <inf> Lesson2_Exercise3: Network connected *** Booting nRF Connect SDK v3.2.1-d8887f6f32df *** *** Using Zephyr OS v4.2.99-ec78104f1569 *** [00:00:00.591,796] <err> os: ***** USAGE FAULT ***** [00:00:00.591,796] <err> os: Stack overflow (context area not valid) [00:00:00.591,827] <err> os: r0/a1: 0x20019800 r1/a2: 0x2001e266 r2/a3: 0x0000000f [00:00:00.591,827] <err> os: r3/a4: 0x2001c594 r12/ip: 0x00000008 r14/lr: 0x00071643 [00:00:00.591,857] <err> os: xpsr: 0x41000200 [00:00:00.591,857] <err> os: Faulting instruction address (r15/pc): 0x0006eac6 [00:00:00.591,888] <err> os: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0 [00:00:00.591,918] <err> os: Current thread: 0x2001b0b8 (unknown) [00:00:00.658,233] <err> os: Halting system