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

Trouble moving Zigbee project on top of SoftDevice

I am currently trying to modify a Zigbee-only application (with no SoftDevice, originally based on the light bulb example) to be placed on top of the SoftDevice. The app will still be Zigbee only and not need any SD features, the SD is needed for the bootloader only. I use SDK for Thread and Zigbee v2.0.0 and s140 v6.1.1, on nRF52840.
The Zigbee app runs as expected when configured to be "alone" without the SD, and flashed to address 0x00. However when I move the Zigbee application to the end of the SD and flash both the SD and the app, the app will successfully enter main() (verified to be over 0x26000) and execute until ZB_INIT() is called, but then never return.
I have tried to define SOFTDEVICE_PRESENT and do the necessary modifications (adding SD header paths to include paths, removing the *_nosd* files, enabling the needed modules, etc), and I have also experimented with ZB_ENABLE_SOFTDEVICE_FROM_ZBOSS to no avail.
If I break in the debugger (SES) after it gets stuck, it seems to be executing code around address 0x00000AC8 - 0x00000AAE if both SOFTDEVICE_PRESENT and ZB_ENABLE_SOFTDEVICE_FROM_ZBOSS are defined, or around address 0x000007DC - 0x000007E4 if either of those definitions are missing, until my watchdog resets everything.
I have not taken the effort to remake my project from a BLE project and following the guide to add Zigbee from here: www.nordicsemi.com/.../zigbee_multiprotocol_ble_howto , which is kind of opposite of what I want, but that could be a last resort.
Do you have any hints on how to add the SD to a Zigbee project?
Parents Reply Children
No Data
Related