2025-05-21 11:08 PM
When using HAL_SPI_Transmit_DMA with STM32743, must the transmission data buffer and reception data buffer be placed in D1 RAM?
Also, is there a way to dynamically allocate D1 RAM? Rather than declaring an array placed in section("D1"), I would like to dynamically allocate it like malloc. Is this possible?
2025-05-21 11:47 PM - edited 2025-05-21 11:53 PM
>must the transmission data buffer and reception data buffer be placed in D1 RAM?
see rm , where the different dma's connect to ->
>is there a way to dynamically allocate D1 RAM
Note also that if you use ST's STM32CubeIDE that uses GCC and Newlib and has the syscalls layer implemented already.
in newlib is malloc :
#include <stdlib.h> void *malloc(size_t nbytes);
just try it.