Use of dual core

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: Use of dual core

Postby ESP_Sprite » Fri Feb 10, 2017 7:14 am

Nothing yet, sorry, haven't been able to come around to looking into this.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Use of dual core

Postby WiFive » Sun Feb 26, 2017 3:01 pm

Cpu1 task issue appears to be resolved now thanks.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Use of dual core

Postby Ritesh » Fri Feb 16, 2018 7:28 pm

BakerMan wrote:Good Morning,

i want to implement a slow speed pcm slave interface capable of transfering 32bit frames with 8kHz In- and Output at the same time. When i got my ESP32 i tried to (ab)use the I2S interfaces for that. I made more ivestigations Friday. There is my open thread you can find under: http://www.esp32.com/viewtopic.php?f=2&t=819 The idea was to use both I2S Interfaces as slave devices with connected ws and bclk, ones as Input and one as output. The slave mode didnt work, so i tried to make the pcm part for my self.

I created 2 buffers like this:

Code: Select all

 char *outBuf = pvPortMallocCaps(DATA_BUFFER_SIZE, MALLOC_CAP_8BIT); 
These buffers i uses in between the "self implemented" pcm interface and the uart. The uart itself does not use the output ringbuffer or interrupts, data will be written directly to the from the buffer above. All incoming data from the uart will be written the dma input ringbuffer and the copied to a buffer i declared like the output buffer above. But it does not matter if the data will be copied to this buffer or not, a random interruption of about 125us will occur in the moment the uart recieves any data. So its pretty possible that the DMA transfer to the uart ringbuffer may block the memory bus. I dont know if my buffers will be created in the 32k region which cpu1 also uses.

I think its a way bether solution to try on with I2S. Maybe i did something wrong, but at the moment this interface does not react on external clock signals in slave mode. I dont have a master clock. Only ws, bclk, din and dout from an other device.

Kind regards
Hi,

Did you get success to receive data from UART using DMA? If yes then would you please share example for how to configure UART with DMA for that?
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 159 guests