• Scheduler - Serial, Timer ( interrupt priority)- help needed

    Hi, I have a simple application with logic is: - every 3 or 20 seconds send some data via modem (based on AT commands), - sending and receiving data via serial port to and from the modem, Application: I) When we take MCU ON the application each 3s is…
  • Can't enter app_sched_execute, is the scheduler blocked

    Hi everyone, I am now writing a program with scheduler. But the program always can't enter app_sched_execute. I don't kow the reason. Is the scheduler blocked. Firstly, in main I just initialize scheduler, such as APP_SCHED_INIT(0, 5); Then, in…
  • What is the point of app_scheduler.h in the ble eddystone example?

    The ble_app_eddystone example that comes with the SDK uses the scheduler, but I have failed to see where any handlers are registered to the scheduler (and grep -ing the eddystone library itself shows it uses the scheduler only in the flash-memory related…
  • Doesn't CRITICAL_REGION_EXIT() in app_sched_event_put() have to be moved to the end of the function?

    Hi, I wonder CRITICAL_REGION_EXIT() in app_sched_event_put() have to be moved to the end of function. CRITICAL_REGION_EXIT() is called after proceeding index in current app_sched_event_put(), I think this may not keep handler and data combination…
  • 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 devzone.nordicsemi.com/.../ to create an application that uses the S132 SoftDevice…
  • NRF52 running RTOS vs. SDK Scheduler

    I'm trying to decide whether to use FreeRTOS or simply build on the Scheduler. What are the risks and benefits of using freeRTOS or another RTOS on a wearable sensor device vs using the scheduler?
  • nRF52 scheduler

    I am creating a system (nRF52 SDK11.0.0 s132) that will get a data ready interrupt on a GPIO (configured via GPIOTE with a handler) from a sensor every 4ms. The sensor has an SPI slave interface for reading the data. The handler will either set a flag…
  • Calling app_sched_event_put inside interrupt

    Hi, I'm debugging a small app that is using the LPCOMP to trigger an interrupt when the BLE device is turned off. We have a capacitor to maintain alive the nRF for a while after the power is turned off (the idea is to let the nRF store some data in flash…
  • SWI2_IRQHandler causing NRF_ERROR_NO_MEM

    I have found that when I try and initial the Softdevice to use the Scheduler, shortly after initialization and right before dm_init() runs, I get an NRF_ERROR_NO_MEM error asserting which is stemming from the SWI2_IRQHandler in softdevice_handler.c (line…
  • Running out of scheduler's queue size with app_timer

    I've been experiencing this bug for a while now. What happens is that a app_timer's overflow handler can't put any more messages into the queue because the queue is full, which is surprising considering my queue size is 15. I run two userspace timers…
  • App_timer // app_scheduler -> SDK 6.1 -> SDK 8.0 migration

    Hello, I just received new rev.3 nrf51822 chips, so I am migrating with my project to newest SDK version. I installed Keil5 with that smart run-time environment manager, but I have problem with integrating built-in timer library with scheduler. …
  • app_timer does not trigger the timer with app_timer_id zero

    I am creating four timers in my application using app_timer.c . All timers work except the timer with ID zero never triggers.( means first timer created does not work all timers created after first one works perfectly) I am using SCHEDULER for timers…
  • Problem with pstorage_access_status_get(uint32_t *count) function

    hi, i made ble app with nRF51822 (s110), sdk 6.1.0 and i put this code after a pstorage_store() function to wait finishing of this function. uint32_t err_code, count; do { app_sched_execute(); err_code = pstorage_access_status_get(&count);…