<?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 Software Development KitのトピックThe question about the flash operation in the KL36.</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/The-question-about-the-flash-operation-in-the-KL36/m-p/661162#M7213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;The SDK_1.3 of KL36&amp;nbsp;is used in my project. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My source code is in the attachment. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;I need to feed the external watch dog when erasing the flash. So I add a “flash_call_back” function to the “flashSSDConfig”.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172178_172178.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122623i150979BA491B0E2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="172178_172178.png" alt="172178_172178.png" /&gt;&lt;/span&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/10022iD8EDF8961BE48EFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 10.5pt;"&gt;&lt;SPAN&gt;The flash erasing in the function “fapp_params_to_flash();&amp;nbsp;&amp;nbsp;&amp;nbsp; ” is OK before adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172179_172179.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122624i8AFA678A8F8A0B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="172179_172179.png" alt="172179_172179.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10055i5B929EA8D6250FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 10.5pt;"&gt;&lt;SPAN&gt;The flash erasing is failed after adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”. &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;The CPU always resets and it is caused by the “core lockup”(The bit “LOCKUP” of RCM_SRS1 is set as 1).&lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172182_172182.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122625iF21035ADC4DB5970/image-size/large?v=v2&amp;amp;px=999" role="button" title="172182_172182.png" alt="172182_172182.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10195i38AAC1551AE011CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;an you tell me what is the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;Remark: &lt;SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;The SDK_1.3 is used in my project. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My source code is in the attachment. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;Please copy it to C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My project is in the address &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z\user_apps\FMU_MP_W\iar&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&amp;nbsp;&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-339041"&gt;frdmkl46z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 02:55:20 GMT</pubDate>
    <dc:creator>小勇邹</dc:creator>
    <dc:date>2016-12-09T02:55:20Z</dc:date>
    <item>
      <title>The question about the flash operation in the KL36.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/The-question-about-the-flash-operation-in-the-KL36/m-p/661162#M7213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;The SDK_1.3 of KL36&amp;nbsp;is used in my project. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My source code is in the attachment. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;I need to feed the external watch dog when erasing the flash. So I add a “flash_call_back” function to the “flashSSDConfig”.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172178_172178.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122623i150979BA491B0E2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="172178_172178.png" alt="172178_172178.png" /&gt;&lt;/span&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/10022iD8EDF8961BE48EFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 10.5pt;"&gt;&lt;SPAN&gt;The flash erasing in the function “fapp_params_to_flash();&amp;nbsp;&amp;nbsp;&amp;nbsp; ” is OK before adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172179_172179.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122624i8AFA678A8F8A0B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="172179_172179.png" alt="172179_172179.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10055i5B929EA8D6250FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #000000; font-size: 10.5pt;"&gt;&lt;SPAN&gt;The flash erasing is failed after adding “GPIO_DRV_TogglePinOutput(HARDWARE_WATCHDOG);” to the “flash_call_back”. &lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;The CPU always resets and it is caused by the “core lockup”(The bit “LOCKUP” of RCM_SRS1 is set as 1).&lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="172182_172182.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122625iF21035ADC4DB5970/image-size/large?v=v2&amp;amp;px=999" role="button" title="172182_172182.png" alt="172182_172182.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10195i38AAC1551AE011CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;an you tell me what is the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;Remark: &lt;SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Verdana',sans-serif; font-size: 8.5pt;"&gt;The SDK_1.3 is used in my project. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My source code is in the attachment. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;Please copy it to C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;My project is in the address &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: medium; font-family: Calibri;"&gt;C:\Freescale\SDK_1.3_KL36\examples\frdmkl46z\user_apps\FMU_MP_W\iar&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min- padding: 0px; margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&amp;nbsp;&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-339041"&gt;frdmkl46z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 02:55:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/The-question-about-the-flash-operation-in-the-KL36/m-p/661162#M7213</guid>
      <dc:creator>小勇邹</dc:creator>
      <dc:date>2016-12-09T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: The question about the flash operation in the KL36.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/The-question-about-the-flash-operation-in-the-KL36/m-p/661163#M7214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Robin,&lt;/P&gt;&lt;P&gt;Can you copy the body of void flash_call_back(void); from flash to internal RAM and execute the api function in internal RAM? I suppose that when you execute the flash_call_back() function, the erasing/programming flash process has not been complete yet, if you execute the flash_call_back(0 function which is saved in the same block as you are ersaing/programming the flash, there is issue.&lt;/P&gt;&lt;P&gt;Pls have a try.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 03:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/The-question-about-the-flash-operation-in-the-KL36/m-p/661163#M7214</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-12-12T03:58:33Z</dc:date>
    </item>
  </channel>
</rss>

