RSS
Sort by » date activity ▼ answers views votes

81 questions

Tagged
  • x
38
views
no
votes
1
answer
Last activity 2017-11-16 11:13:22 +0200 by Kenneth

timer events triggered in a row

Hi

I seek your support for the following 2 app_timer (or else) issue:

(1) in there any reason as to why multiple app_timers will sometime trigger all in a row although they have very different timeouts?

My case is button ... (more)

25
views
no
votes
no
answers
Last activity 2017-11-14 16:03:08 +0200 by Jeff

anyone having problem with the APP_TIMER in SDK14

When using the APP_TIMER in SDK14 I am having a problem with the application stopping. I was using the APP_TIMER to flash LEDs and watch for timeouts in SDK13. when porting the code to SDK14 I am having a problem ... (more)

28
views
no
votes
no
answers
Last activity 2017-11-11 18:02:16 +0200 by Sorrow91

Using app_timer_start() with app_scheduler

Hey guys,

First of all, I'm using the SDK 14.1 with my nRF52832-DK. I'm trying to get the function app_timer_start() work with the app_scheduler. But the app_timer_start() function will not be executed right.

In my sdk_config.h ... (more)

29
views
1
vote
1
answer
Last activity 2017-11-02 03:04:59 +0200 by Jason Hendrix

Missing app_timer_appsh.c

I'm working on a custom board based on the nRF52832. I'm developing on Win 8.1 using SES and a J-Link Plus. SDK version 14.1.

I'm trying to follow this tutorial here https://devzone.nordicsemi.com ... (more)

54
views
1
vote
1
answer
Last activity 2017-10-28 19:05:51 +0200 by fernandolns

Can I use app_timer and nrf_drv_timer together?

Hi,

I am having problems with using BLE along with gpiote and ppi for measuring the delay between two waveforms and sending the delay between them to an app using bluetooth. I am measuring the delay using the nrf timer ... (more)

242
views
1
vote
1
answer
Last activity 2017-10-23 13:31:05 +0200 by endnode

Questions about application timer

I have few questions that weren't addressed either in the infocenter or in the devzone: 1. In which way app_timer uses CC registers? Each running timer use one of these registers? 2. What is the maximum amount of timers ... (more)

35
views
no
votes
1
answer
Last activity 2017-10-17 11:26:59 +0100 by Sigurd flag of Norway

APP_TIMER in sdk v14 build errors when migrating from v12.3

Hello I am using PCA10040, nRF52832, and GCC toolchain

I have a project that was working good using sdk v12.3 but now I want to migrate to the latest and I am getting one particular error I have not ... (more)

44
views
no
votes
1
answer
Last activity 2017-10-11 14:50:28 +0200 by schef flag of Croatia

app_timer_cnt_get overflows after 8 minutes

I print every 500ms. Here are the last few

timers:INFO:millis 510500, cnt 16728087
timers:INFO:millis 511000, cnt 16744474
timers:INFO:millis 511501, cnt 16760868
timers:INFO:millis 0, cnt 0
.
.
.
timers:INFO:millis 1500, cnt 49152

Any idea?

43
views
1
vote
1
answer
Last activity 2017-08-25 20:39:50 +0200 by Keenan Wulff

App_timer causes main loop restart when started

I'm trying to implement a simple RTC timer into my project, and it seems like the app_timer module is the best way to do that, especially when using the Softdevice. I added the following code to my project in ... (more)

109
views
1
vote
1
answer
Last activity 2017-08-22 16:09:02 +0100 by Joakim Jakobsen flag of Norway

app_timer tick problem

I use sdk 12.3.0 / nrf51822 / SD_130. I use app_timer library.

  1. I want to know how to calculate the maximum allowed tick count when setting APP_TIMER_PRESCALER = 15 or other value.

define WAKEUP_INTERVAL APP_TIMER_TICKS(???, APP_TIMER_PRESCALER)

  1. What happens when an interval ...
(more)

92
views
no
votes
no
answers
Last activity 2017-08-15 07:59:28 +0200 by xhr0428

