Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 999f6e2

Browse files
committed
[MC] Alloc memory flag for DMA which guarantee bare core support
1 parent 9600f0d commit 999f6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/adapter/memory_card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static inline void mc_store_cb(void *arg) {
130130

131131
int32_t mc_init_mem(void) {
132132
for (uint32_t i = 0; i < MC_BUFFER_BLOCK_CNT; i++) {
133-
mc_buffer[i] = malloc(MC_BUFFER_BLOCK_SIZE);
133+
mc_buffer[i] = heap_caps_malloc(MC_BUFFER_BLOCK_SIZE, MALLOC_CAP_DMA);
134134

135135
if (mc_buffer[i] == NULL) {
136136
printf("# %s mc_buffer[%ld] alloc fail\n", __FUNCTION__, i);

0 commit comments

Comments
 (0)