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

in the timeout_handler of app_timer_create, invoking function nrf_esb_write_payload(&tx_payload)

Hi,

  in the timeout_handler of app_timer_create, invoking function nrf_esb_write_payload(&tx_payload),The timeout_handler function won't come in again,why? timer  cancel?

Parents
  • Hi,

    Did you use a repeated timer of a single shot timer? If single shot, then it is expected that the timeout happens only once. If that is not the issue and you do not stop the timer, there are still a few other typical problems:

    • application "stuck" waiting for something in an interrupt priority that is same or higher than app_timer priority. If so, the next app_timer (RTC) interrupt will never run.
    • stopping LFCLK for some reason (which will prevent the RTC from counting, so app_timer will not run).
Reply
  • Hi,

    Did you use a repeated timer of a single shot timer? If single shot, then it is expected that the timeout happens only once. If that is not the issue and you do not stop the timer, there are still a few other typical problems:

    • application "stuck" waiting for something in an interrupt priority that is same or higher than app_timer priority. If so, the next app_timer (RTC) interrupt will never run.
    • stopping LFCLK for some reason (which will prevent the RTC from counting, so app_timer will not run).
Children
No Data
Related