Stop and restart APP_TIMER doesn't work with SDK12

I use an app_timer to periodically update sensor reading in my application. There is a characteristic used to change updating rate by stopping and restarting the app_timer:

app_timer_stop(m_our_char_timer_id);
app_timer_start(m_our_char_timer_id, APP_TIMER_TICKS(1000, APP_TIMER_PRESCALER), NULL); //1000ms

It works fine with ... (more)

119
views
2
votes
2
answers
Last activity 2017-08-14 21:54:37 +0100 by AmbystomaLabs

measuring interrupt interval with app_timer

I have an interrupt coming in every 50-150 microsecs and I want to measure these intervals as precisely as possible.

I tried this with SDK12.2:

APP_TIMER_INIT(0, 5, false);

then in the (GPIOTE) ISR:

uint32_t this_time=app_timer_cnt_get();

I always ... (more)

78
views
1
vote
1
answer
Last activity 2017-07-25 10:56:58 +0100 by martin

timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)

hello,

i am using the nrf52840 preview devkit and am currently trying to find a solution for timestamping / for a time-base. the idea was to use the RTC for that since it provides a pretty accurate time reference and i ... (more)

70
views
1
vote
1
answer
Last activity 2017-07-24 11:09:17 +0100 by Jørgen Holmefjord flag of Norway

get app timer current count

Hi,

i set the app_timer to fire every 60 seconds app_timer_start(m_Timer_id, APP_TIMER_TICKS(60000, APP_TIMER_PRESCALER), NULL);

Is it possible to get the current couter,for example, after 30 seconds?

I need to have an RTC counter discretized to milli seconds ... (more)

140
views
1
vote
2
answers
Last activity 2017-04-03 12:23:23 +0200 by Kristin flag of Norway

Simple timer not working

I coded a simple timer using app_timer and tested it on my nRF51822-DK:

#ifndef NRF51
#error NRF51 must be defined.
#endif

#include <nrf.h>
#include <app_timer.h>

#include <nrf_delay.h>
#include <nordic_common.h>

#include "nrf_drv_config.h"
#include "leds.h"

uint8_t ...
(more)

102
views
2
votes
2
answers
Last activity 2017-03-24 13:47:51 +0200 by Kristin flag of Norway

Restarted Timer is not executed for long time(S132)

Hey,

SHORT VERSION: Timer (every Second) gets started when connecting (BLE with nRF Connect) to my DK (SDK12.2, Softdevice S132). Timer gets stopped when disconnecting. After reconnecting it takes more than 15Sec for the Timer to call the handler ... (more)

240
views
1
vote
1
answer
Last activity 2017-03-09 10:07:10 +0100 by endnode

Advertise on one channel at a time - app_timer problem

Hi DevZone

I want to make a little beacon app, that advertises on channel 37 then waits 700 ms, advertises on channel 38, waits 700 and advertises on channel 39. The below is what i have implemented, yet it doesn ... (more)

50
views
no
votes
1
answer
Last activity 2017-02-23 14:28:15 +0100 by Jørgen Holmefjord flag of Norway

Intermittent HardFault crash in timer_list_remove

I am currently using SDK 12.1.0 and experiencing intermittent HardFault crashes in timer_list_remove() with the stack indicating the origin being a SWI0_IRQHandler call.

In order to minimise race-conditions, timing-windows, need for critical sections etc. I am using the ... (more)

69
views
1
vote
1
answer
Last activity 2017-02-14 23:48:00 +0100 by RK flag of Singapore

Application Timer Context Pointer

When you start an application timer, you can provide an optional context pointer. Is that pointer memcpy'd like with the scheduler or is it a shallow copy? I'd like to know if I can provide locally created values ... (more)

386
views
12
votes
1
answer
Last activity 2017-02-07 08:50:08 +0200 by Phil Beeson

Bug in app_timer ?

I've been seeing occasional failures of my application which I now believe are due to a bug / design flaw in the app_timer library module.

The problem is due to a race hazard that occurs if a nested interrupt stops ... (more)

