<?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>MQX Software SolutionsのトピックRe: How can i store some data into flexNVM or flash memory ?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446444#M14957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jo Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following document for writing FlexNVM in MQX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105341"&gt;MQX FlashX driver – how to write FlexNVM?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 06:23:59 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2015-11-02T06:23:59Z</dc:date>
    <item>
      <title>How can i store some data into flexNVM or flash memory ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446443#M14956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;settitng :&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am using MK64FN1M0VLL12 MCU&amp;nbsp; , KDS 3.0.0,&amp;nbsp; MQX V 1.1.1&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P&gt;Question :&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I want to store some data into NVM or flash before Power down.&lt;/P&gt;&lt;P style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;and right after Power on again , I want to read the data.and i added component successfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i found a useful post -&amp;gt; &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-content-finding="Community" data-objectid="335691" data-objecttype="2" href="https://community.nxp.com/message/335691#335691"&gt;Re: Erasing Flash sectors in KL25 on the Freedom Board.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i successfully write and read a data at first time. but it didn't work at second time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while debugging, i found that in UnhandledInterrupt, the process stoped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i get a answer about this problem? it's my code, and debugging window. i post the problem in MQX community because it may be problem in MQX interrupt&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(someone told me that this was happening because the sector that i was trying to write to was not erased. the PE generated code does not erase the sector for me prior to writing to it, and i have to erase it myself but i don't know how can i erase the sector , should i edit MQX??)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;uint8 FromPtr[6] = {0x1F, 0x2F, 0x3F, 0x4F, 0x5F, 0x6F};&lt;/P&gt;&lt;P&gt;uint8 ToPtr[6];&lt;/P&gt;&lt;P&gt;int OpStatus;&lt;/P&gt;&lt;P&gt;LDD_TError OpStatus;&lt;/P&gt;&lt;P&gt;LDD_TDeviceData* FLASH1Pointer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLASH1Pointer = FLASH1_Init(NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLASH1_Erase(FLASH1Pointer, 0xFFFFA, 0x6);&amp;nbsp; //erase&lt;/P&gt;&lt;P&gt;&amp;nbsp; do {&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH1_Main(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH1_Write(FLASH1Pointer, FromPtr, 0xFFFFA, 0x6);&amp;nbsp; //write&lt;/P&gt;&lt;P&gt;&amp;nbsp; do {&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH1_Main(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH1_Read(FLASH1Pointer,0xFFFFA, ToPtr, 0x6);&amp;nbsp; //read&lt;/P&gt;&lt;P&gt;&amp;nbsp; do {&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLASH1_Main(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; OpStatus = FLASH1_GetOperationStatus(FLASH1Pointer);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 06:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446443#M14956</guid>
      <dc:creator>josol</dc:creator>
      <dc:date>2015-10-31T06:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i store some data into flexNVM or flash memory ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446444#M14957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jo Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following document for writing FlexNVM in MQX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105341"&gt;MQX FlashX driver – how to write FlexNVM?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 06:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446444#M14957</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-11-02T06:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can i store some data into flexNVM or flash memory ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446445#M14958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 22:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-store-some-data-into-flexNVM-or-flash-memory/m-p/446445#M14958</guid>
      <dc:creator>josol</dc:creator>
      <dc:date>2015-11-02T22:54:26Z</dc:date>
    </item>
  </channel>
</rss>

