So, if I understand correctly, anyone can declare a static buffer like this:

static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED]
SPI6_DMABUFSIZE_ALGN locate_data(".sram4");

and automatically the heap will not overlap it?

Yes provided that:

1. The .sram_resevere section is origined at SRAM4_BEGIN, and
2. The region that you add is in the range from SRAM4_RESERVE_END to
   SRAM4_END

Reply via email to