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

The significance of sections provided in the linker file in SDK14.

 I am using nrf52832_xxaa and I'm porting my device from SDK11 to 14.

I have found that new sections have been added in the linker file of the examples like sdh_soc_observers,sdh_ble_observers etc.

Please can someone explain the significance of these sections and provide some documentation explaining the same.

  • They are used by the SoftDevice handler library (nrf_sdh, nrf_sdh_ble, nrf_sdh_soc and nrf_sdh_ant) to store SoftDevice event "observers", which are event handlers, basically. Those libraries have macros to place an "observer" in those sections, for example NRF_SDH_BLE_OBSERVER. You can find more about this in the SoftDevice handler documentation.

Related