RSS
Sort by » date activity ▼ answers views votes

85 questions

Tagged
  • x
45
views
no
votes
1
answer
Last activity 2018-01-05 09:33:30 +0200 by Alex Suzuki

app_timer firing far too late, app_timer_cnt_get() gives weird results

Hi,

I'm using the nRF51 dongle with nRF SDK 12.3.0 and the S130 2.0.1 SoftDevice to implement a BLE central. The dongle repeatedly connects to a BLE peripheral, performs some tests, then disconnects.

I am ... (more)

134
views
no
votes
1
answer
Last activity 2017-12-18 11:03:47 +0200 by Martin Børs-Lind flag of Norway

[bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set

My setup is as follows: nRF5 SDK 13.1 with s132 5.1.0 nRF52832_AA Keil 5.25pre

I use RTC1 counter for timestamping along with app_timer timers. My get_timestamp() function retrieves it's time value by calling app_timer_cnt_get() and ... (more)

50
views
1
vote
1
answer
Last activity 2017-12-13 10:30:29 +0100 by Jim

Where to put APP_TIMER_DEF without error or warning?

I am working on a project in Nordic SDK 8.1 that requires using a timer. I am confused where I need to define the timer though (using APP_TIMER_DEF). If I put it right after my #include statements I get ... (more)

79
views
no
votes
no
answers
Last activity 2017-11-29 23:14:47 +0200 by trigerion

SAADC with soft device and low-power mode

Hello,

yesterday I measured the current of our device and found out that it looks more as a square instead of spikes when no device was connected. Found out that when I established a BLE connection it looks as expected ... (more)

50
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)

45
views
no
votes
no
answers
Last activity 2017-11-14 16:03:08 +0100 by Jeff flag of United States

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)

113
views
no
votes
no
answers
Last activity 2017-11-11 18:02:16 +0100 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)

39
views
1
vote
1
answer
Last activity 2017-11-02 03:04:59 +0100 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)

108
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)

285
views
1
vote
1
answer
Last activity 2017-10-23 13:31:05 +0100 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)

51
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)

67
views
no
votes
1
answer
Last activity 2017-10-11 14:50:28 +0100 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?

47
views
1
vote
1
answer
Last activity 2017-08-25 20:39:50 +0100 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)

185
views
1
vote
1
answer
Last activity 2017-08-22 16:09:02 +0200 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)

107
views
no
votes
no
answers
Last activity 2017-08-15 07:59:28 +0100 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)

133
views
2
votes
2
answers
Last activity 2017-08-14 21:54:37 +0100 by AmbystomaLabs flag of United States

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)

133
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)

93
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)

163
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)

109
views
2
votes
2
answers
Last activity 2017-03-24 13:47:51 +0100 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)

256
views
1
vote
1
answer
Last activity 2017-03-09 10:07:10 +0200 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)

68
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)

77
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)

459
views
12
votes
1
answer
Last activity 2017-02-07 08:50:08 +0100 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)

128
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)

326
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)

65
views
no
votes
no
answers
Last activity 2016-12-23 21:43:34 +0100 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)

316
views
no
votes
1
answer
Last activity 2016-12-02 12:27:38 +0200 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)

71
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)

167
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)

Statistics

  • Total users: 26289
  • Latest user: Curtis Otto
  • Resolved questions: 11535
  • Unanswered questions: 4019
  • Total questions: 28672