<?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>S32 Design StudioのトピックRe: the variable was defined in the GRAM region</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/the-variable-was-defined-in-the-GRAM-region/m-p/738722#M2406</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;it looks like that this linker file is standard one for M4 core and there is no mapped SRAM for that core. All SRAM is used by A5 and M0 core. Am I right? You can check linker files for other cores in your project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can normally use it as it is - if you&amp;nbsp; are not facing any issues. Otherwise - you need to shring SRAM from M0 or A5 core and use available memory for M4 and put there stack/heap and other stuff.&amp;nbsp;&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>Thu, 08 Mar 2018 11:44:24 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-03-08T11:44:24Z</dc:date>
    <item>
      <title>the variable was defined in the GRAM region</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-variable-was-defined-in-the-GRAM-region/m-p/738721#M2405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used S32DS to debug MAC57D54H and found that the variable was defined in the GRAM region. I checked the link file and found that it was written like this：&lt;/P&gt;&lt;P&gt;MEMORY {&lt;BR /&gt; FLASH_CONFIG : ORIGIN = 0x18f9c000, LENGTH = 16K&lt;BR /&gt; FLASH_CODE : ORIGIN = 0x19000000, LENGTH = 0x280000&lt;BR /&gt; CODE_A5 : ORIGIN = 0x19280000, LENGTH = 0x80000&lt;BR /&gt; GRAM : ORIGIN = 0x3F000000 + 0x100, LENGTH = 1M - 0x100 - 256K&lt;BR /&gt; IOP_RAM : ORIGIN = 0x3E400000, LENGTH = 32K&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;__DATA_ROM = .; /* Symbol is used by startup for data initialization */&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&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_END = .;&lt;BR /&gt; __data_end__ = .; /* define a global symbol at data end */&lt;BR /&gt; } &amp;gt; GRAM&lt;BR /&gt; &lt;BR /&gt; __DATA_END = __DATA_ROM + (__data_end__ - __data_start__);&lt;BR /&gt; &lt;BR /&gt; .bss ALIGN(16) :&lt;BR /&gt; {&lt;BR /&gt; _BSS_BEGIN = .;&lt;BR /&gt; __bss_start__ = .;&lt;BR /&gt; *(.bss*) /* Zero-filled run time allocate data memory */&lt;BR /&gt; *(COMMON) &lt;BR /&gt; __bss_end__ = .;&lt;BR /&gt; _BSS_END = .;&lt;BR /&gt; } &amp;gt; GRAM&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* stack and heap shall be located in the same memory region */&lt;BR /&gt; .heap ALIGN(8): &lt;BR /&gt; {&lt;BR /&gt; __end__ = .;&lt;BR /&gt; PROVIDE(_end = .);&lt;BR /&gt; PROVIDE(end = .);&lt;BR /&gt; . += HEAP_SIZE;&lt;BR /&gt; } &amp;gt; GRAM&lt;/P&gt;&lt;P&gt;.stack ALIGN(8):&lt;BR /&gt; {&lt;BR /&gt; _stack_s = .;&lt;BR /&gt; . += STACK_SIZE;&lt;BR /&gt; _stack_e = .;&lt;BR /&gt; } &amp;gt; GRAM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my understanding, the GRAM area is the area of 2D-ACE to display the image information，&amp;nbsp;So I want to know what I should do?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 06:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-variable-was-defined-in-the-GRAM-region/m-p/738721#M2405</guid>
      <dc:creator>wangjianpeng</dc:creator>
      <dc:date>2018-03-08T06:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: the variable was defined in the GRAM region</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/the-variable-was-defined-in-the-GRAM-region/m-p/738722#M2406</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;it looks like that this linker file is standard one for M4 core and there is no mapped SRAM for that core. All SRAM is used by A5 and M0 core. Am I right? You can check linker files for other cores in your project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can normally use it as it is - if you&amp;nbsp; are not facing any issues. Otherwise - you need to shring SRAM from M0 or A5 core and use available memory for M4 and put there stack/heap and other stuff.&amp;nbsp;&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>Thu, 08 Mar 2018 11:44:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/the-variable-was-defined-in-the-GRAM-region/m-p/738722#M2406</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-08T11:44:24Z</dc:date>
    </item>
  </channel>
</rss>

