<?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 How to put a constant array into a specified flash memory? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753780#M2663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Hello! &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to&amp;nbsp;put a constant array into a specified flash memory (address is 0x00007FF0)in S32 Design Studio for ARM.However,"const &amp;nbsp;char flag[10]@&lt;SPAN&gt;0x00007FF0" doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; So,Should I modify the &amp;nbsp;Flash.ld?&lt;span class="lia-inline-image-display-wrapper" image-alt="111.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35703i26C4B995A353A0B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.jpg" alt="111.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2018 12:28:06 GMT</pubDate>
    <dc:creator>tanmingming</dc:creator>
    <dc:date>2018-03-30T12:28:06Z</dc:date>
    <item>
      <title>How to put a constant array into a specified flash memory?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753780#M2663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Hello! &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to&amp;nbsp;put a constant array into a specified flash memory (address is 0x00007FF0)in S32 Design Studio for ARM.However,"const &amp;nbsp;char flag[10]@&lt;SPAN&gt;0x00007FF0" doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; So,Should I modify the &amp;nbsp;Flash.ld?&lt;span class="lia-inline-image-display-wrapper" image-alt="111.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35703i26C4B995A353A0B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.jpg" alt="111.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 12:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753780#M2663</guid>
      <dc:creator>tanmingming</dc:creator>
      <dc:date>2018-03-30T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to put a constant array into a specified flash memory?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753781#M2664</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;you need to add custom section into linker file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; /* Flash */&lt;BR /&gt; m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt; m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt; m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x00007BE0&lt;BR /&gt; &lt;STRONG&gt;m_mydata (RX) : ORIGIN = 0x00007FF0, LENGTH = 0x000000FF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* SRAM_L */&lt;BR /&gt; m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt; m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Define output sections */&lt;BR /&gt;SECTIONS&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.mydata :&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;KEEP(*(.mydata))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; } &amp;gt; m_mydata&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and define variable by using __attribute__ like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__attribute__ ((section(".mydata"))) const char flag[] = {"ABCDEFGHIJ"};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 07:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753781#M2664</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-04-03T07:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to put a constant array into a specified flash memory?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753782#M2665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;It's useful to add the "KEEP".I have solved the problem. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Best wishes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Mingming&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 06:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-put-a-constant-array-into-a-specified-flash-memory/m-p/753782#M2665</guid>
      <dc:creator>tanmingming</dc:creator>
      <dc:date>2018-04-04T06:24:18Z</dc:date>
    </item>
  </channel>
</rss>

