First time here? Check out the Tour!
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)
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)
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_timer_start() function will not be executed right.
sdk_config.h ... (more)
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)
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)
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)
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)
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
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)
I use sdk 12.3.0 / nrf51822 / SD_130. I use app_timer library.
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)
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:
I always ... (more)
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)
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)
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 ...
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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 ...