XMC4500: Usage of the core coupled memory (CCM)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17511
Level 1
Level 1
Hello,

to improve the performance of my application on a
XMC4500F100K1024AC, I tried to use the CCM but I
did't find any hints in the web.

In the STM32F4xx-world they use a special variable
declaration to place them into the CCM.

So I started to declare my variables step by step
in this way, e. g.:

static float xyz __attribute__((section(".ccmram")));

DAVE's compiler/linker passed without trouble
and there was an ascertainable gain of performance.

But if I exceed a certain number of variables declared
in this way, the application suddenly crashes.

Does the CCM have to be specially initialized or
are other preparations required?

Best regards
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Have a look to the linker file, you need to use the following attribute:
/* functions with __attribute__((section(".ram_code"))) */


Regards,
Jesus
0 Likes