Hi all!When we used malloc of size 2**15 in C code, it does not allocate.uint16_t *out = (uint16_t *)malloc(samples_size * sizeof(uint16_t));if (!out) {fprintf(stderr, "Memory allocation for out failed.\n");exit(1);}unsigned int samples_size = 1 << 15;DTCM 256kb and also ITCM in our chip (ARM Cortex M7) is 256kb.CM7_DTCMCRx 0xE000EF940xE000EF94: 0x00000049CM7_ITCMCRx 0xE000EF900xE000EF90: 0x00000049It seems that I cannot use all 256kb that I have in DTCM.Can you give me insights through this?Based on ARM support, I have to located this (via scatterloading region ARM_LIB_(STACK)HEAP), but I do not know how to do it?Appreciate your kind support and assistance.
CMSIS Packs typically provide referenc scatter files for the device used, but you can of course edit as appropriate, for example to locate the stack/heap in the DTCM rather than general memory.