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

nRF51422 SPI is not working properly with BLE

I am trying to configure SPI with BLE using softdevice S130. But SPI is not working properly when I used it with BLE, although it is working fine without BLE

Parents
  • int main(void) { uint32_t err_code; bool erase_bonds;

    // Initialize.
    err_code = NRF_LOG_INIT();
    APP_ERROR_CHECK(err_code);
    timers_init();
        spi_init();
    buttons_leds_init(&erase_bonds);
    ble_stack_init();
    peer_manager_init(erase_bonds);
    if (erase_bonds == true)
    {
    		NRF_LOG_DEBUG("Bonds erased!\r\n");
    }
    gap_params_init();
    advertising_init();
    services_init();
    sensor_simulator_init();
    conn_params_init();
    
    // Start execution.
    application_timers_start();
    
    advertising_start();
    
        APP_LOG("\r\nGLS Start!\r\n");	
       // Enter main loop.
    nrf_delay_ms(AS3993_DELAY_STARTUP_US);
    spi_test();
       for(;;)
       {
          power_manage();
    
       }
    

    }

Reply
  • int main(void) { uint32_t err_code; bool erase_bonds;

    // Initialize.
    err_code = NRF_LOG_INIT();
    APP_ERROR_CHECK(err_code);
    timers_init();
        spi_init();
    buttons_leds_init(&erase_bonds);
    ble_stack_init();
    peer_manager_init(erase_bonds);
    if (erase_bonds == true)
    {
    		NRF_LOG_DEBUG("Bonds erased!\r\n");
    }
    gap_params_init();
    advertising_init();
    services_init();
    sensor_simulator_init();
    conn_params_init();
    
    // Start execution.
    application_timers_start();
    
    advertising_start();
    
        APP_LOG("\r\nGLS Start!\r\n");	
       // Enter main loop.
    nrf_delay_ms(AS3993_DELAY_STARTUP_US);
    spi_test();
       for(;;)
       {
          power_manage();
    
       }
    

    }

Children
No Data
Related