This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

rtos - softdevice with nrf51422

Hi Support team,

I've ported succesfully chibios RTOS on the nrf51422 for month. I've also ported some drivers like I2C - UART - SPI- GPIOS and others... I can play with it make some apps that running perfectly.

Now I've started to integrate the softdevice but I get problems. In the main, first thing is done is to enable the softdevice.

sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_XTAL_50_PPM, softdevice_assert_callback);

But soon I call this function I get hardfault handler.

I made special attention about Ram/Flash usage and other recommandations. Chip is working well as I run sucessfuly the Hrm example.

Can you list all things that I need to check that can cause this issue?

Regards, Bruno

  • I made some investigations. It seems that enabling the PSP stack before to enable the softdevice make the softdevice get an error.I'm using the NRF51422_AAC0 and the lasest SDK 4.2.2 for this chip. I'm also compiling with GCC. Can nordic team helping on this issue? I've read somewhere on this forum that softdevice 110 can be impacted with MSP/PSP stack. is it possible to get the same issue?

    Regards, Bruno

  • Well, after some deep investigations, it means we get an hardfaultt execption soon Softdevice is active when PSP stack is activated before (CONTROL reg =2). Can you confirm this behavior on NRF51422_AAC0 and SDK 4.2.2? Next step, will be activate PSP stack on the HRM ANT+ exeample. I will post later on the result.

    Regards, Bruno

  • Hi, in case you're not aware of it, there are some peripherals that are blocked from the application when the softdevice is enabled. Please see the softdevice doc in chapter 10 for more details.

  • Hi Vidar, Thanks for you reply. I've already see that. Currently, in the init, I do nothing just activate the softdevice.

    The main difference is when I activate the PSP stack. See my comment from the september 26th "Well, after some deep investigations, it means we get an hardfaultt execption soon Softdevice is active when PSP stack is activated before (CONTROL reg =2). Can you confirm this behavior on NRF51422_AAC0 and SDK 4.2.2? Next step, will be activate PSP stack on the HRM ANT+ exeample. I will post later on the result"

    Is there any issue about that in this revision of the chip?

    Regrads, Bruno

Related