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

Can timers be accessed after advertisement starts?

I am new to nrf52.

I want to configure TIMER1 as a counter.

However it does not count. I have added it after advertisement_init

Does the nrf52 have any such limitations? How to handle them?

Parents Reply Children
  • Hi,

    Raja Sumant said:
    This is how it looks. 

    I am unable to run the timer.

    Thank you for clarifying on this. From these lines, it seems that you have indeed not enabled the timers.
    So, if you are using the NRFX_TIMER driver, you will need to enable it in the sdk_config ( NRFX_TIMER_ENABLED 1 ), along with the particular timer instances you are intending to use ( NRFX_TIMER3_ENABLED 1 ). If you are using NRFX_DRIVER you will need to remove the legacy NRF_DRV_TIMER_* defines from your sdk_config file. If you are using the legacy nrf_drv_timer driver, then you will need to set their ENABLED's.
    Please do this, and let me know if you are able to use the timer drivers following this.

    For future reference, it is always easiest if you share code using the "Insert -> code" option, instead of including screenshots. Screenshots often does not contain all the right information.

    Best regards,
    Karl

Related