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

nrf51822 not advertising

Hello, I am using an nrf51822 but have no success in advertising. I tried so far to load the ble_app_template from the peripheral examples where I' ve only changed

 #define APP_ADV_INTERVAL                10
 #define APP_ADV_TIMEOUT_IN_SECONDS      0

I tried to load another example, but still no success. I tried to change crystal's accuracy to 20 PPM or 250PPM still nothing, switched crystal to internal RC nothing.

I should pinpoint that nrfGo studio crashes so I flashed s130 via nrfprog, which according to the following output seems to work.

nrfjprog  --verify s130_nrf51_2.0.1_softdevice.hex
Parsing hex file.
Verifying programming.
Verified OK.

What else can I do to get it running? Please help me :)

Parents
  • Where did you get 0x20001870 from ?

    Try IRAM base 0x20001fe8, and size 0x2018

    If that doesen't work, try to switch to NRF_CLOCK_LF_SRC_RC. in ble_stack_init() function:

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
    
    clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
    clock_lf_cfg.rc_ctiv=16;
    clock_lf_cfg.rc_temp_ctiv=1;
    clock_lf_cfg.xtal_accuracy=0;
    
    // Initialize the SoftDevice handler module.
    SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
    
Reply
  • Where did you get 0x20001870 from ?

    Try IRAM base 0x20001fe8, and size 0x2018

    If that doesen't work, try to switch to NRF_CLOCK_LF_SRC_RC. in ble_stack_init() function:

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
    
    clock_lf_cfg.source = NRF_CLOCK_LF_SRC_RC;
    clock_lf_cfg.rc_ctiv=16;
    clock_lf_cfg.rc_temp_ctiv=1;
    clock_lf_cfg.xtal_accuracy=0;
    
    // Initialize the SoftDevice handler module.
    SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
    
Children
No Data
Related