<?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>Kinetis Design Studio中的主题 Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461811#M4834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;The SetFlexNVMPartition() method is when we create one Processor Expert project (without KSDK) on&lt;/P&gt;&lt;P&gt;kds,&amp;nbsp; your project is KSDK+PE, pay attention that the two are different。&lt;/P&gt;&lt;P&gt;About create the PE project , when you create project , please select the None in the kinetis SDK:&lt;/P&gt;&lt;P&gt;&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/22801i67253BF965C81A57/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;&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/718iB8FCFC597B28F556/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;Hope it helps&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;Alice Yang&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, 09 Mar 2016 04:07:31 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-03-09T04:07:31Z</dc:date>
    <item>
      <title>Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461810#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to configure the FlexNVM for use as EEPROM data.&amp;nbsp; However when I generate the PE code it doesn't generate the methods&amp;nbsp; CPU_GetFlexNVMPartitionCode()&amp;nbsp; or CPU_SetFlexNVMPartition().&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I cannot configure the FlexNVM on startup.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using KDS 3.0.0, KSDK 1.3.0&amp;nbsp; on Windows 10 generating code for MK20DX256VLK10&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now stuck and not sure if it is a problem with my PE settings or a bug within the PE itself.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked up similar examples in the NXP site such as&lt;A _jive_internal="true" href="https://community.nxp.com/thread/383738#comment-607244"&gt; 607244&lt;/A&gt;&amp;nbsp; In this example the Methods list for the cpu component includes the option to generate the above methods.&amp;nbsp; On my KDS/PE I don't get this option.&amp;nbsp; See screenshots below.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my EEPROM configuration.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="143581_143581.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121157i3154528342874DC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="143581_143581.png" alt="143581_143581.png" /&gt;&lt;/span&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/58542i51376C38C8E22503/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 style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below when hovering over the FlexNVM option it indicates to call SetFlexNVMPartition() to configure the EEPROM but this function is not generated for my build.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="143596_143596.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121158i1D82D558834DCE51/image-size/large?v=v2&amp;amp;px=999" role="button" title="143596_143596.png" alt="143596_143596.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58604iB8B1B27208E81442/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I don't get a SetFlexNVMPartition() method in the CPU list of methods.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="143594_143594.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121159i685E4096C1D4F62A/image-size/large?v=v2&amp;amp;px=999" role="button" title="143594_143594.png" alt="143594_143594.png" /&gt;&lt;/span&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/58552i8F24A242B5C5C147/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 style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below, just to confirm CPU type.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="143595_143595.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121160iBF93A14D94D21B6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="143595_143595.png" alt="143595_143595.png" /&gt;&lt;/span&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/58587iB7A9CCEF242296C9/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 style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also attached is a demo K20 project where I try to configure the EEPROM in the CPU component settings.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be much appreciated.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338793"&gt;USB_K20TEST.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461810#M4833</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-08T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461811#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;The SetFlexNVMPartition() method is when we create one Processor Expert project (without KSDK) on&lt;/P&gt;&lt;P&gt;kds,&amp;nbsp; your project is KSDK+PE, pay attention that the two are different。&lt;/P&gt;&lt;P&gt;About create the PE project , when you create project , please select the None in the kinetis SDK:&lt;/P&gt;&lt;P&gt;&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/22801i67253BF965C81A57/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;&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/718iB8FCFC597B28F556/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;Hope it helps&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;Alice Yang&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, 09 Mar 2016 04:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461811#M4834</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-03-09T04:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461812#M4835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our existing project already uses KDSK code (e.g. for USB) so I don't think we can regenerate the project without KSDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a mechanism to configure the FlexNVM&amp;nbsp; when developing with KSDK and PE together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like to add some code that on startup checks to see if the FlexNVM is configured, and if it isn't then to configure it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest the best way to achieve this in our current project setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461812#M4835</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-09T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461813#M4836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;Does this function can meet your requirement ？&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/22241i0AFCBBC211CE3AD8/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;I yes , please add the component of "fsl_flash" on your project , it include most of the operate of flash.&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/22413iDB805C1205BA99DC/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;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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, 09 Mar 2016 10:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461813#M4836</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-03-09T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461814#M4837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That looks ideal.&amp;nbsp; I will try this function in my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it safe to call this function on every bootup, or should I add code to detect if the FlexNVM is already configured?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 11:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461814#M4837</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-09T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461815#M4838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One additional question I have ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fsl_flash component generates the structure for the FLASH_SSD_CONFIG&amp;nbsp; when I 'Generate Code' in PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the DFLashSize and EEESize fields are shown as zero.&amp;nbsp; From my FlexNVM configuration in the cpu component I would expect my DFlashSize to be 224Kbyte and 32Kbyte respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the values in flash1_InitConfig0 correct for my configuration or do I have to overwrite them before calling the DEFlashPartition() function?&amp;nbsp; Or does it not matter?&lt;/P&gt;&lt;P&gt;&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/22422i7EDE95F3CE6011AE/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;&lt;/P&gt;&lt;P&gt;My FlexNVM settings are ;&lt;/P&gt;&lt;P&gt;&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/22478iA5E1650C9E759ADB/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;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 11:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461815#M4838</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-09T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461816#M4839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the DEFlashPartition() method but I still have problems trying to write to EEPROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DEFlashPartition()&amp;nbsp; now returns the code 0x20 and the flashConfig structure looks like the FlexNVM has been configured as I expect with 128 bytes EEPROM space in 32 Kbytes of FlexNVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read the EEPROM space directly at 0x14000000 I read FFs,&amp;nbsp; which seems OK as it is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then try to write to the EEPROM via the EEEWrite() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns a code of zero (OK?) but the EEPROM data at 0x14000000 remains at FF&amp;nbsp; (I try to write 0x1234abcd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you advise me if I am doing anything incorrectly here, or maybe missing a step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code, the bootloader_InitFlash()&amp;nbsp; puts the Flash function into ram and I then try to read/write to EEPROM.&amp;nbsp; Read is OK, reads 0xFFFFFFFF, but also reads 0xFFFFFFFF after the EEWrite()&lt;/P&gt;&lt;P&gt;&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/22441iE7D678B49EB3403B/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;And below is the contents of the FlashConfig structure, which looks OK, 128 bytes of EEPROM and 0x38000 bytes of DFlash.&lt;/P&gt;&lt;P&gt;&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/22535i106D52A712EEEEA0/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;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461816#M4839</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-09T16:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot generate Cpu_SetFlexNVMPartition() for K20 in PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461817#M4840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have resolved this problem.&amp;nbsp; I should only call DEFlashPartition()&amp;nbsp; once when not configured.&amp;nbsp; If I do this then I can write to the EEPROM area OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check if the FlexNVM is already partitioned by looking at the EESize in the flashpartition structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( flash1_InitConfig0.EEESize != 0x80 )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DEFlashPartition should only be called once when FlexNVM is not setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // So after first factory boot up this function should never be called again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = DEFlashPartition (&amp;nbsp; &amp;amp;flash1_InitConfig0, 0x37, 0x03, g_FlashLaunchCommand ) ;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Test write and read to EEPROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eepromData = 0x12345678 ;&lt;/P&gt;&lt;P&gt;result = EEEWrite ( &amp;amp;flash1_InitConfig0, 0x14000000, 4, (uint8_t*) &amp;amp;eepromData ) ;&lt;/P&gt;&lt;P&gt;eepromData = * ((unsigned int*) 0x14000000) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think my FlexNVM is working OK.&amp;nbsp; I can also write to the DFlash Space which is not allocated to EEPROM emulation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Alice for helping me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Cannot-generate-Cpu-SetFlexNVMPartition-for-K20-in-PE/m-p/461817#M4840</guid>
      <dc:creator>seanbolton</dc:creator>
      <dc:date>2016-03-10T15:40:43Z</dc:date>
    </item>
  </channel>
</rss>

