<?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>Processor Expert SoftwareのトピックRe: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496516#M3841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/matherinewang"&gt;matherinewang&lt;/A&gt;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;First please be sue the function of "SetFlexNVMPartition" have been enabled ：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&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/37445i8FCA5117BDB859C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;、Secondly, could you please show me where and how call this function , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;and does it error when build or debug ? Please take a screenshot show the error , i will reproduce your error on my side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 08:59:15 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-01-19T08:59:15Z</dc:date>
    <item>
      <title>Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496515#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using PE with KDS 3.0.0 with MK10DX128VLF5 processor and i am trying to get the FlexNVM to work but having problem with the partition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've setup the memory organization as per the attached screenshot.&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/33629i8A0D3C687A8DAA9A/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;when i call the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Cpu_SetFlexNVMPartition(), it returned ERR_FAILED, because FSTAT register value is 0xa0. why failed? Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 08:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496515#M3840</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2016-01-18T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496516#M3841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/matherinewang"&gt;matherinewang&lt;/A&gt;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;First please be sue the function of "SetFlexNVMPartition" have been enabled ：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&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/37445i8FCA5117BDB859C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;、Secondly, could you please show me where and how call this function , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;and does it error when build or debug ? Please take a screenshot show the error , i will reproduce your error on my side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 08:59:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496516#M3841</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-19T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496517#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't know the details of your application but the issue can be caused by existing partition code that is programmed on your device. The partition code can be erased by the Erase All Blocks Command only, see the detailed description in the Program Partition Code chapter in the MK10DX128 reference manual. You can also configure the debugger to execute this erase operation. For example the PEMicro debugger provides "Mass Erase on connect" options or you can use the J-link Commander to execute the mass erase operation and programming of the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the following code (main.c program module) to check the state of your device in your application. The code use the Cpu_GetFlexNVMPartitionCode() method to check the current state of the device (partition code in data flash IFR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/* User includes (#include below this line is not maintained by Processor Expert) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;#include "FTFL_PDD.h"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/*lint -save&amp;nbsp; -e970 Disable MISRA rule (6.3) checking. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;int main(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; /* Write your local variable definition here */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; uint16_t PartitionCode;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; PE_low_level_init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; /*** End of Processor Expert internal initialization.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ***/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; PartitionCode = Cpu_GetFlexNVMPartitionCode();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; switch (PartitionCode) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case FLEX_NVM_NOT_PARTITIONED:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("FlexNVM has not been partitioned yet.\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("SetFlashNVMPartition() method will be called.\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Cpu_SetFlexNVMPartition() != ERR_OK) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("ERROR: SetFlexNVMPartition() failed.\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("SetFlexNVMPartition() done\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!FTFL_PDD_GetEEEReady(FTFL_BASE_PTR));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PartitionCode = Cpu_GetFlexNVMPartitionCode();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case FLEX_NVM_REQUESTED_PARTITION_CODE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("FlexNVM has been already partitioned. Current partition settings:\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; EEPROM Data Set Size&amp;nbsp; 0x%02x\r\n", (PartitionCode &amp;gt;&amp;gt; 8) &amp;amp; 0x3F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; FlexNVM Partition Code 0x%02x\r\n", PartitionCode &amp;amp; 0x0F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!FTFL_PDD_GetEEEReady(FTFL_BASE_PTR));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("FlexNVM has been already partitioned but different partition settings has been detected. Current partition settings:\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp;&amp;nbsp;&amp;nbsp; EEPROM Data Set Size&amp;nbsp; 0x%02x\r\n", (PartitionCode &amp;gt;&amp;gt; 8) &amp;amp; 0x3F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp;&amp;nbsp;&amp;nbsp; FlexNVM Partition Code 0x%02x\r\n", PartitionCode &amp;amp; 0x0F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Expected partition settings:\n");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp;&amp;nbsp;&amp;nbsp; EEPROM Data Set Size&amp;nbsp; 0x%02x\r\n", (FLEX_NVM_REQUESTED_PARTITION_CODE &amp;gt;&amp;gt; 8) &amp;amp; 0x3F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp;&amp;nbsp;&amp;nbsp; FlexNVM Partition Code 0x%02x\r\n", FLEX_NVM_REQUESTED_PARTITION_CODE &amp;amp; 0x0F);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; if (PartitionCode == FLEX_NVM_REQUESTED_PARTITION_CODE) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((uint32_t *)0x14000000) += 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Number of MCU resets form last Mass erase:%d\n",*((uint32_t *)0x14000000));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 13:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496517#M3842</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2016-01-21T13:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496518#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use J-Flash erase the flash first, and then run the application just the same thing as you showed. but still got "SetFlexNVMPartition() failed."&lt;/P&gt;&lt;P&gt;the same reason as previous: when i call the Cpu_SetFlexNVMPartition(), it returned ERR_FAILED, because FSTAT register value is 0xa0.&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #000000; font-family: Arial; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #000000; font-family: Arial; font-size: 14px;"&gt;matherine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 08:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496518#M3843</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2016-02-24T08:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496519#M3844</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;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;First, the function of "SetFlexNVMPartition" have been enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Secondly, i call this function the same as Marek Neuzil's reply. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;when call the &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Cpu_SetFlexNVMPartition(), it returned ERR_FAILED.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 08:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496519#M3844</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2016-02-24T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496520#M3845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What value is returned by the Cpu_GetFlexNVMPartitionCode() method? You must receive FLEX_NVM_NOT_PARTITIONED otherwise the partitioning is not possible.&lt;/P&gt;&lt;P&gt;Please, make sure that the mass erase operation is processed (and the debugger or any tool does not process partitioning). If you just erase flash the previous partitioning is not impacted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 06:05:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496520#M3845</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2016-03-02T06:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496521#M3846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marek,&lt;/P&gt;&lt;P&gt;I use the TWR0K20D72M(&amp;nbsp; k20dx256vll7 ) board, on KDS 3.0 +PE，&lt;/P&gt;&lt;P&gt;use the code you provide , configure the EEPROM size to 1K, the&lt;/P&gt;&lt;P&gt;EEPROM backup size to 16k, the other place as default .&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/35819iE07514E525503E5E/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;While when i run the function of&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/35866i7221068A73FB45A7/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;the register of FTFL_FSTAT-&amp;gt;ACCERR is 1:Access error detected .&lt;/P&gt;&lt;P&gt;And when i run the function of&amp;nbsp;&amp;nbsp;&amp;nbsp; PartitionCode = Cpu_GetFlexNVMPartitionCode(); it return FLEX_NVM_NOT_PARTITIONED .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the PE debug mode , and select the "Mass erase on connect":&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/35935iAA70B8E0A7885343/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;Could you help me , this is link to another customer's question : &lt;A href="https://community.nxp.com/thread/390128"&gt;Problem creating prtition for EEPROM in Kinetis MK10DX256VLL7&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496521#M3846</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-27T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Return ERR_FAILED when calling Cpu_SetFlexNVMPartition() using KDS, PE and K10</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496522#M3847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm using MK20DX256VLL7 controller. I am trying to use FlexNVM as mentioned above. But I &amp;nbsp;am not able to partition using the&amp;nbsp;Cpu_SetFlexNVMPartition() method. Everytime it fails.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;My EEPROM Data Set Size is 512 bytes, D Flash 24 KB and EEPROM Backup size is 8KB. So I am passing&amp;nbsp;FTFL_PDD_Cmd_ProgramPartition_Init(FTFL_BASE_PTR, 0x30 | FTFL_PDD_EEPROM_DATA_SIZE_512_B, FTFL_PDD_EEPROM_BACKUP_SIZE_8_KB) into my code (0x35) instead of (0x25) as mentioned by &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/MarekNeuzil"&gt;MarekNeuzil&lt;/A&gt;‌.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Can anyone please suggest what am i missing?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Return-ERR-FAILED-when-calling-Cpu-SetFlexNVMPartition-using-KDS/m-p/496522#M3847</guid>
      <dc:creator>arthurjonathan</dc:creator>
      <dc:date>2017-02-24T14:28:57Z</dc:date>
    </item>
  </channel>
</rss>

