<?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 Re: K8x OTA Firmware Update in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902094#M53076</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;MUCXpresso SDK for K8x also has this function to execute Flash command in RAM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fsl_ftfx_cache.c&amp;gt; has below code:&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/80075iF2EE7CD017FB855A/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;&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/80076i6688E287762B94E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2019 02:53:05 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2019-04-22T02:53:05Z</dc:date>
    <item>
      <title>K8x OTA Firmware Update</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902090#M53072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like some ideas on&amp;nbsp;how to achieve Over-The-Air Firmware Updates on the K8x family.&amp;nbsp; My board has&amp;nbsp;plenty of QSPI flash and an&amp;nbsp;i2c connection with a 4G LTE comms module.&amp;nbsp; &amp;nbsp;The comms module can&amp;nbsp;forward a binary firmware image as a packet steam, but is too under-resourced to store the entire image, or to implement a bootloader host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For performance reasons, the K8x's main application&amp;nbsp;should run from internal program flash.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902090#M53072</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2019-04-18T19:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: K8x OTA Firmware Update</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902091#M53073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;IDEA 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reserve area of QSPI XiP Flash that contains update manager application, say, "UpdateApp".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default application "MainApp" is running and accepts file transfer from comms module.&amp;nbsp; The file, an update for MainApp, is stored at a predesignated area in QSPI Flash.&amp;nbsp; After&amp;nbsp;the file transfer is complete, we&amp;nbsp;change the BOOTSRC_SEL field (bits [7:6]) in the FOPT register to b10 "boot from ROM with QuadSPI configured".&amp;nbsp; (The bootFlags field in BCA should previously have been set to 0xFE "boot directly from&amp;nbsp;QuadSPI".)&amp;nbsp;&amp;nbsp;Now we execute a&amp;nbsp;RESET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K8x now boots UpdateApp from QSPI.&amp;nbsp; This erases internal flash, into which it then writes the updated MainApp FW from the predesignated area in QSPI flash.&amp;nbsp;It resets the BOOTSRC_SET field in the FOPT register to boot from internal flash, and executes a RESET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: Can MainApp change its own the Flash Configuration Field? Or do I need a RAM Function to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 20:17:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902091#M53073</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2019-04-18T20:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: K8x OTA Firmware Update</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902092#M53074</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;Question: Can MainApp change its own the Flash Configuration Field? Or do I need a RAM Function to do it?&lt;/P&gt;&lt;P&gt;TS: Yes, MainApp can change its own Flash configuration field.&lt;/P&gt;&lt;P&gt;There is an application note &lt;A href="https://www.nxp.com/docs/en/application-note/AN4695.pdf"&gt;AN4695 &lt;/A&gt;about how to avoid read while write error with Flash operation.&lt;/P&gt;&lt;P&gt;It just required RAM function to do Flash command operation.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 03:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902092#M53074</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-04-19T03:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: K8x OTA Firmware Update</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902093#M53075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The application note's a little dated.&amp;nbsp; RAM functions in MCUXpresso are much easier. The linker script should automatically be set up correctly.&amp;nbsp; All that's needed:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;

__RAM_FUNC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;myRamFunction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 18:36:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902093#M53075</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2019-04-19T18:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: K8x OTA Firmware Update</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902094#M53076</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;MUCXpresso SDK for K8x also has this function to execute Flash command in RAM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fsl_ftfx_cache.c&amp;gt; has below code:&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/80075iF2EE7CD017FB855A/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;&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/80076i6688E287762B94E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 02:53:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K8x-OTA-Firmware-Update/m-p/902094#M53076</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-04-22T02:53:05Z</dc:date>
    </item>
  </channel>
</rss>

