Search found 8 matches

by enGaryN
Sun Aug 03, 2025 7:06 pm
Forum: General Discussion
Topic: FreeRTOS time anomalie?
Replies: 8
Views: 323

Re: FreeRTOS time anomalie?

I use esp_timer_get_time() function.
That's the reason.

You're right.
I found a simple intermediate solution:
using cpu_hal_get_cycle_count() function (paired with _set_) instead of esp_timer_get_time()

Thanks everyone!

UPD: hardware timer also works well
by enGaryN
Sun Aug 03, 2025 4:15 pm
Forum: General Discussion
Topic: FreeRTOS time anomalie?
Replies: 8
Views: 323

Re: FreeRTOS time anomalie?

Do you need to match only the frequency or also the phase?

Phase (the exact time beetwen local and remote periodic events) is a fundamentally important and is the main goal of measurements
by enGaryN
Sun Aug 03, 2025 1:13 pm
Forum: General Discussion
Topic: FreeRTOS time anomalie?
Replies: 8
Views: 323

Re: FreeRTOS time anomalie?


What kind of timer for microseconds checking you use?
If it's the hardware timer, then it could be interrupts priorities: systick timer may have the highest interrupt priority.
What's the original purpose to account microseconds?
For flow counter I used PCNT



I use esp_timer_get_time() function ...
by enGaryN
Sun Aug 03, 2025 1:10 pm
Forum: General Discussion
Topic: FreeRTOS time anomalie?
Replies: 8
Views: 323

Re: FreeRTOS time anomalie?

At 240MHz, the 32 bit CPU cycle counter overflows every 17.89 seconds. Coincidence?

This is obvious. Common place
by enGaryN
Sat Aug 02, 2025 11:05 pm
Forum: General Discussion
Topic: FreeRTOS time anomalie?
Replies: 8
Views: 323

FreeRTOS time anomalie?

My program measures the exact time between two events (interrupts) with microsecond accuracy. Every 17.8 seconds the measurements are distorted by several hundred microseconds. Has anyone encountered such behavior of FreeRTOS?
by enGaryN
Wed Oct 16, 2024 3:50 am
Forum: ESP-ADF
Topic: Custom Board i2s_stream configuration - Cannot pass in custom gpio
Replies: 3
Views: 13508

Re: Custom Board i2s_stream configuration - Cannot pass in custom gpio

Did you find a solution for this?
I am having the same problem.

It seems like there should be a solution, since ESP32 apparently allows you to use any GPIO pin for I2S.
You have to create custom board with your pins etc. configuration and select it in Configuration
by enGaryN
Fri Aug 16, 2024 1:36 pm
Forum: ESP-ADF
Topic: ESP-ADF v.2.7 sheduling
Replies: 0
Views: 7930

ESP-ADF v.2.7 sheduling

Is it already known when to expect the ADF version (v.2.7) compatible with IDF v.5.3?
by enGaryN
Mon Apr 29, 2024 6:15 pm
Forum: General Discussion
Topic: Dual-band ESP32-С5 and ESP-NOW
Replies: 1
Views: 1090

Dual-band ESP32-С5 and ESP-NOW

I'm wondering if the expected dual-band chip (ESP32-C5) will support the ESP-NOW protocol?
Maybe some new features or restrictions?

Go to advanced search