<?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 Read bootloader version from the application in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598922#M72</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know how to read the version of the bootloader from the bootloaded application. &amp;nbsp;Is there a location in flash that I can refer to from the loaded app to read the bootloader version?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a bit of context, we are looking to add test commands into our main firmware application to read out the bootloader version loaded into the device without actually starting the bootloader. &amp;nbsp;Is this possible?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project is using kboot v1.3.0 and SDK v 1.1 on a K22F512xxx12 device.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 17:40:31 GMT</pubDate>
    <dc:creator>chriskeeser</dc:creator>
    <dc:date>2017-02-24T17:40:31Z</dc:date>
    <item>
      <title>Read bootloader version from the application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598922#M72</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know how to read the version of the bootloader from the bootloaded application. &amp;nbsp;Is there a location in flash that I can refer to from the loaded app to read the bootloader version?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a bit of context, we are looking to add test commands into our main firmware application to read out the bootloader version loaded into the device without actually starting the bootloader. &amp;nbsp;Is this possible?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project is using kboot v1.3.0 and SDK v 1.1 on a K22F512xxx12 device.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 17:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598922#M72</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-02-24T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read bootloader version from the application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598923#M73</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris Keeser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't know where you get the kboot1.3.0, as I know, we just have kboot1.2.0 and kboot2.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; K22Fx512xxx12 chip don't have the ROM bootloader, so it uses the flash bootloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normally, customer can read the bootloader version with blhost get-property command:&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/16019i2AED206C29A4A37B/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;but if you want to read the bootloader version in the app directly, you can define the kboot version in the specific flash address.&lt;/P&gt;&lt;P&gt;you can find the version in the target_config&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/16067i01631B4EC2D2179C/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;If you want to read the bootloader reversion, please define the _target_version_constants in the specific flash address, then you can read that flash address to get the reversion directly in your app code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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>Thu, 09 Mar 2017 09:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598923#M73</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-09T09:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read bootloader version from the application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598924#M74</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inherited the bootloader from a team member who is no longer with the company, and they had modified the version to 1.3.0. &amp;nbsp;I realized a few days ago that this version doesn't match any official version. &amp;nbsp;It appears to be based on v1.1.0 of the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had hoped that the version would be present in a fixed flash location by default since I am trying to minimize the modifications to the bootloader to make it easy to upgrade in the future. &amp;nbsp;Thanks for the advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if the KBoot team watches this forum, but that might be a good feature to add (version information in fixed location) so that future projects can take advantage of reading the bootloader version from the app without modifying the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598924#M74</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-03-09T19:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read bootloader version from the application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598925#M75</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris Keeser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your advice, I will transfer your suggestion to our KBOOT team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But, to the flash bootloader, customer really can define the version bytes in the fixed flash address by themselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Normally, official code is just give an example, in the practical usage, customer can modify it by themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&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, 13 Mar 2017 10:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Read-bootloader-version-from-the-application/m-p/598925#M75</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-13T10:22:38Z</dc:date>
    </item>
  </channel>
</rss>

