The solution I have found, with ESP-ADF 2.7, is the "audio_calloc" call in audio_element.c at line 469 near the top of audio_element_task. Changing this to a heap_caps_malloc with MALLOC_CAP_DMA seems the lowest impact change I can do and still get non-glitching audio.
It will still use SPIRAM for ...
Search found 22 matches
- Sat May 24, 2025 9:33 pm
- Forum: ESP-ADF
- Topic: solution: use MALLOC_CAP_DMA for buffers
- Replies: 1
- Views: 4450
- Tue May 20, 2025 1:31 am
- Forum: ESP-ADF
- Topic: solution: use MALLOC_CAP_DMA for buffers
- Replies: 1
- Views: 4450
solution: use MALLOC_CAP_DMA for buffers
Hello,
I chased a problem with ESP-ADF for weeks, and found a solution (sort of).
I created a simple pipeline reading from a WAV file on SD card, and writing to the output DAC. My hardware is the AIThinker Audio-Kit hardware (I know, not a loved board), one made by ECBuying.
It mostly worked the ...
I chased a problem with ESP-ADF for weeks, and found a solution (sort of).
I created a simple pipeline reading from a WAV file on SD card, and writing to the output DAC. My hardware is the AIThinker Audio-Kit hardware (I know, not a loved board), one made by ECBuying.
It mostly worked the ...
- Tue Sep 29, 2020 9:59 pm
- Forum: ESP-IDF
- Topic: Amount of jitter on LEVEL3 interrupt?
- Replies: 7
- Views: 8781
Re: Amount of jitter on LEVEL3 interrupt?
Thanks for the response. It turned out that a good solution was to use the RMT mem_blocks parameter to increase the amount of buffering available to the system. Since that worked I did not go back and attempt to play with the wifi priority. Now that I see your report and the proper breadcrumb to try ...
- Tue Sep 15, 2020 6:30 pm
- Forum: Report Bugs
- Topic: spi peripheral doesn't work if MISO pin set to -1
- Replies: 2
- Views: 7087
Re: spi peripheral doesn't work if MISO pin set to -1
I have the same question. Wonder if a solution was ever offered.
- Tue Sep 15, 2020 6:21 pm
- Forum: ESP-IDF
- Topic: what is the unit of rssi?
- Replies: 4
- Views: 11615
Re: what is the unit of rssi?
While the wikipedia article is painfully correct, https://en.wikipedia.org/wiki/Received_signal_strength_indication
All wifi chips support RSSI, and it's in Dbm, because ( as stated ) it's power and the most common unit of power is Dbm.
Be very cautious about reading too much into RSSI, but not ...
All wifi chips support RSSI, and it's in Dbm, because ( as stated ) it's power and the most common unit of power is Dbm.
Be very cautious about reading too much into RSSI, but not ...
- Tue Sep 15, 2020 6:08 pm
- Forum: ESP-IDF
- Topic: Amount of jitter on LEVEL3 interrupt?
- Replies: 7
- Views: 8781
Re: Amount of jitter on LEVEL3 interrupt?
As an alternative, can you just run your timing-sensitive stuff on the other core?
Thanks for taking the time to answer.
Since there are various Wifi interrupts and server tasks, and no promise that I've read from ESP-IDF regarding which core is used for what in the ESP-IDF system (other than ...
- Sat Sep 12, 2020 5:32 pm
- Forum: ESP-IDF
- Topic: Amount of jitter on LEVEL3 interrupt?
- Replies: 7
- Views: 8781
Re: Amount of jitter on LEVEL3 interrupt?
This issue is very serious, and I would hope there could be some attention.
Let me ask the simple question:
how do I lower the priority of the wifi system to LEVEL 2 so to make the LEVEL 3 interrupts more responsive?
Is wifi at a particular interrupt in all versions? Is there pseudo code for ...
Let me ask the simple question:
how do I lower the priority of the wifi system to LEVEL 2 so to make the LEVEL 3 interrupts more responsive?
Is wifi at a particular interrupt in all versions? Is there pseudo code for ...
- Sat Sep 05, 2020 12:29 am
- Forum: ESP-IDF
- Topic: Amount of jitter on LEVEL3 interrupt?
- Replies: 7
- Views: 8781
Re: Amount of jitter on LEVEL3 interrupt?
I have reworked my code to use MEM_BLOCK_NUM in RMT, and have removed the LED glitches. This is because the measured jitter was about 50us, and by changing MEM_BLOCK_NUM to 2, I could absorb over 120us of jitter, so it works.
I still believe that since the ESP-IDF sample code glitches very badly ...
I still believe that since the ESP-IDF sample code glitches very badly ...
- Fri Sep 04, 2020 5:25 pm
- Forum: ESP-IDF
- Topic: How to update the ESP-IDF in windows
- Replies: 4
- Views: 7802
Re: How to update the ESP-IDF in windows
In some cases, I am only able to successfully update by deleting the esp-idf directory, re-cloning, and running the "install.sh" ( in your case install.bat, I use WSL on windows and follow the linux instructions, it runs very well ). I also usually must remove the build directory of my project to ...
- Fri Sep 04, 2020 9:48 am
- Forum: ESP-IDF
- Topic: Amount of jitter on LEVEL3 interrupt?
- Replies: 7
- Views: 8781
Amount of jitter on LEVEL3 interrupt?
Hi,
I'm doing a fairly standard thing of using the RMT interface to control LEDs. You have a simple test program that does the same, there are multiple libraries.
However, I've also got a very simple web server, and accepting TCP requests. That code is also part of your standard distribution, and ...
I'm doing a fairly standard thing of using the RMT interface to control LEDs. You have a simple test program that does the same, there are multiple libraries.
However, I've also got a very simple web server, and accepting TCP requests. That code is also part of your standard distribution, and ...