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

Zigbee SDK on top of FreeRTOS

Hi

I'm trying to use nRF5 SDK for thread and Zigbee 3.2.0 on top of FreeRTOS 9.0 for a Zigbee coordinator.
Since I could not find any coordinator example on FreeRTOS, I started with adding the files etc as of
"Adding dynamic multiprotocol Zigbee support to BLE examples" and followed the init
"Zigbee Multi Sensor with FreeRTOS Example" to my current project, but ran in some issue
directly when calling ZB_INIT("zdo_zc");

I get the following output from zboss, via zb_osif_serial_put_bytes, after that I get stuck in hard fault.
Len:8 Data:0xdead0e0203000000
Len:8 Data:0x7a00820f00f8ff07

Any clues or ideas of what I missed?

Dev setup:
Win 10
gcc-arm-none-eabi-7-2018-q2
FreeRTOS 9.0
nRF5 SDK for thread and Zigbee 3.2.0
nRF52840-DK

libs:
nrf_radio_driver_softdevice.a
libzboss.a (debug version)
s140_nrf52_6.1.1_softdevice.hex

Defines
SOFTDEVICE_PRESENT
S140
RAAL_SOFTDEVICE=1
FREERTOS
ZB_TRACE_LEVEL=0
ZB_TRACE_MASK=0

Parents
  • I added ZB_ENABLE_SOFTDEVICE_FROM_ZBOSS=1 since I don't use the softdevice for BLE yet, but i t will be used in the future.

    Now I get at stack trace like this:

    _exit() at newlibStubs.c:281 0x2dfaa
    abort() at 0x60ffa
    __assert_func() at 0x60540
    nrf_raal_init() at 0x5fc1e
    nrf_802154_rsch_init() at 0x5dbee
    nrf_802154_init() at 0x5b984
    mac_nrf52840_hw_init() at 0x3a08a
    zb_mac_transport_init() at 0x3a0b6
    zb_init() at 0x41d6a

    Any suggestions

    BR

  • Sorry for the late response Vilhelm

    The assert does not seem to show anything that tells me that this could cause because of the FreeRTOS port. So this must be Zigbee related assert. With given details, if there is an assert in RAAL, then it most likely could be conflict in interrupt priority ini which zb_init is called. Nothing else strikes me with the given info.

Reply Children
No Data
Related