Skip to main content
ludovic Wiart
Associate II
September 19, 2017
Question

Malloc in CCM

  • September 19, 2017
  • 2 replies
  • 756 views
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
    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    September 19, 2017
    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
    Senior III
    September 19, 2017
    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.