Search found 30 matches

by bs-eng
Thu Jun 06, 2024 2:35 pm
Forum: ESP-IDF
Topic: esp_timer consumes 50% of CPU time, please help
Replies: 7
Views: 2374

Re: esp_timer consumes 50% of CPU time, please help

Hi! Meanwhile I used two plain examples from ADFv2.6 called pipeline_play_sdcard_music and pipeline_sdcard_mp3_control and added support for: esp_timer_dump() uxTaskGetSystemState() in order to collect system stats. In pipeline_play_sdcard_music the touch peripheral is not used, not even initialized...
by bs-eng
Thu Jun 06, 2024 12:45 pm
Forum: ESP-IDF
Topic: speed issues after upgrade to IDF5.1.2/ADF2.6
Replies: 3
Views: 977

Re: speed issues after upgrade to IDF5.1.2/ADF2.6

Hi ESP_adokitkat! Yes, I did try to change to allocator by menas of sdkconfig. With no effect on the issue. Meanwhile I narrowed the issue down to the touch peripheral. See my specific post here: https://esp32.com/viewtopic.php?f=13&t=39795 Also the ADF tasks cannot be pinned to a specific core. The...
by bs-eng
Tue May 28, 2024 4:05 pm
Forum: ESP-IDF
Topic: esp_timer consumes 50% of CPU time, please help
Replies: 7
Views: 2374

Re: esp_timer consumes 50% of CPU time, please help

Back to this task now... To see what is happening in the timer I added the esp_timer_dump() and am surprised to find that the touch filter timer is consuming large amounts of CPU time and gets triggered at a rate of approximately 30 times per second (estimate from log timestamp and esp_timer_dump() ...
by bs-eng
Mon May 20, 2024 5:16 pm
Forum: ESP-IDF
Topic: esp_timer consumes 50% of CPU time, please help
Replies: 7
Views: 2374

Re: esp_timer consumes 50% of CPU time, please help

Yes, I have exactly those two callbacks in my code. They handle all timers that may be running. To my understanding I am using already the FreeRTOS timers of the ESP-IDF framework, am I not? Yes, I am fully content with a 10ms minimum period. Usually I need only multiple of 100ms. The code to create...
by bs-eng
Sat May 11, 2024 3:13 pm
Forum: ESP-IDF
Topic: esp_timer consumes 50% of CPU time, please help
Replies: 7
Views: 2374

Re: esp_timer consumes 50% of CPU time, please help

Thanks for looking into it! My timer callback do things like this: static void alarmTimerCallback( TimerHandle_t pxTimer ){ knob_t* knob; Message_t outMsg; BaseType_t err; ESP_LOGE( TAG, "alarm timer callback triggered......"); //TODO debug, remove knob = ( knob_t* ) pvTimerGetTimerID( pxTimer ); ES...
by bs-eng
Sat May 11, 2024 11:15 am
Forum: ESP-IDF
Topic: esp_timer consumes 50% of CPU time, please help
Replies: 7
Views: 2374

esp_timer consumes 50% of CPU time, please help

Hello all! I ran into a speed issue with my code. So I gathered the info on all tasks and noticed that the task esp_timer is consuming about half of the available CPU time. See stats here: W (587604) AUDIOBOX: # task name core free stack run time in %% W (587614) AUDIOBOX: 0 AudioTask 1 13856 373664...
by bs-eng
Thu May 09, 2024 10:29 am
Forum: ESP-IDF
Topic: speed issues after upgrade to IDF5.1.2/ADF2.6
Replies: 3
Views: 977

Re: speed issues after upgrade to IDF5.1.2/ADF2.6

Nobody having any idea why an upgrade to the new IDF/ADF slows down an ESP32?
by bs-eng
Tue Apr 23, 2024 2:55 pm
Forum: ESP-IDF
Topic: speed issues after upgrade to IDF5.1.2/ADF2.6
Replies: 3
Views: 977

speed issues after upgrade to IDF5.1.2/ADF2.6

Hi all! In the past I developed a system based on IDFv4.1 and ADFv2.2. The application works fine. Recently I updated my workspace to IDF5.1.2/ADF2.6 and suddenly I am getting speed issues. These are primarily noticeable in the audio output of the device. It sounds choppy and has even little breaks/...
by bs-eng
Tue Apr 23, 2024 2:46 pm
Forum: ESP-IDF
Topic: [solved] IDF5.1.2/ADF2.6 - not-required components keep appearing in project after use of menuconfig (nghttp,jsmn)
Replies: 2
Views: 726

[solved] IDF5.1.2/ADF2.6 - not-required components keep appearing in project after use of menuconfig (nghttp,jsmn)

Hi all! My setup is: Operating System: windows 10 Java Runtime Version: 17.0.10+7 Eclipse Version: 4.30.0.v20231201-0110 (2023-12) Eclipse CDT Version: 11.4.0.202309142347 IDF Eclipse Plugin Version: 2.12.0.202312220530 ESP-IDF v5.1.2 ESP-ADF v2.6 Python set for IDF_PYTHON_ENV: Python 3.12.2 After u...