This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: activate cache in FreeRTOS Linker script

Other Parts Discussed in Thread: SYSCONFIG

Hi folks!

In my application a had performance problems.

I started with the this example linker script


here every think is slow.

So I moved the code block 

.text:   {} palign(8)   /* This is where code resides */

from the 

GROUP { .. } > DDR


GROUP { .. } > MSRAM

Now every thing is much faster,

but does this mean the code isn't cached?

How can I activate caching?

Best Regards


  • Hi,

    The caching on ARM cores requires two configurations to be done.

    1- Enabling the cache itself
    2- Setting up Memory protection unit to configure a specific area to be cacheable or not (by default set to cacheable)

    If you are starting from the empty example project in MCU+ SDK the caches are enabled. You can use MPU settings in sysconfig to define a region that you wish to be non-cacheable.

    You can look at the linker region you are placing the data in and then check MPU configuration to be sure if MPU configures that region as cacheable or not.

     Let me know if you need further clarification.