Cannot get Zigbee to work on a nRF52840 board #45465
-
Hi all, I've recently got a custom nRF52840 board (in particular this Makerdiary nRF52840 MDK USB Dongle). I got it to try and experiment with the Zigbee protocol, so I just tried to run the The problem is that I always get a kernel panic, bus fault or something along those lines. The funny thing is that the error changes a lot, and it's almost always never the same. Sadly I could not find the common cause of all those errors, but (I think) they are all around the multithreading library (k_thread, nrf_rtc_timer, cpu_idle, etc...) and all of them are triggered only if I uncomment the Here is the code for completeness:
Here is one example or error I'm getting (from UART):
Note that PC 0x00019226 corresponds to Here is another:
Here 0x000487dc corresponds to zephyr/include/arch/arm/aarch32/asm_inline_gcc.h:95 Everything in the code is almost identical to the one in the examples, but there has been nothing that made it work someway. So I'm here to ask you if there is anything I could try to make it work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm updating my own question because I finally got it to work, and the reason why it didn't work was just the bootloader. I'm leaving this here for anybody that will happen to find this thread in the future |
Beta Was this translation helpful? Give feedback.
-
Where did you get the zigbee stack ? |
Beta Was this translation helpful? Give feedback.
I'm updating my own question because I finally got it to work, and the reason why it didn't work was just the bootloader.
I've never thought of that because other programs I wrote were just running fine with the bootloader, so it wasn't an obvious reason for it to not work. Anyway I solved by flashing the .hex directly on flash instead of on top of the bootloader (I was using OpenBootloader).
I'm leaving this here for anybody that will happen to find this thread in the future