<?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 Error building projects in Kinetis Bootloader V2 in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610674#M133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to compile projects from NXP_Kinetis_Bootloader_2_0_0.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imported projects from&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;“\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\kds\&lt;/EM&gt;”&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the Kinetis Design Studio and noticing that there are three projects under every target board:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Flashloader&lt;/LI&gt;&lt;LI&gt;Flashloader_loader&lt;/LI&gt;&lt;LI&gt;Tower_bootloader&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: .25in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Upon doing clean and Build all, there is error for “Flashloader” and “Flashloader_loader”.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Tower_bootloader is good and output file is being generated.&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;I have captured the error below.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;fatal error: release/flashloader_image.c: No such file or directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;make: *** [src/bootloader/src/bl_flashloader.o] Error 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;make: Target 'all' not remade because of errors.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;recipe for target 'post-build' failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makefile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;recipe for target 'src/bootloader/src/bl_flashloader.o' failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Tried to compile the same projects in IAR. &amp;nbsp;I am getting the same error as above.&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Please find the screenshot attached.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 10:05:27 GMT</pubDate>
    <dc:creator>srinivasa_raow</dc:creator>
    <dc:date>2017-02-07T10:05:27Z</dc:date>
    <item>
      <title>Error building projects in Kinetis Bootloader V2</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610674#M133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to compile projects from NXP_Kinetis_Bootloader_2_0_0.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imported projects from&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;“\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\kds\&lt;/EM&gt;”&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the Kinetis Design Studio and noticing that there are three projects under every target board:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Flashloader&lt;/LI&gt;&lt;LI&gt;Flashloader_loader&lt;/LI&gt;&lt;LI&gt;Tower_bootloader&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: .25in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Upon doing clean and Build all, there is error for “Flashloader” and “Flashloader_loader”.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Tower_bootloader is good and output file is being generated.&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;I have captured the error below.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;fatal error: release/flashloader_image.c: No such file or directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;make: *** [src/bootloader/src/bl_flashloader.o] Error 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;make: Target 'all' not remade because of errors.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;recipe for target 'post-build' failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makefile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;recipe for target 'src/bootloader/src/bl_flashloader.o' failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Tried to compile the same projects in IAR. &amp;nbsp;I am getting the same error as above.&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0in;"&gt;Please find the screenshot attached.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610674#M133</guid>
      <dc:creator>srinivasa_raow</dc:creator>
      <dc:date>2017-02-07T10:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error building projects in Kinetis Bootloader V2</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610675#M134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have move one step ahead. I have not installed python. Now I have installed python V2.7.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Upon compiling the code again, I have below observation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under project settings, post build command is as below:&lt;BR /&gt;cmd /c $PROJ_DIR$\..\..\..\..\bin\create_flashloader_image.bat $PROJ_DIR$ Debug&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;create_flashloader_image.bat (C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\bin) has below lines of code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. rem Pass in full path and Release|Debug to iar project directory&lt;BR /&gt;2. cd /d %1&lt;BR /&gt;3. ielftool --bin output\%2\flashloader.elf flashloader.bin&lt;BR /&gt;4. python ..\..\..\..\bin\create_fl_image.py output\%2\flashloader.elf flashloader.bin output\%2\flashloader_image.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 4 of this file is giving me the error. If I comment it, build is success but purpose is not served.&lt;/P&gt;&lt;P&gt;I think line 4 is creating a debug folder and adding some files to it and this is input for flashloader_loader project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find screenshot of the error attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="python_script_error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13010iB47F5D584E7D033B/image-size/large?v=v2&amp;amp;px=999" role="button" title="python_script_error.png" alt="python_script_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610675#M134</guid>
      <dc:creator>srinivasa_raow</dc:creator>
      <dc:date>2017-02-07T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error building projects in Kinetis Bootloader V2</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610676#M135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically "create_fl_image.py" file is trying to create a file "debug/flashloader_image.c" and its usage is below:&lt;/P&gt;&lt;P&gt;# usage: create_fl_image.py &amp;lt;elffile&amp;gt; &amp;lt;binfile&amp;gt; &amp;lt;cfile&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the python insllation path to environment variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replaced relative path with absolute path as below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;python C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\bin\create_fl_image.py C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\output\Debug\flashloader.elf C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\flashloader.bin C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\output\Debug\flashloader_image.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I am having the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 12:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610676#M135</guid>
      <dc:creator>srinivasa_raow</dc:creator>
      <dc:date>2017-02-07T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error building projects in Kinetis Bootloader V2</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610677#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a workaround for this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Executed below command from command prompt as shown below:&lt;/P&gt;&lt;P&gt;C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\bin&amp;gt;C:\Python27\python create_fl_image.py C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\output\Debug\flashloader.elf C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\flashloader.bin C:\Bootloader\NXP_Kinetis_Bootloader_2_0_0\targets\MK22F12810\iar\flashloader\output\Debug\flashloader_image.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="command_prompt_working.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13053iC79F6C1EA160051E/image-size/large?v=v2&amp;amp;px=999" role="button" title="command_prompt_working.png" alt="command_prompt_working.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flashloader_image.c was generated as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rest all is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610677#M136</guid>
      <dc:creator>srinivasa_raow</dc:creator>
      <dc:date>2017-02-07T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error building projects in Kinetis Bootloader V2</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610678#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasa Rao Wunnimani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to use flashload and flashload_load file, you need to build the flashloader at first, then build flashloader_loader, and download it to the board.&lt;/P&gt;&lt;P&gt;This bootloader will copy teh flashloader to the RAM, then updated the application code, after you updated the app code, the flashloader will be lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The build sequence is very important.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or you can use the tower bootloader directly, it don't need to use the flashloader project or the flashloader_loader project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&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>Tue, 14 Feb 2017 09:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Error-building-projects-in-Kinetis-Bootloader-V2/m-p/610678#M137</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-02-14T09:20:21Z</dc:date>
    </item>
  </channel>
</rss>

