Search found 6 matches

by dwrice0
Sun Sep 15, 2024 2:56 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Re: Inconsistent behavior of xTimerCreate() timer

OK. I figured out my issue and I'm pretty embarrassed to say what the issue was. It basically stems from the fact I let the code sit for awhile and came back to it not remembering my entire plan. What it came down to was that fact my strategy was that after the device woke up and started the timer a...
by dwrice0
Fri Sep 13, 2024 2:35 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Re: Inconsistent behavior of xTimerCreate() timer

Thanks for that info. I will test and report back. I'm definitely weak in my knowledge of how some of the additional keywords for function and variable definitions that deal with how they are handled/placed in RAM or handled differently in a RTOS.
by dwrice0
Thu Sep 12, 2024 10:31 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Re: Inconsistent behavior of xTimerCreate() timer

This simple program seems to work just fine: #include <stdio.h> #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/timers.h" static const char* TAG = "timertesting"; bool timerEnabled = false; TimerHandle_t wakeTimerHandle = NULL; static void onTimer(TimerHandle_t timer){ timerEn...
by dwrice0
Thu Sep 12, 2024 1:49 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Re: Inconsistent behavior of xTimerCreate() timer

So, nothing obviously wrong with the basic timer code above?

Rather than post a wall of code, I'll do what I should have already done and create a simple program to just start a 5 minute timer and print something out when it fires. If that behaves the same, I'll post that code.
by dwrice0
Tue Sep 10, 2024 2:45 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Re: Inconsistent behavior of xTimerCreate() timer

Not for this particular timer. The "wake" in the variable names are reflecting that it is the timer to determine how long it stays awake before going back to sleep. What I am doing is putting the ESP to sleep with both esp_sleep_enable_ext0_wakeup() and esp_sleep_enable_timer_wakeup() so that I can ...
by dwrice0
Mon Sep 09, 2024 4:59 pm
Forum: General Discussion
Topic: Inconsistent behavior of xTimerCreate() timer
Replies: 9
Views: 2088

Inconsistent behavior of xTimerCreate() timer

I'm relatively new to ESP-IDF and programming an ESP32 but not programming in general. In my particular case, I'm trying to create a timer that will fire after 5 minutes on an ESP32-S3 (Seeed Studio Xiao S3 Sense). My specific timer is defined and started as follows: wakeTimerHandle = xTimerCreate("...