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

Unable to advertise Ble if i create app_timer

Hi,

i am using PCA10040 DK board, working on ble_app_Uart example, i have created one timer(app_timer) here is the code:

printf("init\r\n");

ret_code_t err_code;

APP_TIMER_INIT(0, 4, NULL);

err_code = app_timer_create(&Timer_id, APP_TIMER_MODE_SINGLE_SHOT, Timer_handler);  

err_code = app_timer_start(Timer_id, APP_TIMER_TICKS(30000,APP_TIMER_PRESCALER), NULL);

when i execute the code it is not advertising and not blinking LED on the board but it is showing device name NORDIC_UART if scan for ble devices, and able to connect with NRFToolbox.

what is the reason behind it.

and also if i run same timer with 20 min with out connecting ble to any other device(ble advertising and timer running parallelly). after 3 min of time device going to stuck and also device stoping advertise its name.

Thank you

Parents Reply Children
No Data
Related