AM6442: MSRAM Usage in Empty FreeRTOS Project on AM64x

Part Number: AM6442


Tool/software:

I built an “empty” FreeRTOS project for AM64x (r5fss0-0) using CCS, and I noticed that the memory allocation report already shows ~186 KB (70%) of MSRAM consumed, even before adding any of my own application code.

This large baseline usage is forcing me to move parts of my project to DDR due to limited MSRAM availability.

Could you clarify:

  1. What contributes to this high memory usage in the default empty project (e.g., default heap/stack reservations, drivers, or linker script allocations)?

  2. Are there configuration options to reduce MSRAM consumption (for example, adjusting heap size, stack size, or moving non-critical sections to DDR)?

  3. Is this expected behavior, or is there a configuration/linker script issue that needs to be addressed?

  • Hello ,

    I am looking at your queries and you may expect reply in one or two days .

    Regards,

    Anil.

  • Dear Anil,

    I wanted to follow up on the query I sent earlier and was wondering if you had any updates or further information. 

    Best regards,

    Mary

  • Hello Mary,

    We need to check the map file to identify which sections are consuming large amounts of memory.

    From my initial review:
    • The FreeRTOS library alone seems to consume roughly 40 KB.
    • The printf / standard libraries can add another 15–20 KB.
    • Combined with driver libraries and other application code, this accounts for the observed ~186 KB MSRAM usage in debug build.

    One point to clarify: I am not sure whether you are building the application in Debug or Release mode.
    • Building in Release mode typically reduces application size due to optimizations and removal of debug symbols.

    Could you share your target memory usage plan for AM64x devices?

    If you using the only MSRAM memory , then how are you running Linux A53 cores ?

    Regards,

    Anil.