<?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: Protection from a bad reflash in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070533#M1223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;João,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's right, the main program should be the one to enter this swap routine. In the TWR-K65 SDK, there's an example code that works with this feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2020 23:37:04 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-05-26T23:37:04Z</dc:date>
    <item>
      <title>Protection from a bad reflash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070530#M1220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are implementing a bootloader on our device based on the one supplied in the SDK so that we can update remotely our device via UART. Everything is going good, but I was wondering what if a remote flash goes bad in the middle of the remote flashing process, do we have a way to get back to the bootlodear or for instance have the micro controller flashed with two images and if one goes wrong it goes to the previous one flashed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MCUxpresso and a Kinetis K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 14:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070530#M1220</guid>
      <dc:creator>joao_ribeiro</dc:creator>
      <dc:date>2020-05-25T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Protection from a bad reflash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070531#M1221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following section of the reference manual, it explains the swap command: 29.4.12.14. This could help you to give you the&amp;nbsp;status of the flashing. Also if something goes wrong in the update, the command swap command will let you know if there was a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can check the following &lt;A href="https://www.nxp.com/docs/en/application-note/AN4533.pdf"&gt;application note&lt;/A&gt; that explains more about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 20:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070531#M1221</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-05-25T20:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Protection from a bad reflash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070532#M1222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I appreciate the support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While reading the application note that you mentioned I realized that we will not need the conventional bootloader (for instance the one provided in the SDK example), am I correct? It will be our main program that will enter in a additional flashing mode that will flash the upper or lower segment of memory. Correct?&lt;/P&gt;&lt;P&gt;The application note also mentions an example code, but I was not able to find it on the SDK examples. Where can we found an example code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you onde more for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 11:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070532#M1222</guid>
      <dc:creator>joao_ribeiro</dc:creator>
      <dc:date>2020-05-26T11:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Protection from a bad reflash</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070533#M1223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;João,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's right, the main program should be the one to enter this swap routine. In the TWR-K65 SDK, there's an example code that works with this feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 23:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Protection-from-a-bad-reflash/m-p/1070533#M1223</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-05-26T23:37:04Z</dc:date>
    </item>
  </channel>
</rss>

