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

ANT bicycle power example wont work, NRF_ERROR_SDM_LFCLK_SOURCE_UNKNOWN

Hello,

i use the nRF51 SDK_v6.1.0.0 with s210_nrf51422_3.0.0_softdevice.hex and EM:Blocks as IDE.

i have included the SD210 into the project wizard and created the s210 "C" file with the SD Array.

static __INLINE void softdevice_setup(void)
{
   uint32_t err_code = 0;

  err_code = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_XTAL_50_PPM, softdevice_assert_callback);
  APP_ERROR_CHECK(err_code);

  err_code = sd_nvic_SetPriority(SD_EVT_IRQn, NRF_APP_PRIORITY_LOW);
  APP_ERROR_CHECK(err_code);

  err_code = sd_nvic_EnableIRQ(SD_EVT_IRQn);
  APP_ERROR_CHECK(err_code);
}

called by:

int main( void )
{
   softdevice_setup();
   bp_only_tx_main_loop_run();
   return 0;
}

sd_softdevice_enable returns 0x0002

wondering why because nRF51 SDK_v6.1.0.0 is stated to be compatible with revision QFAA E0 which is on PCA10006 which i use.

i used the bicycle power only example for PCA10003 and simplified it without button usage etc.

I'm not sure if i'm allowed to post the project attached because of Softdevice etc.?!

Greets Andi

Parents
  • I have tested bicycle_power_only_sensor on PCA10003, QFAAE0, and it works fine here.

    I used SDK6.1.0 and s210 3.0.0.

    NRF_ERROR_SDM_LFCLK_SOURCE_UNKNOWN is actually error code 0x1000.

    You claim sd_softdevice_enable returns 0x0002, which corresponds to NRF_ERROR_SOFTDEVICE_NOT_ENABLED, which is a bit strange.

    Could you please double check which function that is returning the error, and what the error code is? Please edit your question to include the correct information, if erroneous.

Reply
  • I have tested bicycle_power_only_sensor on PCA10003, QFAAE0, and it works fine here.

    I used SDK6.1.0 and s210 3.0.0.

    NRF_ERROR_SDM_LFCLK_SOURCE_UNKNOWN is actually error code 0x1000.

    You claim sd_softdevice_enable returns 0x0002, which corresponds to NRF_ERROR_SOFTDEVICE_NOT_ENABLED, which is a bit strange.

    Could you please double check which function that is returning the error, and what the error code is? Please edit your question to include the correct information, if erroneous.

Children
Related