109
views
no
votes
1
answer
Last activity 2017-01-31 09:45:07 +0200 by Kristin flag of Norway

lfclk initialization trouble when switching between ble and esb

Hello,

In my application I want to switch between using bluetooth low energy and enhanced shockburst (esb). I have tried using the timeslot api to run both of them together, but although it works very well, waiting for available timeslots ... (more)

298
views
no
votes
no
answers
Last activity 2017-01-09 13:26:34 +0200 by Ole Bauck flag of Norway

Interfacing HX711 for Weigh Sensors using nRF51 BLE

Hi, I am interfacing HX711- 24 bit ADC for Weigh Scale to calculate weight which has DOUT and PD_SCLK for Digital Output and Digital Input. I have the working Arduino code and I need to convert this code for nRF ... (more)

60
views
no
votes
no
answers
Last activity 2016-12-23 21:43:34 +0200 by jimage

ESB and app_timer.c

Hello!

I have a device with custom nrf52832 board. This device can beep using buzzer. Frequency of the sound is generated by pwm driver from SDK. I'm changing frequencies and delays between to generate melody via app_timer.c (app_timer_start ... (more)

289
views
no
votes
1
answer
Last activity 2016-12-02 12:27:38 +0100 by Aryan flag of Norway

rtc and app_timer

Hi,

Is it possible to use RTC for timekeeping along with app_timer functionality? For example, I want to use simple RTC counter register and overflow interrupt to provide time tracking, but also need the app_timers. The second timer is used ... (more)

60
views
no
votes
no
answers
Last activity 2016-12-01 07:38:33 +0200 by mukesh

app_timer not working with swi0 event

I am facing some problems with the app_timer api. In my application I have created two app timers. The timer api is using the swi1 interrupt for its working. I am using it with the mesh api, in which it ... (more)

161
views
1
vote
1
answer
Last activity 2016-11-28 12:25:12 +0100 by Lalit Kumar

Stuck in while loop after event trigger

Hi,

I have a custom board of nrf51822 with no external crystal, neither 16 Mhz nor 32Khz. I am trying to use uart and app timers from SDK11 but when I start any app timer, LFCLK doesn't start. When ... (more)

159
views
no
votes
no
answers
Last activity 2016-11-28 11:57:37 +0100 by jay_j_guo

pwm + timer

Hi , I use timer to handle pwm signal, 1.when calling button by phone is pressed, Timer starts,(function:on_key_trig_speaker_event()) 2.pwm signal run (speaker_meas_timeout_handler()) 3. when stoping button by phone is pressed, Timer stop,(function:on_key_trig_speaker_event()) question:when I ... (more)

226
views
no
votes
1
answer
Last activity 2016-11-08 02:49:49 +0200 by Milk

When call the app_timer_start(),return error_code = 0x08,NRF_ERROR_INVALID_STATE? [closed]

At the start of programm, I create a timer_id used the follow code: app_timer_create(&m_sec_req_timer_id,APP_TIMER_MODE_SINGLE_SHOT,sec_req_timeout_handler);

when the device peered the iphone(ancs),send the QQ message to the iphone,the device could respond,then disconnected the device, after ... (more)

131
views
no
votes
no
answers
Last activity 2016-11-03 18:28:16 +0200 by ricsilvs

Using p_context of app_timer

Hi,

I'm trying to use the same timeout_handler for two different timers. I use the p_context (as explained here) to pass a flag to the timeout handler, so that he knows which timer is being triggered.

The problem occurs ... (more)

402
views
no
votes
no
answers
Last activity 2016-11-02 14:10:45 +0200 by Vishnu Pradeep flag of India

app_timer_cnt_get returning zero on nrf52832

Hi,

I am getting only two values on startup and the remaining values as zero when using app_timer_cnt_get. EDIT: updated entire main.c file

#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include "nrf.h"
#include "ble_hci.h"
#include ...
(more)

Statistics

  • Total users: 25343
  • Latest user: Jayme Hawley
  • Resolved questions: 10981
  • Unanswered questions: 3697
  • Total questions: 27091

User menu

    or sign up

Recent questions