<?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: Fill unused bytes of ROM with 0xFF in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668462#M372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The erased flash will be 0xFF by default no need to rewrite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean there is more than one section that needs to be separated by 0xFF's?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The linker script can be modified:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;or &amp;nbsp;&lt;A class="link-titled" href="http://srecord.sourceforge.net/" title="http://srecord.sourceforge.net/"&gt;SRecord 1.64&lt;/A&gt;&amp;nbsp; can be used to add fill bytes &amp;nbsp;during the build process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 12:43:42 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2017-06-22T12:43:42Z</dc:date>
    <item>
      <title>Fill unused bytes of ROM with 0xFF</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668461#M371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone guide me with settings required in the IDE to fill unused bytes of ROM location with 0xFF in hex file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating hex file for application that am going to load using CAN bootloader. But the application hex file is created only for the code available. But in my case, i am suppose to fill the unused bytes with 0xFF, So that bootloader will program entire flash memory allocated for the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manjunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 05:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668461#M371</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-06-21T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fill unused bytes of ROM with 0xFF</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668462#M372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The erased flash will be 0xFF by default no need to rewrite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean there is more than one section that needs to be separated by 0xFF's?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The linker script can be modified:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;or &amp;nbsp;&lt;A class="link-titled" href="http://srecord.sourceforge.net/" title="http://srecord.sourceforge.net/"&gt;SRecord 1.64&lt;/A&gt;&amp;nbsp; can be used to add fill bytes &amp;nbsp;during the build process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668462#M372</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2017-06-22T12:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fill unused bytes of ROM with 0xFF</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668463#M373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only one section, Lets say its starts from 0x00010000 and size is 0xFFFF.&lt;/P&gt;&lt;P&gt;Currently the hex file generated only for the used memory, means for the code available. But I have to generate hex file for entire size, So unused location in the hex file shall be filled with 0xFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Manjunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 05:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668463#M373</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-06-27T05:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fill unused bytes of ROM with 0xFF</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668464#M374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link that you have shared is more useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to fill with 0xFF in the hex file using below script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.fill :&lt;BR /&gt; {&lt;BR /&gt; FILL(0xFFFFFFFF);&lt;BR /&gt; . = ORIGIN(FLASH_2) + LENGTH(FLASH_2) - 1;&lt;BR /&gt; BYTE(0xFF)&lt;BR /&gt; ___ROM_AT = .;&lt;BR /&gt; } &amp;gt; FLASH_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Manjunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 05:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Fill-unused-bytes-of-ROM-with-0xFF/m-p/668464#M374</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-06-27T05:57:18Z</dc:date>
    </item>
  </channel>
</rss>

