<?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 FlexNVM used as Data flash memory in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexNVM-used-as-Data-flash-memory/m-p/397563#M21945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using K21 series controller, where I do have 512 KB of Data flash and another 128K FlexNVM which I'm using as data Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my "test.ld" file looks like.@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 512 KB data flash, start with addrss 0x000000000 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLASH_BASE = 0x00000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLASH_SIZE = 0x00080000; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 128 KB FlexNVM, start at addrss 0x100000000 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLEXNVM_BASE = 0x10000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLEXNVM_SIZE = 0x00020000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have 64KB of bootloader, which I can place either in First 512K of Flash or in FLEX NVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In Flash : &lt;/P&gt;&lt;P&gt;&amp;nbsp; bootloader&amp;nbsp; (RX):&amp;nbsp; ORIGIN = 0x00000000, LENGTH = 0x00010000&amp;nbsp; /* Bootloader, 64K */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Or in FlexNVM : &lt;/P&gt;&lt;P&gt;&amp;nbsp; bootloader&amp;nbsp; (RX):&amp;nbsp; ORIGIN = 0x10000000, LENGTH = 0x00010000&amp;nbsp; /* Bootloader, 64K */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do we have any provision that, we can place this 64K of bootloader,some part of it in first 512K of DataFlash and another part in FlexNVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm in a situation, where some section of my .exe ,&amp;nbsp; I have to place in DataFlash and some part in FlexNVM, which is unavoidable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please let me know whether its possible. in that case how would the *.ld file will look like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 05:59:36 GMT</pubDate>
    <dc:creator>rahulg</dc:creator>
    <dc:date>2015-11-10T05:59:36Z</dc:date>
    <item>
      <title>FlexNVM used as Data flash memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexNVM-used-as-Data-flash-memory/m-p/397563#M21945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using K21 series controller, where I do have 512 KB of Data flash and another 128K FlexNVM which I'm using as data Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my "test.ld" file looks like.@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 512 KB data flash, start with addrss 0x000000000 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLASH_BASE = 0x00000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLASH_SIZE = 0x00080000; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 128 KB FlexNVM, start at addrss 0x100000000 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLEXNVM_BASE = 0x10000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __INTERNAL_FLEXNVM_SIZE = 0x00020000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have 64KB of bootloader, which I can place either in First 512K of Flash or in FLEX NVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In Flash : &lt;/P&gt;&lt;P&gt;&amp;nbsp; bootloader&amp;nbsp; (RX):&amp;nbsp; ORIGIN = 0x00000000, LENGTH = 0x00010000&amp;nbsp; /* Bootloader, 64K */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Or in FlexNVM : &lt;/P&gt;&lt;P&gt;&amp;nbsp; bootloader&amp;nbsp; (RX):&amp;nbsp; ORIGIN = 0x10000000, LENGTH = 0x00010000&amp;nbsp; /* Bootloader, 64K */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do we have any provision that, we can place this 64K of bootloader,some part of it in first 512K of DataFlash and another part in FlexNVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm in a situation, where some section of my .exe ,&amp;nbsp; I have to place in DataFlash and some part in FlexNVM, which is unavoidable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please let me know whether its possible. in that case how would the *.ld file will look like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 05:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexNVM-used-as-Data-flash-memory/m-p/397563#M21945</guid>
      <dc:creator>rahulg</dc:creator>
      <dc:date>2015-11-10T05:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: FlexNVM used as Data flash memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexNVM-used-as-Data-flash-memory/m-p/397564#M21946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello rahul Ghosh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be possible to place some part of the bootloader in PFlash and the rest in DFlash (FlexNVM), but the linker cannot do this automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to manually place some functions of the bootloader in the PFlash and the rest in DFlash. The next documents in community explain the procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For&lt;STRONG&gt; CodeWarrior (CW)&lt;/STRONG&gt;: &lt;A href="https://community.nxp.com/docs/DOC-101433"&gt;Relocating Code and Data Using the CW GCC Linker File for Kinetis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Kinetis Design Studio (KDS)&lt;/STRONG&gt;: &lt;A href="https://community.nxp.com/docs/DOC-104433"&gt;Relocating Code and Data Using the KDS GCC Linker File for Kinetis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next approach described by colleague Erich Styger can also work in a file basis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/" title="http://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/"&gt;Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 01:16:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexNVM-used-as-Data-flash-memory/m-p/397564#M21946</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-11-13T01:16:26Z</dc:date>
    </item>
  </channel>
</rss>

