<?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: Are there any examples for K64FX512 FlexNVM using SDK 2.3.0 (fsl_flash) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Are-there-any-examples-for-K64FX512-FlexNVM-using-SDK-2-3-0-fsl/m-p/761993#M46423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bioshazard,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;flash_check_execute_in_ram_function_info&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;config&lt;SPAN&gt;) only check a few member in (config). copy_flash_run_command copy code to ram. They do not touch real hardware register. May the hardfault caused by inproperly initialize of the (config)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is not any example for the K64 flexNVM and flexRAM. You can refer to TWR-K65F180 SDK. K65's FTFE module is a bit complex than K64. But their structure and driver are similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 07:49:39 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2018-01-30T07:49:39Z</dc:date>
    <item>
      <title>Are there any examples for K64FX512 FlexNVM using SDK 2.3.0 (fsl_flash)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Are-there-any-examples-for-K64FX512-FlexNVM-using-SDK-2-3-0-fsl/m-p/761992#M46422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am having a lot of problems using the SDK 2.3 for a K64FX512 project,&lt;/P&gt;&lt;P&gt;probably since I have been using processor expert before, which made things quite a bit easier it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But right now this one is my primary concern:&lt;/P&gt;&lt;P&gt;I seem to be unable to use the flash driver at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run:&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;flash_config_t flashConfiguration&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FLASH_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;flashConfiguration&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It hardfaults at this line in fsl_flash.c:&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kStatus_FLASH_Success &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;flash_check_execute_in_ram_function_info&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I call&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FLASH_PrepareExecuteInRamFunctions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;flashConfiguration&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;first, it hardfaults at this line&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;copy_flash_run_command&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flashExecuteInRamFunctionInfo&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;flashRunCommand&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any examples available on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;how to use the driver in order to partition the FlexNVM&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;how to use the driver in order to use the FlexNVM as data storage&lt;/LI&gt;&lt;LI&gt;how to use the driver in order to use the EEE functionality&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to use the FlexNVM as follows:&amp;nbsp;&lt;BR /&gt;64KiB as storage used by the EEE (Data which will be updated frequently 128bytes split as&amp;nbsp;32&amp;nbsp;- 96),&amp;nbsp;&lt;BR /&gt;and the other&lt;/P&gt;&lt;P&gt;64KiB to be available as data memory (To which I can write large data blocks (2KiB blocks only updated rarely).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably get it working writing my own driver, but what would be the point in having an SDK then?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 13:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Are-there-any-examples-for-K64FX512-FlexNVM-using-SDK-2-3-0-fsl/m-p/761992#M46422</guid>
      <dc:creator>bioshazard</dc:creator>
      <dc:date>2018-01-28T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Are there any examples for K64FX512 FlexNVM using SDK 2.3.0 (fsl_flash)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Are-there-any-examples-for-K64FX512-FlexNVM-using-SDK-2-3-0-fsl/m-p/761993#M46423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bioshazard,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;flash_check_execute_in_ram_function_info&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;config&lt;SPAN&gt;) only check a few member in (config). copy_flash_run_command copy code to ram. They do not touch real hardware register. May the hardfault caused by inproperly initialize of the (config)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is not any example for the K64 flexNVM and flexRAM. You can refer to TWR-K65F180 SDK. K65's FTFE module is a bit complex than K64. But their structure and driver are similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 07:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Are-there-any-examples-for-K64FX512-FlexNVM-using-SDK-2-3-0-fsl/m-p/761993#M46423</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-01-30T07:49:39Z</dc:date>
    </item>
  </channel>
</rss>

