<?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: Re: Re: K70 flexnvm used for program flash in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226128#M4497</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;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;will copy&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;here&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the response of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Mr &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="26845" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="222906" data-username="adriancano" href="https://community.nxp.com/people/adriancano" onclick=""&gt;&lt;SPAN style="color: #3778c7;"&gt;Adrian Sanchez Cano&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;made on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;another&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;post (&lt;A _jive_internal="true" href="https://community.nxp.com/message/451671?et=watches.email.thread#451671" title="https://community.freescale.com/message/451671?et=watches.email.thread#451671"&gt;TWR-K70F120M Tower Module: "not able to run on the target or the flash is not configured properly" | Freescale Community&lt;/A&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;First of all you need to configure in the tcl file the NandFlashController to be able to communicate with the memory you are using.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you decide to use a Flash device that is not supported by CodeWarrior you must make two things to have it usable.&lt;/P&gt;
&lt;P&gt;1.&lt;STRONG&gt;Create a Flash Algorithm:&lt;/STRONG&gt; CodeWarrior uses .elf files which describe Flash algorithms. Although some flash memories have the same physical characteristics, the program and erase time cycles may change from one memory to other (even if they are from the same manufacturer). This is why you must create a flash algorithm for the device you have selected. In your CodeWarrior installation path you can find a document which explains how to create an algorithm for a flash device.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;STRONG&gt;Create the flash device description and add it to CodeWarrior:&lt;/STRONG&gt; Once you have the appropriate algorithm for your flash memory you must create a device description. The device description is a bunch of parameters that you must add to a .xml file with the appropriate Syntax. This file contains all supported flash devices. You can generate this information by yourself or you can use a script to generate the info and just paste it in the .xml file.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can find this process in the Application Note &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN3859.pdf" onclick=""&gt;&lt;SPAN style="color: #3778c7;"&gt;AN3859&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;Regards,&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 08:56:05 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2014-11-07T08:56:05Z</dc:date>
    <item>
      <title>K70 flexnvm used for program flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226125#M4494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I'm using MK70FX512, my program is finished all the 512kB in internal flash.&lt;/P&gt;&lt;P&gt;My program still growing, so I need more flash. &lt;/P&gt;&lt;P&gt;I wanna know if the flexnvm is able used for program flash, and extending my program to here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 04:17:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226125#M4494</guid>
      <dc:creator>skteh</dc:creator>
      <dc:date>2014-02-12T04:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: K70 flexnvm used for program flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226126#M4495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SK Teh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you may use the other flexNVM as PFlash, but please note in the linker file you have to define two seperate sections for them instead of one section, becase their address are not continuous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We have an application note about how to relocate code in ROM, please find it from the attachment.!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wish it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 05:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226126#M4495</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-02-18T05:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: K70 flexnvm used for program flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226127#M4496</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;I have the exactly same need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Tower K70f120m 1M under MQX 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My software is to manage an LCD panel (800x480) by using PEG library. Then I have some big picture to store in memory flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I followed the AN4498. But when I start the debug by downloading the software into the target, the &lt;SPAN class="hps"&gt;loading&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;never ends.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;It remains&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;long&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;loading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;You will find bellow the steps that I followed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;1- Configuration of MQX : set BSPCFG_ENABLE_NADFLASH to true.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;2- Modify linker file &lt;STRONG&gt;(.lcf file)&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt; a - add in "MEMORY" section this line : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; extrom (RW): ORIGIN = 0x60000000, LENGTH = 0x08000000 # ExternFLash - RW data&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; b- add in "SECTIONS" part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.my_section:&amp;nbsp; &lt;BR /&gt; {&lt;BR /&gt; . = ALIGN (0x10);&lt;BR /&gt; *(.relocate_const)&lt;BR /&gt; &lt;BR /&gt; } &amp;gt; extrom&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - In the code (PEG&amp;nbsp; ressources.cpp file) add following line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#pragma&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; define_section relocate_const &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;".relocate_const"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;".relocate_const"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;".relocate_const"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; far_abs R&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; __relocate_const__&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;__declspec&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(relocate_const)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;and then relocate my big constant:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;__relocate_const__ &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;const&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; PEGUSHORT bitmaps_TOUCH_CAL_TARGET_BitmapData[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 8pt;"&gt;400&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;] &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{....&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That all modification that I made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the .xmap generated contains this add:&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;# .my_section&lt;/P&gt;&lt;P&gt;&amp;nbsp; 60000000 00000000 .relocate_const .relocate_const (resources_cpp.obj)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 60000000 00000320 .relocate_const bitmaps_TOUCH_CAL_TARGET_BitmapData (resources_cpp.obj)&lt;/P&gt;&lt;P&gt;{...}&lt;/P&gt;&lt;P&gt;&amp;nbsp; 60000000 60000000 00000320 .my_section extrom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if my modifications are all correct or if I have forgot something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226127#M4496</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-11-06T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: K70 flexnvm used for program flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226128#M4497</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;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;will copy&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;here&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the response of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Mr &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="26845" data-content-finding="Community" data-externalid="" data-presence="null" data-userid="222906" data-username="adriancano" href="https://community.nxp.com/people/adriancano" onclick=""&gt;&lt;SPAN style="color: #3778c7;"&gt;Adrian Sanchez Cano&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;made on&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;another&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;post (&lt;A _jive_internal="true" href="https://community.nxp.com/message/451671?et=watches.email.thread#451671" title="https://community.freescale.com/message/451671?et=watches.email.thread#451671"&gt;TWR-K70F120M Tower Module: "not able to run on the target or the flash is not configured properly" | Freescale Community&lt;/A&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;First of all you need to configure in the tcl file the NandFlashController to be able to communicate with the memory you are using.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you decide to use a Flash device that is not supported by CodeWarrior you must make two things to have it usable.&lt;/P&gt;
&lt;P&gt;1.&lt;STRONG&gt;Create a Flash Algorithm:&lt;/STRONG&gt; CodeWarrior uses .elf files which describe Flash algorithms. Although some flash memories have the same physical characteristics, the program and erase time cycles may change from one memory to other (even if they are from the same manufacturer). This is why you must create a flash algorithm for the device you have selected. In your CodeWarrior installation path you can find a document which explains how to create an algorithm for a flash device.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;STRONG&gt;Create the flash device description and add it to CodeWarrior:&lt;/STRONG&gt; Once you have the appropriate algorithm for your flash memory you must create a device description. The device description is a bunch of parameters that you must add to a .xml file with the appropriate Syntax. This file contains all supported flash devices. You can generate this information by yourself or you can use a script to generate the info and just paste it in the .xml file.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can find this process in the Application Note &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN3859.pdf" onclick=""&gt;&lt;SPAN style="color: #3778c7;"&gt;AN3859&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;Regards,&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;
&lt;P style="color: #3d3d3d; font-family: inherit; font-size: 12.72px; font-style: inherit; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-flexnvm-used-for-program-flash/m-p/226128#M4497</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-11-07T08:56:05Z</dc:date>
    </item>
  </channel>
</rss>

