Commit 38ab4b38 authored by Mathieu Choplain's avatar Mathieu Choplain Committed by Alberto Escolar
Browse files

tests: dma/chan_blen_transfer: place TX buf in RAM

This commit removes the const qualifier from TX (source) buffer
of the chan_blen_transfer DMA test to ensure it gets placed in
RAM rather than flash. This ensures the test can pass on hardware
where the DMA controller is unable to access flash.

Fixes #75125.

Signed-off-by: default avatarMathieu Choplain <mathieu.choplain@st.com>
parent c77b8186
Loading
Loading
Loading
Loading
+1 −1
Changes for tests/drivers/dma/chan_blen_transfer/src/test_dma.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@

#define RX_BUFF_SIZE (48)

static __aligned(32) const char tx_data[] = "It is harder to be kind than to be wise........";
static __aligned(32) char tx_data[] = "It is harder to be kind than to be wise........";
static __aligned(32) char rx_data[RX_BUFF_SIZE] = { 0 };

static void test_done(const struct device *dma_dev, void *arg,