<?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 S32K144 FLASH in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698652#M1295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on S32K144&amp;nbsp;&amp;nbsp;Flash Memory. I want to do partition for 4KB EEPROM and 64KB backup. While partition when I am writing 1 to clear CCIF and again wating &amp;nbsp;for 1 to complete the process, in while loop it is going to reset handler but when I am debugging step by step then it is not going to reset handler. I am not able to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear CCIF to launch command */&lt;BR /&gt; p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT |= FTFC_FSTAT_CCIF_MSK;&lt;/P&gt;&lt;P&gt;while (0U == (p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT &amp;amp; FTFC_FSTAT_CCIF_MSK));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regard,&lt;/P&gt;&lt;P&gt;Ravi Ranjan Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2017 12:47:46 GMT</pubDate>
    <dc:creator>raviranjankumar</dc:creator>
    <dc:date>2017-09-08T12:47:46Z</dc:date>
    <item>
      <title>S32K144 FLASH</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698652#M1295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on S32K144&amp;nbsp;&amp;nbsp;Flash Memory. I want to do partition for 4KB EEPROM and 64KB backup. While partition when I am writing 1 to clear CCIF and again wating &amp;nbsp;for 1 to complete the process, in while loop it is going to reset handler but when I am debugging step by step then it is not going to reset handler. I am not able to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Clear CCIF to launch command */&lt;BR /&gt; p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT |= FTFC_FSTAT_CCIF_MSK;&lt;/P&gt;&lt;P&gt;while (0U == (p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT &amp;amp; FTFC_FSTAT_CCIF_MSK));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regard,&lt;/P&gt;&lt;P&gt;Ravi Ranjan Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 12:47:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698652#M1295</guid>
      <dc:creator>raviranjankumar</dc:creator>
      <dc:date>2017-09-08T12:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698653#M1296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29016i9820F300FFE11A4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;It looks like this is the reason. Try to execute the code from RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 09:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698653#M1296</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-09-11T09:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698654#M1297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Thanks for reply. I execute the code from RAM and my driver is working fine in S32K144 design studio. But in Keil and IAR, now also it is going to reset handler. I disable interrupt and kept launch command function in RAM section. Anything&amp;nbsp; else should I do to work flash in Keil and IAR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi Ranjan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 05:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698654#M1297</guid>
      <dc:creator>raviranjankumar</dc:creator>
      <dc:date>2017-10-12T05:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698655#M1298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am experiencing the exact same problem. Did you manage to find a solution for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 21:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698655#M1298</guid>
      <dc:creator>mahmoudsherrah</dc:creator>
      <dc:date>2018-06-12T21:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLASH</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698656#M1299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I have managed to solve this problem, even though this was not stated ANYWHERE before and is done implicitly in all examples I have seen (SDK and No SDK). By implicitly I mean, the code is written of course but there was no stressing on this fact and no mention of it in the application note&amp;nbsp;AN11983.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to&amp;nbsp;put command launching in a function and place this function in RAM as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void launchCommand(void) __attribute__((section (".code_ram"))); //attribute place the function in RAM. No need to repeat for definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void launchCommand(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Clear CCIF to launch command */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT |= FTFC_FSTAT_CCIF_MSK;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while (0U == (p_stgFTFCRegAccess-&amp;gt;FTFC_FSTAT &amp;amp; FTFC_FSTAT_CCIF_MSK));&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also enabling FTFC_IRQn before you partition the flash memory using pure software (i.e. flash not partitioned by PE Micro Debug configuration, like "Enable Device Partitioning" and "Preserve Memory Area")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahmoud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 19:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-FLASH/m-p/698656#M1299</guid>
      <dc:creator>mahmoudsherrah</dc:creator>
      <dc:date>2018-06-15T19:01:41Z</dc:date>
    </item>
  </channel>
</rss>

