2017-09-19 01:20 AM
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-ccm2017-09-19 01:33 AM
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
2017-09-19 02:30 AM
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.