<?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 fill unused flash in S32DS? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607475#M665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS ARM v1.3 and I want to fill the unused flash area with some const. Could you give me an example?&lt;/P&gt;&lt;P&gt;I have tried similar "FILL" operation on Codewarrior but it seems that the GNU linker does not work in a similar way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 02:48:38 GMT</pubDate>
    <dc:creator>cthhk</dc:creator>
    <dc:date>2017-04-13T02:48:38Z</dc:date>
    <item>
      <title>How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607475#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS ARM v1.3 and I want to fill the unused flash area with some const. Could you give me an example?&lt;/P&gt;&lt;P&gt;I have tried similar "FILL" operation on Codewarrior but it seems that the GNU linker does not work in a similar way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 02:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607475#M665</guid>
      <dc:creator>cthhk</dc:creator>
      <dc:date>2017-04-13T02:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607476#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang,&lt;/P&gt;&lt;P&gt;the following article describes how to do this with the GNU linker:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2014/06/23/filling-unused-memory-with-the-gnu-linker/" title="https://mcuoneclipse.com/2014/06/23/filling-unused-memory-with-the-gnu-linker/"&gt;FILLing unused Memory with the GNU Linker | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 03:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607476#M666</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-04-13T03:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607477#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a big fan of your blog. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually your example is based on Codewarrior 10, and I have tried your setup in my S32DS project but I got some "syntax error" regarding the "FILL" statement.&lt;/P&gt;&lt;P&gt;And I also tried something like " section {} &amp;gt; memory_segment = 0xFF" in linker file, but nothing happened to the generated srec file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help to build an example under S32DS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 07:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607477#M667</guid>
      <dc:creator>cthhk</dc:creator>
      <dc:date>2017-04-13T07:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607478#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang,&lt;/P&gt;&lt;P&gt;thank you :-).&lt;/P&gt;&lt;P&gt;The same principle applies as well to S32DS, as it uses the GNU linker as well. the only difference is that in the S32DS the memory sections are named differently.&lt;/P&gt;&lt;P&gt;I tried it quickly in the S32DS, and it worked fine (project attached).&lt;/P&gt;&lt;P&gt;in the linker file I have changed/added&lt;/P&gt;&lt;P&gt;&amp;nbsp; .fini_array :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE_HIDDEN (__fini_array_start = .);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP (*(SORT(.fini_array.*)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP (*(.fini_array*))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* PROVIDE_HIDDEN (__fini_array_end = .); */&lt;BR /&gt;&amp;nbsp; } &amp;gt; FLASH_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .fill :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILL(0xDEADBEEF);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ORIGIN(FLASH_2) + LENGTH(FLASH_2) - 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BYTE(0xAA)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ___ROM_AT = .;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE_HIDDEN (__fini_array_end = .);&lt;BR /&gt;&amp;nbsp; } &amp;gt; FLASH_2&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 08:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607478#M668</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-04-13T08:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607479#M669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found simple solution. It looks very similar to solution which posted Erich above. Please see the following link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.microchip.com/forums/m555060.aspx" title="http://www.microchip.com/forums/m555060.aspx"&gt;http://www.microchip.com/forums/m555060.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 08:08:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607479#M669</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-13T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607480#M670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I see the dead beef. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lesson learn is, when disclaim a section, don't forget to put a space between the section name and the comma. In other words, ".fill :" works good, but ".fill:" will cause a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy spacing. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607480#M670</guid>
      <dc:creator>cthhk</dc:creator>
      <dc:date>2017-04-13T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill unused flash in S32DS?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607481#M671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works. Thank you. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-fill-unused-flash-in-S32DS/m-p/607481#M671</guid>
      <dc:creator>cthhk</dc:creator>
      <dc:date>2017-04-13T14:35:56Z</dc:date>
    </item>
  </channel>
</rss>

