<?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: FLASH_Program returns error after reboot</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688959#M42402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, thanks for the response. &amp;nbsp;I've checked both the bootloader and the guest application, and HSRUN mode is not enabled by either. &amp;nbsp;Is there a way to check at runtime if HSRUN mode is currently enabled? &amp;nbsp;A register to check or something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently reading the value of&amp;nbsp;SMC_GetPowerModeState, and it's returning kSMC_PowerStateRun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 14:21:20 GMT</pubDate>
    <dc:creator>tmiller</dc:creator>
    <dc:date>2017-08-01T14:21:20Z</dc:date>
    <item>
      <title>FLASH_Program returns error after reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688957#M42400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a (modified) freedom_bootloader that works, as expected on the K66F. &amp;nbsp;I have a guest application that can be loaded from the bootloader. &amp;nbsp;There is an area of FLASH memory that I've designated for shared use between the guest application and the bootloader. &amp;nbsp;The guest application writes to the shared space using FLASH_Program from fsl_flash.h, and uses NVIC_SystemReset() to reboot the device. &amp;nbsp;The bootloader reads the shared space, and based on the contents of that space modifies the startup process accordingly. &amp;nbsp;This all works as I would expect. &amp;nbsp;I can reprogram the same flash location on the K66F any number of times, and after each time NVIC_SystemReset is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program runs into trouble after I physically power cycle the K66F. &amp;nbsp;After that, when the guest application tries to use FLASH_Program, it gets a return code of&amp;nbsp;kStatus_FLASH_CommandFailure, which, to my understanding, indicates an unspecified run-time error. &amp;nbsp;Can anyone help me resolve this issue? &amp;nbsp;My attempts at diagnosing have been unsuccessful so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: additional infromation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 18:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688957#M42400</guid>
      <dc:creator>tmiller</dc:creator>
      <dc:date>2017-07-31T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: FLASH_Program returns error after reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688958#M42401</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;Is it possible that High Speed RUN mode is used, but only in certain cases? In HSRUN mode Flash programming is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 20:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688958#M42401</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-07-31T20:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: FLASH_Program returns error after reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688959#M42402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, thanks for the response. &amp;nbsp;I've checked both the bootloader and the guest application, and HSRUN mode is not enabled by either. &amp;nbsp;Is there a way to check at runtime if HSRUN mode is currently enabled? &amp;nbsp;A register to check or something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently reading the value of&amp;nbsp;SMC_GetPowerModeState, and it's returning kSMC_PowerStateRun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 14:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FLASH-Program-returns-error-after-reboot/m-p/688959#M42402</guid>
      <dc:creator>tmiller</dc:creator>
      <dc:date>2017-08-01T14:21:20Z</dc:date>
    </item>
  </channel>
</rss>

