#if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

noweare
Posts: 72
Joined: Tue Jul 02, 2019 11:35 am

#if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

Postby noweare » Wed Jul 17, 2024 1:33 am

Hello.

I am using esp-idf 4.x.x.

My program is using i2s peripheral.

I am getting the "i2s_event_tx_q_ovf" event but to get that event the gdma would have to be activated.
As far as I know, that functionality is not implemented in the esp32 and the function that sends that
event is grayed out when I bring the i2s.c file into my project.

Maybe someone who has more experience with i2s can shed some light on this.

TIA

MicroController
Posts: 1692
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

Postby MicroController » Wed Jul 17, 2024 7:20 pm

The IDF driver abstracts the GDMA support of the hardware away to provide a unified application interface across the different SoC.
See e.g. https://github.com/espressif/esp-idf/bl ... i2s.c#L467
which is in the #else branch of the #if SOC_GDMA_SUPPORTED.

noweare
Posts: 72
Joined: Tue Jul 02, 2019 11:35 am

Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

Postby noweare » Thu Jul 18, 2024 12:20 am

MicroController wrote:
Wed Jul 17, 2024 7:20 pm
The IDF driver abstracts the GDMA support of the hardware away to provide a unified application interface across the different SoC.
See e.g. https://github.com/espressif/esp-idf/bl ... i2s.c#L467
which is in the #else branch of the #if SOC_GDMA_SUPPORTED.
That is a link to version 5. I'm using version 4.4 of the idf which does not include the code that sends the tx overflow event
to the queue.

Thanks for responding. :)

MicroController
Posts: 1692
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

Postby MicroController » Thu Jul 18, 2024 6:16 am

noweare wrote:
Thu Jul 18, 2024 12:20 am
That is a link to version 5.
No, it's v4.4. Specifically, the code appears to be there since v4.4.3.

noweare
Posts: 72
Joined: Tue Jul 02, 2019 11:35 am

Re: #if SOC_GDMA_SUPPORTED is false but getting events from GDMA function

Postby noweare » Thu Jul 18, 2024 1:04 pm

No, it's v4.4. Specifically, the code appears to be there since v4.4.3.
Your right.
I am using platformio, which doesn't include source of the esp-idf version that it works with.
I was looking at v 4.4.2 of the idf which I used to look at source. The esp-idf version
that platformio uses is actually 4.4.7
I did see that issue was fixed in v4.4.3 as you said.
My bad. Thanks for looking into it.
Happy programming. :)

Who is online

Users browsing this forum: No registered users and 206 guests