<?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>MQX Software SolutionsのトピックRe: MQX K66 FTFE access error</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443516#M14810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ohad Benjamin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 02:28:52 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2015-11-03T02:28:52Z</dc:date>
    <item>
      <title>MQX K66 FTFE access error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443514#M14808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is to inform anyone else that encounters this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to read the program once registers located in the FTFE device.&lt;/P&gt;&lt;P&gt;When I tried accessing the FTFE device from a bareboard application I could read the registers without a problem, but when I tried accessing them from a MQX application I couldn't.&lt;/P&gt;&lt;P&gt;After debugging this problem for a few days it turns out the the FTFE device cannot be accessed when the MCU is set to run in HSRUN mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FlashX driver does not have any mechanism to work around this problem so every access to the FTFE device in HSRUN mode will end up in error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 19:20:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443514#M14808</guid>
      <dc:creator>ohadbenjamin</dc:creator>
      <dc:date>2015-10-29T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: MQX K66 FTFE access error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443515#M14809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out there is a function to set a different operation mode called _bsp_set_operation_mode.&lt;/P&gt;&lt;P&gt;There is one problem with it. It will only set HSRUN mode correctly, but not RUN mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the HSRUN case there is this line:&lt;/P&gt;&lt;P&gt;SMC_PMCTRL |= (uint8_t)0x60UL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be a similar line in the RUN case clearing those same bits:&lt;/P&gt;&lt;P&gt;SMC_PMCTRL &amp;amp;= (uint8_t)~0x60UL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, there is another problem I found in the FTFE device that won't let you write single bytes to it.&lt;/P&gt;&lt;P&gt;In the K60 there is a FTFL device. I could write single bytes to it (assuming those bytes are erased). With the K66 there is no way of writing single bytes.&lt;/P&gt;&lt;P&gt;The only way to write to the FTFE device is in blocks of 8 bytes. When trying to write a single byte the driver tries to set that byte to whatever value chosen. If there are bytes written in that block of 8 before it, the write will fail and lockup the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this sums up my last few days of working on the new K66 with the FTFE device...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443515#M14809</guid>
      <dc:creator>ohadbenjamin</dc:creator>
      <dc:date>2015-11-02T20:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: MQX K66 FTFE access error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443516#M14810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ohad Benjamin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 02:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443516#M14810</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-11-03T02:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: MQX K66 FTFE access error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443517#M14811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;SO what is the action on this ? I am also facing the same difficyulty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;The way I got around it is to define "#define MQX_ENABLE_HSRUN 0"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;Is it OK to go ahead like this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443517#M14811</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-12-29T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: MQX K66 FTFE access error</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443518#M14812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't disable the HSRUN altogether - that may impact the overall performance of your system.&lt;/P&gt;&lt;P&gt;You should just disable HSRUN for the period of flash access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPM_OPERATION_MODE&amp;nbsp; curmode;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; curmode = _lpm_get_operation_mode();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lpm_set_operation_mode(LPM_OPERATION_MODE_RUN);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Do your flash operations here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lpm_set_operation_mode(curmode); //return to previous run mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2016 09:28:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-K66-FTFE-access-error/m-p/443518#M14812</guid>
      <dc:creator>yoramshacham</dc:creator>
      <dc:date>2016-01-24T09:28:00Z</dc:date>
    </item>
  </channel>
</rss>

