<?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: Difficulty using program partition command on MK64</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466966#M5014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jairo Berrio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to write the EEPROM, you should make sure your chip have the flexNVM module.Just the MK64FX512xxx have the FlexNVM module, can use the EEPROM function. MK64FN1M0xxx don't have the FlexNVM module, it don't have the EEPROM function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; After make sure your chip have the flexNVM module, you should use the program partition command to partition the flash at first. More details, please refer to the reference manual :Table 29-69. Program Partition Command FCCOB Requirements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After you partition the flash, then you can write the data to the eeprom, the eeprom address is the flexRAM address. If you want to read out the data, just read the according address is OK, you don't need to use Read Resource Command. The Read Resource command is provided for the user to read data from special-purpose memory resources located within the Flash module. About the read reource select code, please refer to the reference manual:&lt;/P&gt;&lt;P&gt;Table 29-44. Read Resource Select Codes, it is read the IFR and version ID, not the eeprom address.&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;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&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&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 05:20:37 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-02-19T05:20:37Z</dc:date>
    <item>
      <title>Difficulty using program partition command on MK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466965#M5013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using KDS 3.0.0 and can't seem to program the EEPROM Data Set Size, or the FlexNVM Partition Code locations using the program partition command.&amp;nbsp; I am programming FCCOB4: 0x34 and FCCOB5: 0x05, the command executes without any errors (MGSTAT0 ,ACCERR, RDCOLERR, FPVIOL are all 0), so I am assuming the command completed correctly. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I execute the Read Resource Command aligned at address 0xF8, FCCOB4 through FCCOB9 read 0xFF and FCCOBA: 0xF4 and FCCOBB: 0xF5!&amp;nbsp; Any thoughts? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to view the absolute address on the memory browser tab.&amp;nbsp; Is the absolute address of these bytes at 0x008003FC and 0x008003FD?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466965#M5013</guid>
      <dc:creator>jberri</dc:creator>
      <dc:date>2016-02-17T17:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty using program partition command on MK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466966#M5014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jairo Berrio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to write the EEPROM, you should make sure your chip have the flexNVM module.Just the MK64FX512xxx have the FlexNVM module, can use the EEPROM function. MK64FN1M0xxx don't have the FlexNVM module, it don't have the EEPROM function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; After make sure your chip have the flexNVM module, you should use the program partition command to partition the flash at first. More details, please refer to the reference manual :Table 29-69. Program Partition Command FCCOB Requirements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After you partition the flash, then you can write the data to the eeprom, the eeprom address is the flexRAM address. If you want to read out the data, just read the according address is OK, you don't need to use Read Resource Command. The Read Resource command is provided for the user to read data from special-purpose memory resources located within the Flash module. About the read reource select code, please refer to the reference manual:&lt;/P&gt;&lt;P&gt;Table 29-44. Read Resource Select Codes, it is read the IFR and version ID, not the eeprom address.&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;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&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&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 05:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466966#M5014</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-19T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty using program partition command on MK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466967#M5015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jingling,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;MK64FX512.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;I'll give you a description of what I am doing.&amp;nbsp; I have different programs that require different partitioning and rather than having it done using a programmer in our case P&amp;amp;E's Cyclone; I'd rather have each program perform the partitioning.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;This is what I am doing.&amp;nbsp; I first use the Read Resource Command (RRC) to verify that the partition values are correct or if the chip has been partitioned.&amp;nbsp; If the RRC returns all 0xFF aligned at location 0x00803F8 (Data Flash 0 IFR map location), I then proceed with the Program Partition Command (PPC).&amp;nbsp; I have 3 questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;1.&amp;nbsp; What I am trying to understand is why after performing the RRC are&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; FCCOBA and FCCOBB returning with&amp;nbsp; 0xF4 and 0xF5 respectively?&amp;nbsp; I would expect them tho have the values 0x34 and 0x05 instead.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;2.&amp;nbsp; Why are FCCOBA and FCCOBB loaded with the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; EEPROM Data Set Size and the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FlexNVM Partition Code?&amp;nbsp; According to the RRC if the return bytes ar arranged in the fashion below, I would expect FCCOB7 and FCCOB6&amp;nbsp; to hold the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;EEPROM Data Set Size and the &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FlexNVM Partition Code values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;4 Read Data [64:56]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;5 Read Data [55:48]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;6 Read Data [47:40]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;7 Read Data [39:32]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;8 Read Data [31:24]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;9 Read Data [23:16]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;A Read Data [15:8]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;FCCOB&lt;/SPAN&gt;B Read Data [7:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp; Why am I not seeing the values using the KDS memory tab at location&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; 0x008003FC and 0x008003FD? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Jairo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466967#M5015</guid>
      <dc:creator>jberri</dc:creator>
      <dc:date>2016-02-19T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty using program partition command on MK64</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466968#M5016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jairo Berrior,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now answer your 3 questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1, Actually the returned data of &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0xF4 and 0xF5 in the Data flash 0 IFR adress 0x8003fd and 0x8003fc is correct, now let me tell you why.&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;&amp;nbsp;&amp;nbsp; As you know, the useful data to the EEPROM data set size code is just 6 bits, like the following picture:&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;&lt;span class="lia-inline-image-display-wrapper" image-alt="16.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55039i7008A57A27DD1C98/image-size/large?v=v2&amp;amp;px=999" role="button" title="16.jpg" alt="16.jpg" /&gt;&lt;/span&gt;&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;The useful data to the FLexNVM Partition code DEPART is just 4 bits, like the following picture:&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;&lt;span class="lia-inline-image-display-wrapper" image-alt="17.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55088iEA0A9A9C49295FFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="17.jpg" alt="17.jpg" /&gt;&lt;/span&gt;&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;then you get EEPROM data set size in address &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0x8003fd is &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0xF4 , what you expect is &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0x34&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;0xF4 = 0b 11&lt;SPAN style="color: #e23d39;"&gt;110100&lt;/SPAN&gt;&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;0x34 = 0b 00&lt;SPAN style="color: #e23d39;"&gt;110100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 14px; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif;"&gt;You can find the 6 useful bits are the same, you just need to check these 6bits in EEPROM data set size, not all the byte.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;You get FlexNVM partition code in address &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0x8003fc is &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0xF5 , what you expect is &lt;SPAN style="color: #51626f; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;0x05&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;0XF5 = 0b1111&lt;SPAN style="color: #e23d39;"&gt;0101&lt;/SPAN&gt;&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;0x05 = 0b0000&lt;SPAN style="color: #e23d39;"&gt;0101&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 14px; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif;"&gt;You still can find the 4 useful bits are the same, you just need to check these 4bits in FlexNVM partition code, not all the byte.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 14px; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif;"&gt;2. Refer to point1. Your data is correct to the useful bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-size: 14px; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif;"&gt;3. Data flash 0 IFR is a 1Kbyte novolative information memory, which within the data flash 0 memory block, it is the special area, it just have the internal local address, this address just can be operation with the determined command, you can read it in the KDS memory viewer windows, because the given address is not the MCU golbal address, just the MCU local address.&lt;/SPAN&gt;&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;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&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&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 08:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Difficulty-using-program-partition-command-on-MK64/m-p/466968#M5016</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-22T08:33:23Z</dc:date>
    </item>
  </channel>
</rss>

