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

Linking ESB library in Eclipse

I've tried linking the ESB library (esb_arm.lib) in Eclipse by adding it to my nRF51822 project's Makefile, but I am still getting undefined reference errors during build. Is there something special that needs to be done to include this library?

Parents
  • Hi Adam,

    You should link in the GCC build of the library, which is located here: ..\Nordic Semiconductor\nRF51 SDK_v5.1.0.36092\Nordic\nrf51822\Lib\esb\gcc

    Best regards Håkon

  • Hi Håkon,

    I am trying to use the ESB library and SoftDevice on the same chip, but not at the same time. I am having an issue when switching to enable the SoftDevice after disabling the ESB library. I can get the ESB portion working fine. The problem occurs when I call nrf_esb_disable() to disable the ESB library and then enable the SoftDevice, sd_softdevice_enable() returns 0x1001 signaling that there is an incorrect interrupt configuration. I have tried disabling the timer interrupt and SWI that the ESB library are using after disabling it, but that doesn't seem to work. Is there something special that needs to be done in between disabling ESB and enabling the SoftDevice?

Reply
  • Hi Håkon,

    I am trying to use the ESB library and SoftDevice on the same chip, but not at the same time. I am having an issue when switching to enable the SoftDevice after disabling the ESB library. I can get the ESB portion working fine. The problem occurs when I call nrf_esb_disable() to disable the ESB library and then enable the SoftDevice, sd_softdevice_enable() returns 0x1001 signaling that there is an incorrect interrupt configuration. I have tried disabling the timer interrupt and SWI that the ESB library are using after disabling it, but that doesn't seem to work. Is there something special that needs to be done in between disabling ESB and enabling the SoftDevice?

Children
No Data
Related