Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_app_uart example with SAADC (with timer) not working

Hi all,

I am using SDK = 15, softdevice = v6, chipset:nrf52810

I have used ble_app_uart and SAADC example code for one of my application, its working fine, and next i have changed the SAADC config with timer only, by commenting PPI configaration, normally(as peripheral not with BLE) this also works fine, when i added this to ble_app_uart example then it is not working, i have followed the below link for timer ADC,

https://devzone.nordicsemi.com/f/nordic-q-a/29464/saadc-how-run-a-code-just-before-the-sample-is-taken/117151#117151

I want to develop a application based on timer ADC,Kindly check and suggest me for the same, thanks in advance.

regards

kashinath

Parents Reply
  • In the SAADC example in the SDK, you select the timer instance in the top of mail:

    // TIMER0:
    static const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(0);
    
    // TIMER2:
    static const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(2);

    You also need to enable the timer instance for the driver in your sdk_config.h file:

    // <q> TIMER2_ENABLED  - Enable TIMER2 instance
    
    #ifndef TIMER2_ENABLED
    #define TIMER2_ENABLED 1
    #endif

Children
No Data
Related