From 44af11f38c64b7541e2f0b3d8f07a15c6e922f68 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 7 Dec 2021 16:39:33 +0800 Subject: [PATCH] spi-slave: fix single-board: hd test failing due to DMA buffers ending up in PSRAM --- components/driver/test/test_spi_slave_hd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/driver/test/test_spi_slave_hd.c b/components/driver/test/test_spi_slave_hd.c index dde6448c24..1408264e1b 100644 --- a/components/driver/test/test_spi_slave_hd.c +++ b/components/driver/test/test_spi_slave_hd.c @@ -137,7 +137,7 @@ static void init_slave_hd(int mode, bool append_mode, const spi_slave_hd_callbac static void test_hd_init(void** arg) { TEST_ASSERT(*arg==NULL); - *arg = malloc(sizeof(testhd_context_t)); + *arg = heap_caps_malloc(sizeof(testhd_context_t), MALLOC_CAP_DMA); assert(((int)arg%4)==0); testhd_context_t* context = (testhd_context_t*)*arg; TEST_ASSERT(context!=NULL);