From 40093b34ebc293247bb7c361da08b4ebfa706777 Mon Sep 17 00:00:00 2001 From: morris Date: Tue, 14 Nov 2023 22:40:02 +0800 Subject: [PATCH] fix(rmt): enable dma owner check Closes https://github.com/espressif/esp-idf/issues/12564 --- components/driver/rmt/rmt_tx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/driver/rmt/rmt_tx.c b/components/driver/rmt/rmt_tx.c index 3cb25a395f..b4d3a24692 100644 --- a/components/driver/rmt/rmt_tx.c +++ b/components/driver/rmt/rmt_tx.c @@ -65,6 +65,11 @@ static esp_err_t rmt_tx_init_dma_link(rmt_tx_channel_t *tx_channel, const rmt_tx .direction = GDMA_CHANNEL_DIRECTION_TX, }; ESP_RETURN_ON_ERROR(gdma_new_ahb_channel(&dma_chan_config, &tx_channel->base.dma_chan), TAG, "allocate TX DMA channel failed"); + gdma_strategy_config_t gdma_strategy_conf = { + .auto_update_desc = true, + .owner_check = true, + }; + gdma_apply_strategy(tx_channel->base.dma_chan, &gdma_strategy_conf); gdma_tx_event_callbacks_t cbs = { .on_trans_eof = rmt_dma_tx_eof_cb, };