cancel
Showing results for 
Search instead for 
Did you mean: 

Malloc in CCM

ludovic Wiart
Associate II
Posted on September 19, 2017 at 10:20

Hi,

I'm using threadX on STM32F415, and I need to create some process in SRAM and another one in CCM (depending of DMA usage)

In SRAM I create the thread like that :

void* p;

p=malloc (1024);

create_thread (... , p, 1024, ...);

how is it possible to do that in CCM ?

BR

Ludo

#ccm #threadx #malloc #sram-ccm
2 REPLIES 2
Posted on September 19, 2017 at 10:33

malloc() and kin are library functions supplied by your toolchain vendor, so you need to ask there.

You always can write your own memory allocator of course.

JW

AvaTar
Lead
Posted on September 19, 2017 at 11:30

Last time I checked (en.DM00031020.pdf, sect. 2.3.1), the CCM was only accessible on the D-bus.

Meaning, no code execution from CCM.