Skip to content

Zigbee sample on bparasite@2.0.0/nrf52840 enters Zephyr fatal handler (blinky/ble OK)Β #247

@feliksdd

Description

@feliksdd

Hi,

I’m testing the Zigbee sample on JLCPCB produced bparasite@2.0.0/nrf52840 boards. The same behavior is observed on 10 different boards.

What works

  • samples/blinky β†’ OK
  • samples/ble β†’ OK
  • Another Zigbee firmware (stanvn/zigbee-plant-sensor) β†’ successfully joins network

What does not work

  • code/nrf-connect/samples/zigbee builds successfully
  • Flash via ST-Link + OpenOCD works (verify OK, mass_erase done before flashing)
  • After reset: no LED activity / no pairing indication

Build command

docker run --rm -v ${PWD}:/repo nordicplayground/nrfconnect-sdk:v2.7-branch \
west build --pristine --board bparasite@2.0.0/nrf52840 \
--build-dir /repo/code/nrf-connect/samples/zigbee/build \
/repo/code/nrf-connect/samples/zigbee

Flash command

openocd -f interface/stlink.cfg -f target/nrf52.cfg \
-c "init; reset halt; nrf52 mass_erase; program build/zephyr/zephyr.hex verify; reset run; exit"

Debugging (OpenOCD)

> reset halt
target halted due to debug-request, current mode: Thread
pc: 0x0000aedc

> resume
> sleep 200
> halt
target halted due to debug-request, current mode: Handler SVCall
pc: 0x0004afe6

Registers:

r0 = 0x00000004
lr = 0x00021871
pc = 0x0004afe6

Fault status:

CFSR = 0x00000000
HFSR = 0x00000000

addr2line

arch_system_halt
kernel/fatal.c:30

k_sys_fatal_error_handler
kernel/fatal.c:44

__start
arch/arm/core/cortex_m/reset.S:80

Interpretation

Looks like an early Zephyr fatal error / kernel panic, not a CPU fault and not a flashing issue (image starts and runs briefly).

Additional note

Another project for the same hardware (stanvn/zigbee-plant-sensor) suggests using:

set WORKAREASIZE 0x4000

with OpenOCD. Not sure if relevant here since flashing + verify works.

Questions

  • Is this a known issue for the Zigbee sample on bparasite@2.0.0/nrf52840?
  • Are there known prerequisites (DT / hardware / config) beyond BLE/Blinky?
  • Any recommendation to get more detailed assert/fatal output for this sample?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions