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

nRF52832 freertos app_timer_create() report an error: NRF_ERROR_INVALID_STATE

Hi:

   nRF52832  ble_app_uart :

    An error (NRF_ERROR_INVALID_STATE) was reported after porting the RTOS.

   Step by step positioning is caused here.The following screenshots:

 It's initialized by bSP_init in buttons_leds_init in main 。

I see it's written here: 

Would you like to know how to deal with this problem in detail ?

Parents
  • Hi

    You can't reset the already created timer in app_timer_freertos.c like you can in app_timer.c. The reason for this is that app_timer_freertos.c uses an RTOS internal timer API where xTimerCreate is used in this context. This doesn't behave similar to app_timer_create from app_timer.c. If you want to reset the timer, please use the xTimerReset function instead.

    Best regards,

    Simon

Reply
  • Hi

    You can't reset the already created timer in app_timer_freertos.c like you can in app_timer.c. The reason for this is that app_timer_freertos.c uses an RTOS internal timer API where xTimerCreate is used in this context. This doesn't behave similar to app_timer_create from app_timer.c. If you want to reset the timer, please use the xTimerReset function instead.

    Best regards,

    Simon

Children
Related