<?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: Flash driver problem with kea 128 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657995#M40337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vignesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I added the below part of the code, and its been called on every flash operaiton, it started working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLASH_LaunchCMD(uint8_t bWaitComplete)&lt;BR /&gt;{&lt;BR /&gt; MCM-&amp;gt;PLACR |= MCM_PLACR_ESFC_MASK; /* enable stalling flash controller when flash is busy */&lt;/P&gt;&lt;P&gt;FTMRE-&amp;gt;FSTAT = 0x80;&lt;BR /&gt; if(bWaitComplete)&lt;BR /&gt; {&lt;BR /&gt; // Wait till command is completed&lt;BR /&gt; while (!(FTMRE-&amp;gt;FSTAT &amp;amp; FTMRE_FSTAT_CCIF_MASK));&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 09:43:47 GMT</pubDate>
    <dc:creator>manjunathkm</dc:creator>
    <dc:date>2017-04-12T09:43:47Z</dc:date>
    <item>
      <title>Flash driver problem with kea 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657992#M40334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using KEA 128 microcontroller with s32 studio IDE. But i am facing problem with FLASH driver when i run continuously without step by step debugging.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured bus clock frequency to 20MHZ, and&amp;nbsp;FTMRE_FCLKDIV is configured to 0x13.&lt;/P&gt;&lt;P&gt;When i do step by step debug, I am able to erase and write any number of bytes but if i run at one shot, even the Erase is not working, instead hitting reset handler.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached my project for your reference.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help me to find out the issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manjunath&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337494"&gt;FlashTest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657992#M40334</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-04-07T06:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flash driver problem with kea 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657993#M40335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this working. I was not monitoring the status register for the operation complete, then after it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657993#M40335</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-04-07T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flash driver problem with kea 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657994#M40336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunath,&lt;/P&gt;&lt;P&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;I think you are not checking&amp;nbsp;MGBUSY Flag(Memory controller busy flag) in status register&amp;nbsp;FTMRE_FSTAT, before starting to send a new flash command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657994#M40336</guid>
      <dc:creator>vignesh_vb_7</dc:creator>
      <dc:date>2017-04-12T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flash driver problem with kea 128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657995#M40337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vignesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I added the below part of the code, and its been called on every flash operaiton, it started working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void FLASH_LaunchCMD(uint8_t bWaitComplete)&lt;BR /&gt;{&lt;BR /&gt; MCM-&amp;gt;PLACR |= MCM_PLACR_ESFC_MASK; /* enable stalling flash controller when flash is busy */&lt;/P&gt;&lt;P&gt;FTMRE-&amp;gt;FSTAT = 0x80;&lt;BR /&gt; if(bWaitComplete)&lt;BR /&gt; {&lt;BR /&gt; // Wait till command is completed&lt;BR /&gt; while (!(FTMRE-&amp;gt;FSTAT &amp;amp; FTMRE_FSTAT_CCIF_MASK));&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:43:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-driver-problem-with-kea-128/m-p/657995#M40337</guid>
      <dc:creator>manjunathkm</dc:creator>
      <dc:date>2017-04-12T09:43:47Z</dc:date>
    </item>
  </channel>
</rss>

