<?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のトピック[KEAZN64] [Flash controller] Flash launching command stalls CPU for 20ms</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Flash-controller-Flash-launching-command-stalls-CPU-for/m-p/747913#M45533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to access the flash of target "Kinetis KEAZN64" in terms of erasing sectors, flashing words, .. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out that launching command (FTMRH_FSTAT = 0x80;) after configuring command by "Erase command", CPU stalls for 20ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. In code, at line [&amp;nbsp;&lt;SPAN&gt;FTMRH_FSTAT = 0x80; ], this operation takes 20ms to move to the next line of code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not know why CPU is halted in that way while the flash controller should run in parallel to the CPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any solutions please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 11:16:22 GMT</pubDate>
    <dc:creator>mohammedaboelna</dc:creator>
    <dc:date>2018-02-15T11:16:22Z</dc:date>
    <item>
      <title>[KEAZN64] [Flash controller] Flash launching command stalls CPU for 20ms</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Flash-controller-Flash-launching-command-stalls-CPU-for/m-p/747913#M45533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to access the flash of target "Kinetis KEAZN64" in terms of erasing sectors, flashing words, .. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out that launching command (FTMRH_FSTAT = 0x80;) after configuring command by "Erase command", CPU stalls for 20ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. In code, at line [&amp;nbsp;&lt;SPAN&gt;FTMRH_FSTAT = 0x80; ], this operation takes 20ms to move to the next line of code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not know why CPU is halted in that way while the flash controller should run in parallel to the CPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any solutions please ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Flash-controller-Flash-launching-command-stalls-CPU-for/m-p/747913#M45533</guid>
      <dc:creator>mohammedaboelna</dc:creator>
      <dc:date>2018-02-15T11:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: [KEAZN64] [Flash controller] Flash launching command stalls CPU for 20ms</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Flash-controller-Flash-launching-command-stalls-CPU-for/m-p/747914#M45534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mohammed Aboelnasr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 20ms time is expected for a&amp;nbsp;Erase Flash Sector command according to the &lt;A href="https://www.nxp.com/docs/en/data-sheet/S9KEA64P64M20SF0.pdf"&gt;datasheet&lt;/A&gt;. The flash memory technology has the limitation of not allowing read operations at the same time as an erase or program operation is occurring within the same block. Refer to the application note &lt;A href="https://www.nxp.com/docs/en/application-note/AN4695.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;AN4695&lt;/A&gt;&amp;nbsp;for more information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I believe that the bit&amp;nbsp;MCM_PLACR[ESFC] is set and is enabling the stalling of the flash controller when busy to avoid a read collision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Flash-controller-Flash-launching-command-stalls-CPU-for/m-p/747914#M45534</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-03-05T22:32:27Z</dc:date>
    </item>
  </channel>
</rss>

