<?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: K66 flash swap fails after reset in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632962#M38121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="32680" data-username="cfgmgr" href="https://community.nxp.com/people/cfgmgr"&gt;cfgmgr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I was wondering if you can share the whole demo, then I run the demo on the FRDM-K66F board to replicate the issue.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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, 21 Sep 2016 02:59:34 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-09-21T02:59:34Z</dc:date>
    <item>
      <title>K66 flash swap fails after reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632961#M38120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm porting some existing working K60 code to the K66, but am having problems getting the "swap flash" mechanism (described in AN4533) to work properly. &amp;nbsp;The code works fine on my K60, but not on my K66.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCU in question is a bare-metal MK66FN2M0VLQ18. &amp;nbsp;I am using V1.0.4 of the C90TFS flash driver.&amp;nbsp;I am NOT running in HSRUN mode (I'm running at 120Mhz).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get no errors while preparing the flash sectors, erasing and programming the flash, and issuing the swap command (0x46); &amp;nbsp;However after the MCU reboots, I immediately get ACCERR and FPVIOL in the FTFE_FSTAT register, at which point the the processor is locked up. &amp;nbsp;I then have to do a "mass erase" to get the MCU back to a usable state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this when porting their K60 flash swapping code to the K66? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any insights!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 22:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632961#M38120</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-09-19T22:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: K66 flash swap fails after reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632962#M38121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="32680" data-username="cfgmgr" href="https://community.nxp.com/people/cfgmgr"&gt;cfgmgr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I was wondering if you can share the whole demo, then I run the demo on the FRDM-K66F board to replicate the issue.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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, 21 Sep 2016 02:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632962#M38121</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-21T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: K66 flash swap fails after reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632963#M38122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not easily - the code is part of a whole larger application that includes a bunch of RTOS tasks, and is custom to our bare-metal board hardware. &amp;nbsp;It would be quite difficult to peel out just the relevant code and get it to compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I noticed in the K66 manual that the program swap flash system swaps blocks 0-1 with blocks 2-3. &amp;nbsp; Since our original K60 code only had 2 blocks (0 and 1) and the K66 we are using has 4 blocks (0-3), I'm wondering if the problem lies somewhere in there...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632963#M38122</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-09-21T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: K66 flash swap fails after reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632964#M38123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved! &amp;nbsp;(As usual, this was a completely self-inflicted wound - not enough sleep).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the flash sector and block sizes from the older 1MB-sized K60 chip. &amp;nbsp;When I used the correct sizes and addresses for the 2MB K66 chip, and moved the&amp;nbsp;FLASH_SWAP_INDICATOR_ADDR to the correct address (0xFF000), all works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 15:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-flash-swap-fails-after-reset/m-p/632964#M38123</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-09-23T15:23:58Z</dc:date>
    </item>
  </channel>
</rss>

