<?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のトピックRe: MKE14F512 FLASH_erase return 103</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1230717#M59611</link>
    <description>&lt;P&gt;I found this post :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-Erase-Flash-memory/m-p/823401#M49792" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-Erase-Flash-memory/m-p/823401#M49792&lt;/A&gt;&lt;/P&gt;&lt;P&gt;all looks exactly as on Mike screenshots except ram address value (because I have different device) &amp;nbsp;and that all it doesn't &amp;nbsp;work&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2021 18:46:55 GMT</pubDate>
    <dc:creator>Molbuy</dc:creator>
    <dc:date>2021-02-13T18:46:55Z</dc:date>
    <item>
      <title>MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1230712#M59610</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After FLASH_Init which return status 0 and some FLASH_GetProperty which also returns correct values I try execute below which return status 103 :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regPrimask = DisableGlobalIRQ();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;statusF = FLASH_Erase(&amp;amp;configF, 0x42000, 4096, key);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EnableGlobalIRQ(regPrimask);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a FLASH registers is as follow : registers.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;after&amp;nbsp;&lt;/SPAN&gt;callFtfxRunCommand((FTFx_REG8_ACCESS_TYPE)(&amp;amp;FTFx-&amp;gt;&lt;SPAN&gt;FSTAT&lt;/SPAN&gt;)); the FTFE-FSTAT became 0xa0 (10100000) which correspond to status 103&lt;/P&gt;&lt;P&gt;Command execution looks like from right place (RAM) :&lt;/P&gt;&lt;P&gt;ame : config-&amp;gt;runCmdFuncAddr.commadAddr&lt;/P&gt;&lt;P&gt;Details:536872649&lt;/P&gt;&lt;P&gt;Default:536872649&lt;/P&gt;&lt;P&gt;Decimal:536872649&lt;/P&gt;&lt;P&gt;Hex:0x200006c9&lt;/P&gt;&lt;P&gt;Binary:100000000000000000011011001001&lt;/P&gt;&lt;P&gt;Octal:04000003311&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change &amp;nbsp;in erase address to &amp;nbsp;40000 or 41000 gives same result&lt;/P&gt;&lt;P&gt;What is wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 17:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1230712#M59610</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-02-13T17:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1230717#M59611</link>
      <description>&lt;P&gt;I found this post :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-Erase-Flash-memory/m-p/823401#M49792" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-Erase-Flash-memory/m-p/823401#M49792&lt;/A&gt;&lt;/P&gt;&lt;P&gt;all looks exactly as on Mike screenshots except ram address value (because I have different device) &amp;nbsp;and that all it doesn't &amp;nbsp;work&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 18:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1230717#M59611</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-02-13T18:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1233125#M59676</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt; &lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183441" target="_self"&gt;&lt;SPAN class=""&gt;Molbuy&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="lia-message-author-rank lia-component-author-rank lia-component-message-view-widget-author-rank"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;This error indicates that the instruction code is invalid or the address is out of bound. &lt;BR /&gt;Which value are you writing in the variable "key"?&lt;BR /&gt;Do you have this same problem with the parameters of the SDK example?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I will be waiting for your reply, if you have more questions do not hesitate to ask me.&lt;BR /&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 20:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1233125#M59676</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-02-18T20:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1233131#M59677</link>
      <description>&lt;P&gt;Hello Omar.&lt;/P&gt;&lt;P&gt;The key is :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt; key = FOUR_CHAR_CODE(&lt;SPAN&gt;'k'&lt;/SPAN&gt;, &lt;SPAN&gt;'f'&lt;/SPAN&gt;, &lt;SPAN&gt;'e'&lt;/SPAN&gt;, &lt;SPAN&gt;'k'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;and it taken from&amp;nbsp;fsl_ftfx_controller.h, moreover, if execution of code reached the "&lt;SPAN&gt;callFtfxRunCommand" then key &amp;nbsp;passed before successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, as you can see the address of&amp;nbsp;"callFtfxRunCommand" is&amp;nbsp;0x200006c9 which in range of upper sram region for that device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where can&amp;nbsp;I see appropriate sdk example?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 21:42:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1233131#M59677</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-02-18T21:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1235171#M59730</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Thank you for your reply, the key is correct and the command is in SRAM.&lt;BR /&gt;I suggest you test your device with the SDK example to check if this problem still persists. You can import the example in the MCUXpresso in the option "Import SDK examples(s)"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf54944_1-1614105868326.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137844i213ACA4E38BC07C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf54944_1-1614105868326.png" alt="nxf54944_1-1614105868326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf54944_0-1614107277453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137850i2DA5EA7080BE1112/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf54944_0-1614107277453.png" alt="nxf54944_0-1614107277453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know the results, if you have more questions do not hesitate to ask me.&lt;BR /&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 19:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1235171#M59730</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-02-23T19:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1240268#M59786</link>
      <description>&lt;P&gt;below is my result :&lt;/P&gt;&lt;P&gt;PFlash Example Start&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;PFlash Information:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Total Program Flash Size: 512 KB, Hex: (0x80000)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Program Flash Sector Size: 4 KB, Hex: (0x1000)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Flash is UNSECURE!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Erase a sector of flash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---- HALTED DUE TO FLASH ERROR! ----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just copy a "main" function of flash.c to my project with minor corrections, &amp;nbsp;then run it from main loop&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1240268#M59786</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-03-04T12:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244360#M59859</link>
      <description>&lt;P&gt;Thank you for letting me know your findings. I did the same test with different memory locations and the sector erase was successfully executed. &lt;BR /&gt;I suggest you check the value in the register FPROTn to verify if this feature is not enabled. &lt;BR /&gt;To disable this feature you can refer to chapter 17.4.4.6 of the reference manual: &lt;A href="https://www.nxp.com/docs/en/reference-manual/KE1xFP100M168SF0RM.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/reference-manual/KE1xFP100M168SF0RM.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let me know if this helps, if you have more questions do not hesitate to ask me.&lt;BR /&gt;Best regards,&lt;BR /&gt;Omar&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 19:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244360#M59859</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-03-11T19:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244854#M59866</link>
      <description>&lt;P&gt;&amp;nbsp;FTFE registers look ok, all FPROT = 0xFF&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 13:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244854#M59866</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-03-12T13:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244860#M59867</link>
      <description>&lt;P&gt;can it relate to clocking?&lt;/P&gt;&lt;P&gt;I currently clock flash from PLL&lt;/P&gt;&lt;P&gt;core clock 120mgz, bus 60mgz, flash 17.14mgz (divcore/7)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 13:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1244860#M59867</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-03-12T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1245899#M59893</link>
      <description>&lt;P&gt;I don't think the clocking is the issue. I suggest you swap the MCU and execute the same example to see if the problem still persists.&lt;BR /&gt;It is important to mention that the MCU must be in RUN mode before executing the command, if a command attempts to be executed in HSRUN mode the device will be trapped. &lt;BR /&gt;&lt;BR /&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;BR /&gt;Best regards,&lt;BR /&gt;Omar&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1245899#M59893</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2021-03-15T19:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1246375#M59901</link>
      <description>&lt;P&gt;Yes, a device currently run in HSRUN mode&lt;/P&gt;&lt;P&gt;I will try bit latter to switch to RUN mode and back to HSRUN on the fly and let you know&lt;/P&gt;&lt;P&gt;currently I boosted core clock to 144mgz&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1246375#M59901</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-03-16T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: MKE14F512 FLASH_erase return 103</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1246470#M59903</link>
      <description>&lt;P&gt;Yes, switching to RUN mode solve problem&lt;/P&gt;&lt;P&gt;A code from 18f_pflashof sdk examples passed without errors&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:09:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE14F512-FLASH-erase-return-103/m-p/1246470#M59903</guid>
      <dc:creator>Molbuy</dc:creator>
      <dc:date>2021-03-16T14:09:25Z</dc:date>
    </item>
  </channel>
</rss>

