How to generating memory map files for ARM Core?

Hi all,

I have to analyze the memory utilization of my application for ARM core on SC-584 EZ KIT.

We know that we can generate the memory map file for SHARC cores by enabling the linker options "Generate symbol map (-map)" in SHARC core project. We are not finding any such options for the ARM cores. Can someone suggest about generating the memory map file for ARM core?

Thanks

  • 0
    •  Analog Employees 
    on Mar 22, 2016 9:35 AM

    Hi,

    For ARM core, you can type the following command in the additional options in the linker settings (Settings/CrossCore ARM Bare Metal C linker/Additional Options). This will generate a map file for you in the debug folder.

    -Wl,-M=ARMcode.map

    Please let us know if you need any further information related to this.

    Thanks,

    Harshit

  • Hi Harshit,

    Thanks for your response. Its generating the file, but it is not in XML format. Is there anyway we can convert this into XML format or HTML format.?

    Thanks

  • 0
    •  Analog Employees 
    on Mar 22, 2016 10:35 AM

    Hi,

    I do not see any option to generate MAP file for ARM in XML format.

    However there are tools available which allows to quickly inspect the MAP file generated by GNU toolchain. CCES uses GNU toolchain for ARM core in ADSP-SC58x processor.

    One such GUI is available here:

    http://www.sikorskiy.net/prj/amap/index.html

    Please let us know if you need any further information.

    Thanks,

    Harshit

  • Hi Harshit,

    Thanks a lot., it works fine.

    Ksam

  • Hi Harshit,

    I have small doubts regarding the uC/OS memory footprint of ARM core on SC 584 EZ kit. Its mentioned in the CCES help note that memory footprint for basic project is around 68596. When I am analyzing footprint using the tool you have mentioned, there I am getting almost same value when I am building the project in DEBUG mode.

    Where as in RELEASE mode I am getting the almost half. Just want to confirm why there is so much difference.


    When we see the footprint of uC/OS on ARM and SHARC core, the values are almost double for ARM core. My question here is, why the uC/OS takes that much of footprint on ARM core?


    Awaiting for your response.

    Thanks