<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RAM and ROM section from map file in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760851#M2765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, .sbss .COMMON goes into RAM - as you can see in linker file:&lt;/P&gt;&lt;P&gt;.data :AT (__DATA_ROM)&lt;BR /&gt; {&lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; __DATA_RAM = .;&lt;BR /&gt; __data_start__ = .; /* Create a global symbol at data start. */&lt;BR /&gt; *(.data)&lt;BR /&gt; *(.data.*)&lt;BR /&gt; *(.sdata)&lt;BR /&gt; *(.sdata.*)&lt;BR /&gt; *(.sdata2)&lt;BR /&gt; *(.sdata2.*)&lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; __data_end__ = .; /* Define a global symbol at data end. */&lt;BR /&gt; } &amp;gt; m_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all sections above ends in m_data which is allocated in the RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdata/sdata2 section is used for "small data" addressing. It is Power PC feature - basically this feature allows you to address 32 bit data by something like segment + offset using particular GP register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 08:37:44 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-04-04T08:37:44Z</dc:date>
    <item>
      <title>RAM and ROM section from map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760850#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to calculate RAM and ROM size from .map file. I have use MPC5744p,&amp;nbsp;z4 core&amp;nbsp;for&amp;nbsp;S32ds compilation.&lt;/P&gt;&lt;P&gt;There are sections like .text, .rodata, .sdata, .sbss, .COMMON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is .sdata section holds and where it will be used either for RAM or ROM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From NXP document it is found that .rodata and .text section will come for ROM section calculation.&lt;/P&gt;&lt;P&gt;And .sbss(initialized data), .COMMON.(uninitialized Global variable) will come for RAM section.&lt;/P&gt;&lt;P&gt;Kindly confirm the understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Linker pdf for MPC5744P S32ds Power PC architecture be shared?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 06:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760850#M2764</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-04-04T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: RAM and ROM section from map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760851#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, .sbss .COMMON goes into RAM - as you can see in linker file:&lt;/P&gt;&lt;P&gt;.data :AT (__DATA_ROM)&lt;BR /&gt; {&lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; __DATA_RAM = .;&lt;BR /&gt; __data_start__ = .; /* Create a global symbol at data start. */&lt;BR /&gt; *(.data)&lt;BR /&gt; *(.data.*)&lt;BR /&gt; *(.sdata)&lt;BR /&gt; *(.sdata.*)&lt;BR /&gt; *(.sdata2)&lt;BR /&gt; *(.sdata2.*)&lt;BR /&gt; . = ALIGN(4);&lt;BR /&gt; __data_end__ = .; /* Define a global symbol at data end. */&lt;BR /&gt; } &amp;gt; m_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all sections above ends in m_data which is allocated in the RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdata/sdata2 section is used for "small data" addressing. It is Power PC feature - basically this feature allows you to address 32 bit data by something like segment + offset using particular GP register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:37:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760851#M2765</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-04T08:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: RAM and ROM section from map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760852#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Linker File 5744P_flash.ld it is given as&lt;/P&gt;&lt;P&gt;.sdata :&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;*(.sdata)&lt;/P&gt;&lt;P&gt;*(.sdata.*)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; } &amp;gt; m_data &lt;/SPAN&gt;&lt;STRONG style=": ; color: #006699; font-size: small;"&gt;AT&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;&amp;gt;m_text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;So are you sure it will be considered only in RAM Section?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Linker pdf for MPC5744P S32ds Power PC architecture be shared?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhuja Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760852#M2766</guid>
      <dc:creator>sindhujabala</dc:creator>
      <dc:date>2018-04-04T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: RAM and ROM section from map file</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760853#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the linker script file is standard GNU Linker file. You can look at this pdf -&amp;nbsp;&lt;A class="link-titled" href="https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf" title="https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf"&gt;https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part of your linker file doesn't look as the standard one. Anyway - your sdata section ends in RAM (if m_data base is in the RAM) and is mirrored to FLASH (if m_text is in Flash memory range).&amp;nbsp; You can check the base address of m_data and m_text section in your linker file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;flash_rchw : org = 0x00FA0000, len = 0x4&lt;BR /&gt; cpu0_reset_vec : org = 0x00FA0004, len = 0x4&lt;/P&gt;&lt;P&gt;m_text : org = 0x1000000, len = 2560K&lt;BR /&gt; m_vectors_ram : org = 0x40000000, len = 0xC00&lt;BR /&gt; m_data : org = (0x40000000+0xC00), len = 384K-0xC00&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details about memory map you can find in Reference manual:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/MPC5744PRM.pdf?fsrch=1&amp;amp;sr=4&amp;amp;pageNum=1" title="https://www.nxp.com/docs/en/reference-manual/MPC5744PRM.pdf?fsrch=1&amp;amp;sr=4&amp;amp;pageNum=1"&gt;https://www.nxp.com/docs/en/reference-manual/MPC5744PRM.pdf?fsrch=1&amp;amp;sr=4&amp;amp;pageNum=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:39:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/RAM-and-ROM-section-from-map-file/m-p/760853#M2767</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-04T09:39:37Z</dc:date>
    </item>
  </channel>
</rss>

