<?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: MK22 Eeprom writing failure in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425359#M24497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever resolve this? &amp;nbsp;I'm hitting a similar issue porting from CW 10.6 to KDS 3.2 with a MK21FX512VMC12.&lt;/P&gt;&lt;P&gt;It hangs on the "while(!(FTFE_FCNFG &amp;amp; FTFE_FCNFG_EEERDY_MASK))" check in the KDS project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CW project works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only significant differences I can see in the generated code is in the&amp;nbsp;IntFlashLdd1.c file, which seems to have&amp;nbsp;different values in "SafeRoutine[]". &amp;nbsp;The settings via PE are identical though, so I don't know why this has changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 05:18:48 GMT</pubDate>
    <dc:creator>rhysdrummond</dc:creator>
    <dc:date>2017-01-30T05:18:48Z</dc:date>
    <item>
      <title>MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425353#M24491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on MK22FX512VLL12 controller. I am trying to write into some data into flex memory. I using below function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void writeEeprom(unsigned long addr, unsigned char data)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; *((uint8_t *)(addr)) = data;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Make sure the EEE is ready. If not wait for the command to complete */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!(FTFE_FCNFG &amp;amp; FTFE_FCNFG_EEERDY_MASK));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my program unable to execute &lt;STRONG&gt;(!(FTFE_FCNFG &amp;amp; FTFE_FCNFG_EEERDY_MASK));&lt;/STRONG&gt; instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please any one help me to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 05:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425353#M24491</guid>
      <dc:creator>mayursavaj</dc:creator>
      <dc:date>2015-11-19T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425354#M24492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 style="background-color: inherit;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: medium;"&gt;Hi Mayur,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="background-color: inherit; font-family: Times New Roman,serif; font-size: 12pt;"&gt;To provide the fastest possible support I want to point you to a similar question which has been answered on our Freescale community. Please refer to &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="background-color: inherit; font-family: Times New Roman,serif; font-size: 12pt;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/538953#538953" style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;https://community.freescale.com/message/538953#538953&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt; and &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/480552#480552" style="font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;https://community.freescale.com/message/480552#480552&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px; font-family: 'Times New Roman', serif; font-size: medium;"&gt;to view the details.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="background-color: inherit; color: #000000; text-indent: 0px; font-weight: normal; font-size: medium; font-family: 'Times New Roman', serif; font-style: normal; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;The FlexNVM feature (EEPROM) is implemented in the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;C90TFS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;flash driver, which comes with example projects. The driver can be downloaded from the next link:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="background-color: inherit; color: #000000; text-indent: 0px; font-weight: normal; font-size: medium; font-family: 'Times New Roman', serif; font-style: normal; text-align: left;"&gt;&lt;A data-content-finding="Community" href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe" style="font-family: 'Times New Roman', serif; font-size: medium; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;" title="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe"&gt;http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: medium;"&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: medium;"&gt;Ping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; text-indent: 0px;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: medium;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;&lt;SPAN style="font-family: 'Times New Roman', serif; font-size: medium;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 06:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425354#M24492</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-11-20T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425355#M24493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone help me to resolve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425355#M24493</guid>
      <dc:creator>mayursavaj</dc:creator>
      <dc:date>2015-12-02T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425356#M24494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The wait should be before the data write, going by the comments. Wait for the PREVIOUS command to complete, if any. Are you saying it locks up at the wait or the wait does nothing at all? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425356#M24494</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-12-03T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425357#M24495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob Paddock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it locks up at the wait or the wait does nothing at all.&lt;/P&gt;&lt;P&gt;But interestingly this was not happen to all microcontroller even though firmware and part no are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 04:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425357#M24495</guid>
      <dc:creator>mayursavaj</dc:creator>
      <dc:date>2015-12-04T04:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425358#M24496</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;I have found that EEERDY bit is low in FTFE_FCNFG register. Can you tell me how to set FlexRAM as EEEPROM operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="freescale.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53166i4CB8D7547B1929A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="freescale.png" alt="freescale.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:07:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425358#M24496</guid>
      <dc:creator>mayursavaj</dc:creator>
      <dc:date>2015-12-04T11:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: MK22 Eeprom writing failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425359#M24497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever resolve this? &amp;nbsp;I'm hitting a similar issue porting from CW 10.6 to KDS 3.2 with a MK21FX512VMC12.&lt;/P&gt;&lt;P&gt;It hangs on the "while(!(FTFE_FCNFG &amp;amp; FTFE_FCNFG_EEERDY_MASK))" check in the KDS project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CW project works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only significant differences I can see in the generated code is in the&amp;nbsp;IntFlashLdd1.c file, which seems to have&amp;nbsp;different values in "SafeRoutine[]". &amp;nbsp;The settings via PE are identical though, so I don't know why this has changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts anyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 05:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22-Eeprom-writing-failure/m-p/425359#M24497</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2017-01-30T05:18:48Z</dc:date>
    </item>
  </channel>
</rss>

