Search found 43 matches

by shabtronic
Mon Jan 13, 2020 11:51 pm
Forum: ESP32 ADF
Topic: DEFAULT_ESP_M4A_DECODER_CONFIG vs DEFAULT_AAC_DECODER_CONFIG
Replies: 4
Views: 297

Re: DEFAULT_ESP_M4A_DECODER_CONFIG vs DEFAULT_AAC_DECODER_CONFIG

Awesome!

No I have no links - I found it by myself when playing around with mp3/flac decoders on the different cores. I think it's linked to the task context switcher not saving the fpu state properly - that's just a guess tho - I didn't have time to investigate it further.
by shabtronic
Fri Jan 10, 2020 11:14 pm
Forum: ESP32 ADF
Topic: DEFAULT_ESP_M4A_DECODER_CONFIG vs DEFAULT_AAC_DECODER_CONFIG
Replies: 4
Views: 297

Re: DEFAULT_ESP_M4A_DECODER_CONFIG vs DEFAULT_AAC_DECODER_CONFIG

The mp3 decoder has issues running on core 1 - it's fpu thing. Guessing M4A has the same thing?

Flac has no problem on core-1, mp3 decodes badly with noise.

It could be that? try running on core-0 to test.
by shabtronic
Thu Jan 02, 2020 6:05 pm
Forum: ESP32 IDF
Topic: I2C Speed issues
Replies: 0
Views: 114

I2C Speed issues

Hi Esp32 Folk I'm guessing the I2C system is limited to around 1mhz? I'm testing out various OLEDs - that I know can run above 1mhz - and I'm getting about 1.1mhz speed out the current I2C IDF system. OLED is a SSD1327, buffer size is 8192 bytes - i2c speed is set to 2,000,000. Transfer time is arou...
by shabtronic
Tue Dec 31, 2019 12:19 am
Forum: IDEs for ESP-IDF
Topic: Official Visual Studio Code Extension for ESP-IDF Projects
Replies: 9
Views: 1062

Re: Official Visual Studio Code Extension for ESP-IDF Projects

OMG - that is awesome!

took me a few hours previously adding *every single* component dir (idf and adf) path into a vs project
:)

Thank you! :D
by shabtronic
Tue Dec 24, 2019 10:27 pm
Forum: ESP32 IDF
Topic: questions about mutex and critical sections
Replies: 4
Views: 254

Re: questions about mutex and critical sections

This is the classic reference book for learning preemptive concurrency

http://greenteapress.com/semaphores/Lit ... phores.pdf

along with "Lock Free Queues".


Have fun!
by shabtronic
Sun Dec 22, 2019 2:00 pm
Forum: ESP32 ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 22
Views: 1459

Re: applying esp-dsp IIR biquad to pipeline or element ?

Awesome you got it working - sucks about the firmware problem tho.

There is a edit option - it's a little pen next to the flag on the top right of anything you post.

Have fun!
by shabtronic
Sat Dec 21, 2019 2:32 pm
Forum: ESP32 ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 22
Views: 1459

Re: applying esp-dsp IIR biquad to pipeline or element ?

this would be the code if your I2S stream is 16bit : elsewhere in code BiQuad MyFilter; MyFilter.CalcCoeffs(4,000,1,1,44100,-1); float MyFloatBuf[1024]; in DSP Function: // convert to floats for (int a=0;a<len/2;a++) MyFloatBuf[a]=(float)((short*)Buf)[a]/32768; // Process Left/Right samples /4 this ...
by shabtronic
Sat Dec 21, 2019 1:54 pm
Forum: ESP32 IDF
Topic: How to use PSRAM for static definitions and malloc()?
Replies: 4
Views: 325

Re: How to use PSRAM for static definitions and malloc()?

I think you can only use the EXT_RAM_ATTR on zero'd var's. I think the reason is - the system would have to copy the init data to spiram - making it more complex under the hood as such.
by shabtronic
Sat Dec 21, 2019 1:51 pm
Forum: ESP32 ADF
Topic: applying esp-dsp IIR biquad to pipeline or element ?
Replies: 22
Views: 1459

Re: applying esp-dsp IIR biquad to pipeline or element ?

cool stuff! I noticed on your previous code your doing this: for ( int i = 0; i < len; i++ ) { // do this properly with ESP-DSP maths ? FloatDspBuf = ((float)DspBuf) / (float)32768; } I know it's pseudo code - but it should be /2 because len is in bytes for ( int i = 0; i < len/2; i++ ) { // do this...
by shabtronic
Sat Dec 21, 2019 4:54 am
Forum: ESP32 IDF
Topic: How to use PSRAM for static definitions and malloc()?
Replies: 4
Views: 325

Re: How to use PSRAM for static definitions and malloc()?

Don't know about the static allocation - but spiram malloc is done with

heap_caps_malloc(size, MALLOC_CAP_SPIRAM)
https://docs.espressif.com/projects/es ... l-ram.html

all depends how you've menuconfig'd it!

Go to advanced search