cancel
Showing results for 
Search instead for 
Did you mean: 

CCMRAM AND RAM

himasagar reddy
Associate II
Posted on April 07, 2017 at 09:25

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.

2 REPLIES 2
S.Ma
Principal
Posted on April 07, 2017 at 16:00

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.

Posted on April 07, 2017 at 19:22

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..