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.