<?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: MK22FN1M0 make flexram as EEPROM in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548321#M33422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;Your reply is great!&lt;/P&gt;&lt;P&gt;I absolutely understand about EEPROM for our &lt;SPAN&gt;MK22FN1M0A.&lt;/SPAN&gt;, I think I will keep use MK22FN1M0A because I need to use its CAN bus function. I will try to use flash to store data. Now I have downloaded the example, study a little,&lt;/P&gt;&lt;P&gt;Now question is?&lt;/P&gt;&lt;P&gt;#1, How to make the program don't use the special flash sector for EEPROM function? It means that&amp;nbsp;how to arrange special sector for EEPROM fucntion? We can define it in KDS?&lt;/P&gt;&lt;P&gt;#2, How to call the data in virtual EEPROM(flash)? In the example, there are erase special sector function,, write special sector function,&lt;STRONG&gt; no how to read special sector?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#3, How about the flash endurance? Don't have any idea about it. If don't erase and write virtual EEPROM(flash), just read it when power up the board, it will don't affect flash endurance. It means that there is&amp;nbsp;just several times of configuration change, and then several time virtual EEPROM operation, the virtually EEPROM should work well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 05:55:48 GMT</pubDate>
    <dc:creator>kent_gu</dc:creator>
    <dc:date>2016-08-24T05:55:48Z</dc:date>
    <item>
      <title>MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548313#M33414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Now I am using MK22FN1M0, want to use internal flexram&amp;nbsp; as EERPROM to storage several configuration &lt;SPAN style="color: #333333; font-family: arial;"&gt;variable. Don't know how to start the code? Anyway have simple example or how to do it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;Kent &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 00:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548313#M33414</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-08-23T00:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548314#M33415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt;MK22FN1M0 don't contain EEPROM module, because it doesn't have the FlexNVM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to store the data, you can store it in the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the sample code, please go to this link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;A href="https://kex.nxp.com/en/welcome" title="https://kex.nxp.com/en/welcome"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; Choose "Build an SDK", then choose you chip and generate the KSDK2.0 sample code, you will find the flash example code in folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;SDK_2.0_MK22FN1M0xxx12\boards\twrk21f120m\driver_examples\flash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;If you still have question, please let me know!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&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>Tue, 23 Aug 2016 05:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548314#M33415</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-08-23T05:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548315#M33416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlexNVM.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3244i600B201425234026/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlexNVM.jpg" alt="FlexNVM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick response, but I found the datasheet say that MK22FN1M0VLH12 have 256K FlexNVM as above picture, also "&lt;/P&gt;&lt;H3 style="font-family: Lato, Arial, sans-serif; font-weight: 400; color: #5e89c1; margin-top: 1em; font-size: 14px;"&gt;Using Kinetis&lt;SPAN style="font-size: 12px;"&gt;®&lt;/SPAN&gt; FlexMemory as enhanced EEPROM&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;LABEL style="margin-bottom: 5px; font-weight: bold; color: #333333; font-family: Arial, sans-serif; font-size: 12px;"&gt;(REV 2)&lt;/LABEL&gt;&lt;/P&gt;&lt;P&gt;" describe the EEPROM using with Flexmemory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 05:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548315#M33416</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-08-23T05:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548316#M33417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are misunderstanding it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3943i00BC15A289C33191/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please see the FlexNVM item, it's none, all the kinetis K series chip with FN doesn't contain FlexNVM, just FX has the FlexNVM module, you can find K22FX512VLH12 have 128KB FlexNVM.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, if you really want to use EEPROM, please choose the chip have FX which contains FLexNVM module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&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>Tue, 23 Aug 2016 07:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548316#M33417</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-08-23T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548317#M33418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;I understand it.&lt;/P&gt;&lt;P&gt;So if I want to realize the function, #1, &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 16px;"&gt;FW samples data in real time, #2, &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-size: 16px; line-height: 27.68px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;storage data, #3, I still can get the storage data after re-power up board? The way&lt;/SPAN&gt;"&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 16px;"&gt; If you want to store the data, you can store it in the flash." can realize it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 07:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548317#M33418</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-08-23T07:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548318#M33419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, you can use the flash realize your function.&lt;/P&gt;&lt;P&gt;&amp;nbsp; But take care, when you want to write the data to flash, you must erase the flash sector at first, I suggest you use one sector do as the your own data storage area, before you erase the sector, you need to read it to the RAM at first, then after erased, then write the new data back to the flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Besides, please take care the flash cycling endurance, you can't do it very frequently, otherwise, the flash will out of the endurance.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&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>Tue, 23 Aug 2016 08:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548318#M33419</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-08-23T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548319#M33420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jingjing,&lt;/P&gt;&lt;P&gt;May it is stupid question, but I still want to know. You know, MK22FN1M0a has a&amp;nbsp;&amp;nbsp;4KB FlexRAM, it can be for enhanced EEPROM even without FlexNVM?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 02:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548319#M33420</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-08-24T02:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548320#M33421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please don't worry,&amp;nbsp; any question, just feel free and let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check the reference manual K22P64M120SF5RM.pdf, page 93, you will find this description:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3019iCA359F05B55F77DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If the chip don't have the FlexNVM, it doesn't have the EEPROM function, because EERPOM need to use FlexRAM and FlexNVM together, FlexNVM is used as the EEPROM backup memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now, please go to reference manual page 634:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3054i0025AC526F7E6F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When do EEPROM partition, the EEPROM backup size must be at leat 16 times the EEPROM partition size in FlexRAM, EEPROM is also the hardware character, the chip doesn't have&amp;nbsp; the FLexNVM module, it also doesn't have EERPOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Now, to your chip, just two way if you want to use the eeprom function: 1. change chip to MK22FX512VLH12, this chip have FlexNVM, 2, use flash to emulate the EEPROM function, actually it is using flash to store data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&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>Wed, 24 Aug 2016 02:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548320#M33421</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-08-24T02:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: MK22FN1M0 make flexram as EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548321#M33422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;Your reply is great!&lt;/P&gt;&lt;P&gt;I absolutely understand about EEPROM for our &lt;SPAN&gt;MK22FN1M0A.&lt;/SPAN&gt;, I think I will keep use MK22FN1M0A because I need to use its CAN bus function. I will try to use flash to store data. Now I have downloaded the example, study a little,&lt;/P&gt;&lt;P&gt;Now question is?&lt;/P&gt;&lt;P&gt;#1, How to make the program don't use the special flash sector for EEPROM function? It means that&amp;nbsp;how to arrange special sector for EEPROM fucntion? We can define it in KDS?&lt;/P&gt;&lt;P&gt;#2, How to call the data in virtual EEPROM(flash)? In the example, there are erase special sector function,, write special sector function,&lt;STRONG&gt; no how to read special sector?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#3, How about the flash endurance? Don't have any idea about it. If don't erase and write virtual EEPROM(flash), just read it when power up the board, it will don't affect flash endurance. It means that there is&amp;nbsp;just several times of configuration change, and then several time virtual EEPROM operation, the virtually EEPROM should work well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 05:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK22FN1M0-make-flexram-as-EEPROM/m-p/548321#M33422</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-08-24T05:55:48Z</dc:date>
    </item>
  </channel>
</rss>

