<?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>S32KのトピックRe: SRAM Memory Data store</title>
    <link>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611874#M164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you defined the constant? If it is defined as 'volatile' like:&lt;/P&gt;&lt;P&gt;volatile const unsigned int myconst = 0x123;&lt;/P&gt;&lt;P&gt;... then it will be placed to RAM.&lt;/P&gt;&lt;P&gt;If it is defined without 'volatile' like&lt;/P&gt;&lt;P&gt;const unsigned int myconst = 0x123;&lt;/P&gt;&lt;P&gt;... then the constant is either optimized out and compiler uses immediate value in asm code or the constant is placed to .rodata section in flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 07:47:34 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2017-04-20T07:47:34Z</dc:date>
    <item>
      <title>SRAM Memory Data store</title>
      <link>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611873#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;calculate angle data by using&amp;nbsp;tanzent lookup table. Tanzent lookup table is const type data.&lt;/P&gt;&lt;P&gt;S32K144 SRAM size&amp;nbsp;is that SRAM_L(32KB), SRAM_U(24KB).&lt;/P&gt;&lt;P&gt;But&amp;nbsp;because&amp;nbsp;SRAM_L memory is fiiled with generated code(HAL &amp;amp; FlexDriver), so SRAM_L&lt;/P&gt;&lt;P&gt;memory not enough for user data as lookup table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is as following:&lt;/P&gt;&lt;P&gt;1) Why const type data stored in SRAM_L,&amp;nbsp;not flash memory&amp;nbsp;? Is that correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;SPAN lang="en"&gt;&lt;SPAN&gt;How can I store const type data in&amp;nbsp;flash memory(Pflash or Dflash ?), not SRAM_L ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Apr 2017 05:37:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611873#M163</guid>
      <dc:creator>jaewoosong</dc:creator>
      <dc:date>2017-04-16T05:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM Memory Data store</title>
      <link>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611874#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you defined the constant? If it is defined as 'volatile' like:&lt;/P&gt;&lt;P&gt;volatile const unsigned int myconst = 0x123;&lt;/P&gt;&lt;P&gt;... then it will be placed to RAM.&lt;/P&gt;&lt;P&gt;If it is defined without 'volatile' like&lt;/P&gt;&lt;P&gt;const unsigned int myconst = 0x123;&lt;/P&gt;&lt;P&gt;... then the constant is either optimized out and compiler uses immediate value in asm code or the constant is placed to .rodata section in flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611874#M164</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-20T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: SRAM Memory Data store</title>
      <link>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611875#M165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find my mistake for S32 Design studion setting.&lt;/P&gt;&lt;P&gt;Debug option is set to Debug_RAM.&lt;/P&gt;&lt;P&gt;So all variable is stored to SRAM.&lt;/P&gt;&lt;P&gt;After changing Debug, const type is stored in Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SRAM-Memory-Data-store/m-p/611875#M165</guid>
      <dc:creator>jaewoosong</dc:creator>
      <dc:date>2017-04-27T13:24:28Z</dc:date>
    </item>
  </channel>
</rss>

