<?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 How can I program a bootloader binary file during debug of a major application ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-program-a-bootloader-binary-file-during-debug-of-a/m-p/814987#M49417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I program a bootloader binary file during debug of major application ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop a bootloader for a K64 product, but I would like to insert it on the major application.&lt;/P&gt;&lt;P&gt;In a way that, when I make a debug/release of this major application, the KDS insert first, the binary (or .s19) file in the begining of flash memory and after it, insert the major program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when a boot occur, the bootloader runs first and in the sequence... the major application will run in sequence, after bootloader do not detect some firmware upgrade ( on a external flash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today.&lt;/P&gt;&lt;P&gt;My major application loads the new application to a external flash memory and after it&lt;/P&gt;&lt;P&gt;I open/run bootloader application that look to this external flash memory, see the "new" application&lt;/P&gt;&lt;P&gt;and loads it to the right position on K64 flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard and generate some dificults on production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So. how can I insert the binary bootloader file (In the project explorer for example) and load it into flash memory together ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I a have to edit some launch settings or init file and include the name of a bootloader binary file.&lt;/P&gt;&lt;P&gt;But I do not know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is to not to do all this stages that I make today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rodrigo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2018 12:20:33 GMT</pubDate>
    <dc:creator>nexcode</dc:creator>
    <dc:date>2018-12-19T12:20:33Z</dc:date>
    <item>
      <title>How can I program a bootloader binary file during debug of a major application ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-program-a-bootloader-binary-file-during-debug-of-a/m-p/814987#M49417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I program a bootloader binary file during debug of major application ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop a bootloader for a K64 product, but I would like to insert it on the major application.&lt;/P&gt;&lt;P&gt;In a way that, when I make a debug/release of this major application, the KDS insert first, the binary (or .s19) file in the begining of flash memory and after it, insert the major program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when a boot occur, the bootloader runs first and in the sequence... the major application will run in sequence, after bootloader do not detect some firmware upgrade ( on a external flash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today.&lt;/P&gt;&lt;P&gt;My major application loads the new application to a external flash memory and after it&lt;/P&gt;&lt;P&gt;I open/run bootloader application that look to this external flash memory, see the "new" application&lt;/P&gt;&lt;P&gt;and loads it to the right position on K64 flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard and generate some dificults on production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So. how can I insert the binary bootloader file (In the project explorer for example) and load it into flash memory together ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I a have to edit some launch settings or init file and include the name of a bootloader binary file.&lt;/P&gt;&lt;P&gt;But I do not know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is to not to do all this stages that I make today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rodrigo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:20:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-program-a-bootloader-binary-file-during-debug-of-a/m-p/814987#M49417</guid>
      <dc:creator>nexcode</dc:creator>
      <dc:date>2018-12-19T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I program a bootloader binary file during debug of a major application ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-program-a-bootloader-binary-file-during-debug-of-a/m-p/814988#M49418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rodrigo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I have understood correctly you have developed something similar to the uTasker "Bare-Minimum" loader so see this document that may help with some practical details: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTasker_BM_Loader.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_BM_Loader.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The way that the loader is used is to build the loader and then the application and combine the outputs images to a single binary or SREC, which is the loaded to the board as a single image during production (see the uTasker utilities &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fforum%2Findex.php%3Ftopic%3D1445.0" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/index.php?topic=1445.0&lt;/A&gt;&lt;SPAN&gt; for combining files).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When developing it is usual to first program either of the two (which will not operate alone) and then program the second one that you would like to debug. Some IDEs allow this because they only delete the Flash areas that the code will be loaded to but some don't because they will simply delete all memory and thus trash the first one. IAR, for example, is easy to work with. For less flexible IDE/debuggers you can load the combined file and then "connect" to the code with the debugger (without loading) and then debug from this point.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K64:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K64F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTEENSY_3.5.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.5.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FHexiwear-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/Hexiwear-K64F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;BM-Loaders: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTasker_BM_Loader.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_BM_Loader.pdf&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Serial loaders: Serial Loader: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerSerialLoader.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-program-a-bootloader-binary-file-during-debug-of-a/m-p/814988#M49418</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-12-19T15:24:09Z</dc:date>
    </item>
  </channel>
</rss>

