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

Hardfault in memset during startup of Zigbee stack

Hi

Im trying to set up a project for development of a Zigbee / BLE based product. For that product, we use our own platform and SDK which includes the nordic nRF5 SDK for Thread and Zigbee. We use FreeRTOS in our platform, so therefore, I have chosen "examples/zigbee/experimental/multi_sensor_freertos" as a starting point for my application. 

We use our own build system, based on GNU Make, so therefore I have looked at the file "examples/zigbee/experimental/multi_sensor_freertos/pca10056/blank/armgcc/Makefile", and I have tried to get everything in there to match my own build.

The project compiles and starts, but during initialization of the Zigbee stack, I get a hardfault when using memset() in zb_init_configurable_mem(). 

I have tried to use memset() in main.c and it works as expected. Any ideas of what I have missed?

Thank you,

/Patrik

Parents Reply
  • Hi

    Is this really correct? The ZBOSS library is not in the end of the linker command, but if I try to make it the other way, it doesn't link. And your Makefile looks like this:

    # Libraries common to all targets
    LIB_FILES += \
      $(SDK_ROOT)/external/zboss/lib/gcc/libzboss.ed.a \
      $(SDK_ROOT)/external/zboss/lib/gcc/nrf52840/nrf_radio_driver.a \
      
    ...  
    
    # Add standard libraries at the very end of the linker input, after all objects
    # that may need symbols provided by these libraries.
    LIB_FILES += -lc -lnosys -lm -lstdc++

    Regards,

    Patrik

Children
Related