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

Debugging application by jumping in time

Hi guys,

my app crashes exactly every 8 minutes.

I have some bug in my code and would want to find what the reason is.

Is it possible to change the internal register value of app timer so it starts on 7m and 30s?

i have looked at the app_timer_cnt_get and it looks like it returns os_tick_val.

One idea is to make offset to the app_timer_cnt_get value but then i have to make overflow cases and so on?

Is there another "hardware" way?

I use nrf52840 and sdk 15.2.

Thanks

Parents
  • How, exactly, does it "crash" ? eg, Is it hitting the Nordic Fatal Error handler?

    Other suggestion:

    * think if there's anything that your app does at 8 minutes (or some sub-multiple); eg timing-out or re-starting advertising

    * instrument your code to give diagnostic traces via UART or RTT

    * implement a memory buffer (not cleared by a reset) to record "breadcrumbs" as your code runs

    * Break execution shortly before 8 minutes - are you running out of stack, for example ?

Reply
  • How, exactly, does it "crash" ? eg, Is it hitting the Nordic Fatal Error handler?

    Other suggestion:

    * think if there's anything that your app does at 8 minutes (or some sub-multiple); eg timing-out or re-starting advertising

    * instrument your code to give diagnostic traces via UART or RTT

    * implement a memory buffer (not cleared by a reset) to record "breadcrumbs" as your code runs

    * Break execution shortly before 8 minutes - are you running out of stack, for example ?

Children
Related