Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
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.
HiThank you Ronan and Stephen for providing me the insights, now I changed the scatter file in a way that my code can use the resources in an optimized way!Warm regardsMehran