Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_sdh_enable_request() HardFault if SOFTDEVICE_PRESENT not defined

This is basically a bug report/feature request, but I figured having it out in the open would be good too in case anyone else runs into this.


Hi Nordic folks,

Would you consider making nrf_sdh_enable_request(), and other functions that depend on a softdevice, unavailable without SOFTDEVICE_PRESENT defined?

I've been trying out the SDK without copying and pasting an sdk_config.h and Makefile from an example so that I can keep my own source tree small and have a sense of what's going on (to the extent possible). The biggest roadblock I hit so far was that nrf_sdh_enable_request() consistently HardFaulted until I noticed that the example projects all defined SOFTDEVICE_PRESENT — adding it sorted things out.

In general, it'd be amazing if the SDK failed more explicitly when you didn't "hold it right" in terms of setting config flags, but that's a big ask and this is more specific.

Here's a snapshot of my project, just for reference. It's very much in progress, but you can see what I'm working with.

Parents Reply Children
No Data
Related