<?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: k22 FlashErase/program not working in HS Run mode</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1271002#M60433</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is not possible to program flash in HSRUN mode on your device.&lt;BR /&gt;You need to reduce the speed to &amp;lt;= 80Mz and switch to normal RUN mode, do the programming , and then move back to HSRUN mode.&lt;BR /&gt;&lt;BR /&gt;There are a number of restrictions in HSRUN mode that are all defined in the user's manual.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 20:31:07 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2021-04-30T20:31:07Z</dc:date>
    <item>
      <title>k22 FlashErase/program not working in HS Run mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1270438#M60425</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using TWR-k22f120M-eval kit. My application need the core clock to run at 120Mhz. So I configured it to run in HS run mode. but FLASH_Erase API is returning error (kStatus_FTFx_AccessError (errorcode 103)). but same FLASH_Erase API is returning SUCCESS if core clock is running at 80Mhz.&lt;/P&gt;&lt;P&gt;here is the non working code(HSRUN mode):&lt;/P&gt;&lt;P&gt;To simulate error scenario replace&amp;nbsp;BOARD_BootClockRUN() with&amp;nbsp;mcgConfig_BOARD_BootClockHSRUN() in flah example extracted from SDK.&lt;/P&gt;&lt;P&gt;is there any way to use flash API successfully in HS run mode?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1270438#M60425</guid>
      <dc:creator>jaswanth</dc:creator>
      <dc:date>2021-04-30T05:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: k22 FlashErase/program not working in HS Run mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1271002#M60433</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is not possible to program flash in HSRUN mode on your device.&lt;BR /&gt;You need to reduce the speed to &amp;lt;= 80Mz and switch to normal RUN mode, do the programming , and then move back to HSRUN mode.&lt;BR /&gt;&lt;BR /&gt;There are a number of restrictions in HSRUN mode that are all defined in the user's manual.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 20:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1271002#M60433</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2021-04-30T20:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: k22 FlashErase/program not working in HS Run mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1271050#M60434</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178345"&gt;@jaswanth&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;you cannot program the flash in HSRUN mode. if using HSRUN you need to change the mode during flash programming and then go back to HSRUN. How I am doing this with the SDK you can see in&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/MetaClockClock/blob/main/Firmware/ClockCommon/nvmc.c" target="_blank"&gt;https://github.com/ErichStyger/MetaClockClock/blob/main/Firmware/ClockCommon/nvmc.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErichS_0-1619846596037.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143757i3E54B1B60E5956C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErichS_0-1619846596037.png" alt="ErichS_0-1619846596037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 05:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k22-FlashErase-program-not-working-in-HS-Run-mode/m-p/1271050#M60434</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-05-01T05:23:30Z</dc:date>
    </item>
  </channel>
</rss>

