2017-04-07 12:25 AM
Hi
Am using both CCMram and Ram memories (STM32F429), my ram is full . Can i use free space of CCMRAM to RAM if possible kindly suggest me how to use it?
THANKS IN ADVANCE.
2017-04-07 07:00 AM
There are already some post regarding the CCRAM.
Normally, the CCRAM is used for non DMA variables.
Stack is being placed there.
It is compiler dependent. To make some RAM global buffer put in the CCRAM use of a proper #pragma prior the definition of the CCRAM variables or buffer. (check the compiler documentation)
Make sure to keep enough RAM for the stack.
2017-04-07 10:22 AM
Describe the memory in your linker script or scatter file and direct variables via attribute into that memory section/segment.
Put your heap in CCM, and allocate from there, or put both SRAM and CCM into the heap allocator.