Skip to content

Commit 30ce64d

Browse files
hakehuangMaureenHelm
authored andcommitted
test: dma: avoid useing flash as dma source address
avoid to use the flash address as dma source, to avoid flash cache issue this is fix to issue zephyrproject-rtos#26812 Signed-off-by: Hake Huang <[email protected]>
1 parent 3aa7d7f commit 30ce64d

File tree

1 file changed

+2
-2
lines changed
  • tests/drivers/dma/loop_transfer/src

1 file changed

+2
-2
lines changed

tests/drivers/dma/loop_transfer/src/dma.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ static __aligned(16) char tx_data[64] __used
2626
static __aligned(16) char rx_data[TRANSFER_LOOPS][RX_BUFF_SIZE] __used
2727
__attribute__((__section__(".nocache.dma")));
2828
#else
29-
/* pad to times of 8*/
30-
static const char tx_data[] =
29+
/* this src memory shall be in RAM to support usingas a DMA source pointer.*/
30+
static char tx_data[] =
3131
"The quick brown fox jumps over the lazy dog ....";
3232
static __aligned(16) char rx_data[TRANSFER_LOOPS][RX_BUFF_SIZE] = { { 0 } };
3333
#endif

0 commit comments

Comments
 (0)