<?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: How can I read out the Program Flash 1 IFR in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303673#M12833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am referring to is K60P144M100SF2V2RM Rev. 2 Jun 2012, while K60P144M150SF3RM is Rev. 2, Dec 2011, and I was just told K60P144M150SF3RM and K70P256M150SF3RM will be updated next month, so I think the FTFE chapter will be updated with this release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 03:07:26 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2014-05-30T03:07:26Z</dc:date>
    <item>
      <title>How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303665#M12825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to read out the Program Flash 1 IFR to get the Swap Field data.&amp;nbsp; I think I can do this using the ReadResource flash command, but the values I am getting back are not correct.&amp;nbsp; I am using the following commands to read out 16 bytes starting at address 0.&amp;nbsp; Any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;returnCode = FlashReadResource(&amp;amp;ftflCfg, (PFLASH_BLOCK_BASE + PFLASH_IFR_OFFSET + 0), dataReadback, FlashCommandSequence);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;returnCode = FlashReadResource(&amp;amp;ftflCfg, (PFLASH_BLOCK_BASE + PFLASH_IFR_OFFSET + 8), dataReadback, FlashCommandSequence);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 15:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303665#M12825</guid>
      <dc:creator>jmag99</dc:creator>
      <dc:date>2014-05-22T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303666#M12826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case I suggest you to review the information on the &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4533.pdf?&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType="&gt;&lt;STRONG&gt;AN4533 Robust Over-the-Air Firmware Updates Using Program Flash Memory Swap on Kinetis Microcontrollers&lt;/STRONG&gt;&lt;/A&gt;, you cal also find the &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4533SW.zip"&gt;&lt;STRONG&gt;application software&lt;/STRONG&gt;&lt;/A&gt; for this App note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also could you please share your part number? this will be helpful in order to search for specific information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a nice day,&lt;BR /&gt;Perla Moncada&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, 27 May 2014 18:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303666#M12826</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-05-27T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303667#M12827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;Yes, I have read AN4533, our code is based on the app note.&amp;nbsp; However, the document does not show how to read the IFR or where exactly it is.&amp;nbsp; I know that the flash command "Read Resource" must be used, but what address should be passed to it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;The specific processor is MK60FN1M0VLQ12 rev 3N96B.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 18:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303667#M12827</guid>
      <dc:creator>jmag99</dc:creator>
      <dc:date>2014-05-28T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303668#M12828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jmag99,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have consulted our Expert Team, and they replied with the following table, please kindly refer to it for details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43720iD19245954868BD1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so you may use the read resource command to access program flash 1 IFR.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&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>Thu, 29 May 2014 02:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303668#M12828</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-05-29T02:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303669#M12829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that address appears to be correct for the IFR1 location.&amp;nbsp; However, there are several errors in the Reference Manual for my part (K60P144M150SF3RM):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program Flash 1 IFR is located at 0x20000-0x203FF&lt;/P&gt;&lt;P&gt;In section 30.4.12.14.1 - the locations of the fields are incorrect.&amp;nbsp; It should be&lt;/P&gt;&lt;P&gt;0-1 is enable word&lt;/P&gt;&lt;P&gt;2-3 is indicator address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On page 804, the address is not shifted by 1 bit, but rather by 4 bits.&amp;nbsp; This results in the indicator address going from 0x7F000 to 0x7F00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this information makes it into the Reference Manual someday.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 14:47:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303669#M12829</guid>
      <dc:creator>jmag99</dc:creator>
      <dc:date>2014-05-29T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303670#M12830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well now I am a bit confused, I am using the &lt;STRONG&gt;K60P144M150SF3RM&lt;/STRONG&gt; reference manual and I would like to confirm with you if you are using the same reference manual and also the information depicted above, please see the next points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In this manual I found information regard IFR address on &lt;STRONG&gt;Table 30-44. Read Resource Select Codes&lt;/STRONG&gt; on page 789, here is mention that IFR local address range is 0x0000 - 0x03FF.&lt;/LI&gt;&lt;LI&gt;You mention there is an error on section 30.4.12.14.1 Swap state determination, but I am no able to understand what you mean with 0-1 and 2-3, could you please explain me?&lt;/LI&gt;&lt;LI&gt;You mention that in page 804 is an address from 0x7F000 to 0x7F00 but I was not able to find it, could you be more specific?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm this information o let me know if I am using a different reference manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 18:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303670#M12830</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-05-29T18:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303671#M12831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears you have the same manual as me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 30-44 table only shows the IFR 0, not the IFR 1 where the swap details are stored.&amp;nbsp; Also, the flash driver needs to be modified to be able to Read Resource at address 0x20000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table on 30.4.12.14.1 shows the swap enable word at 0x006-0x007, but it's really at 0x000-0x001.&amp;nbsp; It also shows the indicator address at 0x00D-0x00F, but it's really at 0x002-0x003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On page 804, the address is not listed (this is generally set as the last page in a sector), however, the way the address is stored in the IFR is not stated properly.&amp;nbsp; On that page, it states that the address is shifted right by 1 bit (exact text is (shifted with bit 0 removed), however, the actual data stored at that location is shifted by 4 bits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 18:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303671#M12831</guid>
      <dc:creator>jmag99</dc:creator>
      <dc:date>2014-05-29T18:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303672#M12832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been reviewing the AN4533 software because I tried to understand better the original question and data depicted on the reference manual in order to know what is exactly going on. In this case I would like to ask you some questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Which is the value for your &lt;STRONG&gt;FlashCommandSequence&lt;/STRONG&gt; variable before entering to&lt;STRONG&gt;&lt;EM&gt; FlashReadResource()&lt;/EM&gt;&lt;/STRONG&gt; function? &lt;/LI&gt;&lt;LI&gt;Which is the value of the same variable after going out the function?&lt;/LI&gt;&lt;LI&gt;Why you say this is not the correct value, what value do you expect?&lt;/LI&gt;&lt;LI&gt;Which is the value of the variable &lt;STRONG&gt;returnCode&lt;/STRONG&gt; after going out of the function?&lt;/LI&gt;&lt;LI&gt;If you do not use this function you have any problems with the application? (I know you cannot be sure about if information has been correctly swapped) but have you noticed a strange behavior on your application? or does you application crash?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 20:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303672#M12832</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-05-29T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I read out the Program Flash 1 IFR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303673#M12833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am referring to is K60P144M100SF2V2RM Rev. 2 Jun 2012, while K60P144M150SF3RM is Rev. 2, Dec 2011, and I was just told K60P144M150SF3RM and K70P256M150SF3RM will be updated next month, so I think the FTFE chapter will be updated with this release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 03:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-read-out-the-Program-Flash-1-IFR/m-p/303673#M12833</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-05-30T03:07:26Z</dc:date>
    </item>
  </channel>
</rss>

