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

app_timer_cnt_get is get always "0"

Hello, I'm south korea student in dongguk univ. I use keil uvision4, nrf51822, s110 softdevice I need check the run-time. ANd i like to check the runtime. So i used "app_timer_cnt_get(&time1);". but the time 1 is always get 0....

one of developer say me

"If all values are zero, that means rtc is not running. A workaround is to run a dummy timer. If you are using SDK12, set APP_TIMER_KEEPS_RTC_ACTIVE to 1 in sdk_config.h."

but i can't find sdk_config.h and APP_TIMER_KEEPS_RTC_ACTIVE.

help me plz.

Parents
  • Please do not post more than one question about same problem. Post a comment on your previous thread if you did not get things working.

    sdk_config.h can be found in the config folder under [BOARD]\[SOFTDEVICE] in the project example folder in SDK. For instance sdk_config.h for blinky example for nRF52-DK (PCA10040) without softdevice, is located in [SDK_FOLDER]\examples\peripheral\blinky\pca10040\blank\config

Reply
  • Please do not post more than one question about same problem. Post a comment on your previous thread if you did not get things working.

    sdk_config.h can be found in the config folder under [BOARD]\[SOFTDEVICE] in the project example folder in SDK. For instance sdk_config.h for blinky example for nRF52-DK (PCA10040) without softdevice, is located in [SDK_FOLDER]\examples\peripheral\blinky\pca10040\blank\config

Children
No Data
Related