<?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>MCU BootloaderのトピックRe: K22 Flashloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681405#M385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gordy Carlson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) What could cause the flashloader/flashtool to erase itself upon an application flash?&lt;/P&gt;&lt;P&gt;== If your application code have the code function which will erase the bootloader flash address.&amp;nbsp; Actually, it still determined by your code function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;2.) Are there ways to verify the flash after an update to see if the bootloader is still present?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;== You can read the botloader flash area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;Actually, if you are afraid of miss erase of the flash bootloader, you can use the K22 flash protection function to protect the flash bootloader area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;More details, please read the reference manual, flash protection chapter.&lt;BR /&gt; 3.) What could cause the bootloader to automatically jump to application code without a jump to application command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;== It is determined by your flash bootloader code. If the application flash area is valid, after reset, the bootloader code is timeout, it will jump to the application area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 05:19:02 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-06-12T05:19:02Z</dc:date>
    <item>
      <title>K22 Flashloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681404#M384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My customer and I are working with the K22 Flashloader,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; 1.) What could cause the flashloader/flashtool to erase itself upon an application flash?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;2.) Are there ways to verify the flash after an update to see if the bootloader is still present?&lt;BR /&gt; 3.) What could cause the bootloader to automatically jump to application code without a jump to application command?&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;We are using the flashloader example with slight modifications which set up a few GPIOs for buttons, but don't think these are impacting it's operation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gordy Carlson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 18:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681404#M384</guid>
      <dc:creator>gcarlson</dc:creator>
      <dc:date>2017-06-08T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: K22 Flashloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681405#M385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gordy Carlson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) What could cause the flashloader/flashtool to erase itself upon an application flash?&lt;/P&gt;&lt;P&gt;== If your application code have the code function which will erase the bootloader flash address.&amp;nbsp; Actually, it still determined by your code function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;2.) Are there ways to verify the flash after an update to see if the bootloader is still present?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;== You can read the botloader flash area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;Actually, if you are afraid of miss erase of the flash bootloader, you can use the K22 flash protection function to protect the flash bootloader area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;More details, please read the reference manual, flash protection chapter.&lt;BR /&gt; 3.) What could cause the bootloader to automatically jump to application code without a jump to application command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;== It is determined by your flash bootloader code. If the application flash area is valid, after reset, the bootloader code is timeout, it will jump to the application area.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 05:19:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681405#M385</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-12T05:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: K22 Flashloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681406#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;We will&amp;nbsp; implement the flash protection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;Some additional comments...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;1.) There's no function in our application code to erase the flash address.&amp;nbsp; Itt is still a mystery why it does, perhaps implementing the flash protection will help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;2.) Do you have a recommendation on how to read the bootloader flash area? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;3.) In the example bootloader code that I used I commented out all the jump to application code so it should stick in bootloader. But, it still goes to the application.&amp;nbsp; Still trying to figure out why this happens, doesn't follow generation common sense for how the bootloader should work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;Gordy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681406#M386</guid>
      <dc:creator>gcarlson</dc:creator>
      <dc:date>2017-06-12T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: K22 Flashloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681407#M387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gordy Carlson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;1.) There's no function in our application code to erase the flash address.&amp;nbsp; Itt is still a mystery why it does, perhaps implementing the flash protection will help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&amp;nbsp;== Maybe the poor working condition may caused this problem, for example, the EMI is very larger.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, in the application, customer normally will protect the bootloader area, just to make sure the bootloader code won't be erased or wrote.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&amp;nbsp;&amp;nbsp; So, still as what I am recommend you, to protect the flash bootloader area.&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;2.) Do you have a recommendation on how to read the bootloader flash area? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&amp;nbsp;== Read? Just read the flash address is OK, very simple! Use code, or JLINK command, take an example: mem 0x40c,0x10&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&amp;nbsp; 0X40C is the flash address you want to read, 0X10 is the length you want to get from 0X40C.&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;3.) In the example bootloader code that I used I commented out all the jump to application code so it should stick in bootloader. But, it still goes to the application.&amp;nbsp; Still trying to figure out why this happens, doesn't follow generation common sense for how the bootloader should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;== It may check the application code area, if the application code area, which you want to jump is not null(0xff),it will do the jumping.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; So, you can try to erase all the chip, then download the flashloader, and try again, whether it can jump to the application area again?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;Any question, just let me know!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/K22-Flashloader/m-p/681407#M387</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-14T04:53:48Z</dc:date>
    </item>
  </channel>
</rss>

