Page 1 of 1

How to clear esp_timer memory?

Posted: Tue Mar 07, 2023 6:10 am
by Vivek@IoT

esp_timer_create(&retry_count_timer_args, &retry_count_timer);
esp_timer_start_once(retry_count_timer, retry_count_time_us);


I created a timer using the above two functions and then after the timer expires I want to free the memory of the timer.
I used the following function but it is causing the program to crash.
esp_timer_stop(retry_count_timer));
esp_timer_delete(retry_count_timer);


Please let me know if I am doing something wrong. Thank you

Re: How to clear esp_timer memory?

Posted: Wed Mar 08, 2023 12:33 am
by ESP_Sprite
Sounds like you're using it correctly. What exactly crashes, can you give us a backtrace?