<?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 MicrocontrollersのトピックSWAP Flash ACCERR Error AN4533 on TWR-K60N512</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWAP-Flash-ACCERR-Error-AN4533-on-TWR-K60N512/m-p/277858#M10079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm trying to implement the flash swap function in one of my projects in order to be able to update the firmware remotely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the AN4533 and I try to run the example software on my K60 tower.&lt;/P&gt;&lt;P&gt;I'm using codewarrior Version: 10.3 Build Id:121211, and TWR-K60N512 (700-26548 RevB)&lt;/P&gt;&lt;P&gt;and currently I'm using the P&amp;amp;EMicro Multilink USB device instead of OSJTAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I run the swap_demo code it returns the folowing:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;External Pin Reset&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;K60-144pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Silicon rev 1.0&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Flash parameter version 0.0.0.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Flash version ID 0.0.0.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;512 kBytes of P-flash P-flash only&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;128 kBytes of RAM&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/********************************************************/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/*&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; Flash Block Swap Demo&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;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/********************************************************/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Program Flash Block 0 located at address 0x0000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Executing from Program Flash Block 0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Initializing Flash Driver: Success!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Checking Swap System Status: Failed!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style=": ; line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Error: FTFx_ERR_ACCERR&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the register in the reference manual, but still not understand what is wrong.&lt;/P&gt;&lt;P&gt;I'm trying to debug the example code to figure out where the error occurs, it seems to be at FlashCommandSequence() function when executing pPFlashGetSwapStatus().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty new in this feature and I do not have any idea of what is wrong, where I have to check or what can I do to solve the problem. I'm lost.&lt;/P&gt;&lt;P&gt;If you have any idea I will be happy to know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 23:17:31 GMT</pubDate>
    <dc:creator>alfredogualdron</dc:creator>
    <dc:date>2014-02-04T23:17:31Z</dc:date>
    <item>
      <title>SWAP Flash ACCERR Error AN4533 on TWR-K60N512</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWAP-Flash-ACCERR-Error-AN4533-on-TWR-K60N512/m-p/277858#M10079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm trying to implement the flash swap function in one of my projects in order to be able to update the firmware remotely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the AN4533 and I try to run the example software on my K60 tower.&lt;/P&gt;&lt;P&gt;I'm using codewarrior Version: 10.3 Build Id:121211, and TWR-K60N512 (700-26548 RevB)&lt;/P&gt;&lt;P&gt;and currently I'm using the P&amp;amp;EMicro Multilink USB device instead of OSJTAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I run the swap_demo code it returns the folowing:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;External Pin Reset&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;K60-144pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Silicon rev 1.0&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Flash parameter version 0.0.0.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Flash version ID 0.0.0.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;512 kBytes of P-flash P-flash only&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;128 kBytes of RAM&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/********************************************************/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/*&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; Flash Block Swap Demo&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;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;/********************************************************/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Program Flash Block 0 located at address 0x0000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Executing from Program Flash Block 0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Initializing Flash Driver: Success!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Checking Swap System Status: Failed!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;STRONG style=": ; line-height: 1.5em; font-size: 10pt; font-family: 'courier new', courier;"&gt;Error: FTFx_ERR_ACCERR&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the register in the reference manual, but still not understand what is wrong.&lt;/P&gt;&lt;P&gt;I'm trying to debug the example code to figure out where the error occurs, it seems to be at FlashCommandSequence() function when executing pPFlashGetSwapStatus().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty new in this feature and I do not have any idea of what is wrong, where I have to check or what can I do to solve the problem. I'm lost.&lt;/P&gt;&lt;P&gt;If you have any idea I will be happy to know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 23:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWAP-Flash-ACCERR-Error-AN4533-on-TWR-K60N512/m-p/277858#M10079</guid>
      <dc:creator>alfredogualdron</dc:creator>
      <dc:date>2014-02-04T23:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP Flash ACCERR Error AN4533 on TWR-K60N512</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWAP-Flash-ACCERR-Error-AN4533-on-TWR-K60N512/m-p/277859#M10080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alfredo gualdron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the swap feature is not supported by the device on TWR-K60N512 Rev B, the mask set on the MCU is 0m33z, which has an errata as below:&lt;/P&gt;&lt;P&gt;e3855: FTFL: The SWAP feature is not supported.&lt;/P&gt;&lt;P&gt;Errata type: Errata&lt;/P&gt;&lt;P&gt;Description: The SWAP feature is not supported via the Swap Control Command.&lt;/P&gt;&lt;P&gt;Workaround: The SWAP feature is not supported and any attempt to use the Swap Control command will&lt;/P&gt;&lt;P&gt;result in an error (FSTAT[ACCERR] will be set).&lt;/P&gt;&lt;P&gt;Please try the 120MHz/150MHz demo on TWR-K60F120M or TWR-K70F120M instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the confusion that has caused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know if you have any further issue.&lt;/P&gt;&lt;P&gt;&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>Tue, 18 Feb 2014 06:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWAP-Flash-ACCERR-Error-AN4533-on-TWR-K60N512/m-p/277859#M10080</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-02-18T06:32:08Z</dc:date>
    </item>
  </channel>
</rss>

