<?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: Add bootloader in LCF in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283353#M6636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi &lt;SPAN&gt;sebasira&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is probably related to the fact &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.bin includes some data prior to the address 0x410.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is visible in &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.s19 which starts at &lt;SPAN&gt;adress&lt;/SPAN&gt; 0x0000_0000. These are probably interrupt vectors starting at 0x0 to 0x198.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd suggest you to manually cut off the interrupt vectors (in case you don't use interrupts in the bootloader) from &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.bin file (I modified the file using hex editor - result is attached) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN&gt;and then try to rebuild/&lt;SPAN&gt;relink&lt;/SPAN&gt; the project using the updated binary file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please make sure your app. does not contain any object placed into .&lt;SPAN&gt;BootLoad&lt;/SPAN&gt; section because these will be placed at the beginning of memory segment "&lt;SPAN&gt;BootLoad&lt;/SPAN&gt;". Your &lt;SPAN&gt;bootloader&lt;/SPAN&gt; might be placed at different address in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 16:34:29 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2013-06-27T16:34:29Z</dc:date>
    <item>
      <title>Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283339#M6622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all of you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with CW v6.1 and MCF51QE. I've develop a bootloader and my firmware. Thery are two separate projects, but they have the same LCF.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is add the bootloader to the application, so I can flash them both only once.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, let's take a look at the LCF:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BootLoad&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00000000&amp;nbsp; , LENGTH = 0x000021F0&lt;/P&gt;&lt;P&gt;myflash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00002600, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;VectorReMap&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00002A00, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX)&amp;nbsp; : ORIGIN = 0x00002E00, LENGTH = 0x0001D200&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bootload&lt;/STRONG&gt; have the code for the bootloader&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myflash&lt;/STRONG&gt; stores non-volatile variables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VectorReMap&lt;/STRONG&gt; is vector table re-allocation&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code&lt;/STRONG&gt; it has my firmware&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As said before this is the same in both projects.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in the project where I'd like to merge the bootloader, I add the following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.text_bootload :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; INCLUDE bootloader.bin&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; } &amp;gt;&amp;gt; BootLoad&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the original bootloader's startup is at 0x410 (in the original project) but when I add the .bin file, I can see in the memory windows that routines are in another place (0x8EC) and 0x410 is blank. Why's that? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm breaking my head against the wall!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 22:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283339#M6622</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-07T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283340#M6623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;The &lt;SPAN style="font-size: 8pt;"&gt;INCLUDE&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;command let you include a binary file in the output file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCLUDE filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you include the bootloader directly using the INCLUDE instruction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCLUDE bootloader.bin&lt;/P&gt;&lt;P&gt;for my understanding it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some info about bootloader here:&lt;/P&gt;&lt;P&gt;AN2295: &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11 Merging Bootloader and Application images&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Forum: &lt;A _jive_internal="true" href="https://community.nxp.com/message/44789#44789"&gt;https://community.freescale.com/message/44789#44789&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 13:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283340#M6623</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2013-06-11T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283341#M6624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen AN2295 some time ago and I forget about it. According to the last pages of the AppNote, the merge is not the way I want it to be, instead it has a Windows application that merge two s19 files (one should be the bootloader and the other, the firmware itself).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you suggest on your previous post is to put the &lt;STRONG&gt;INCLUDE bootloader.bin&lt;/STRONG&gt; alone, outside any segment definition? I haven't try that, but I guess it is a good option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try that and let you know.&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;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 13:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283341#M6624</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-11T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283342#M6625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have lot of experiences with merging application.&lt;/P&gt;&lt;P&gt;INCLUDE feature can be used inside or outside a section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However most of time I see the bootloader merging code was inside sections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283342#M6625</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2013-06-11T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283343#M6626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INCLUDE is a Codewarrior linker command which can be used in any programmer that supported CW. PE-Micro Multilink supports this too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a example I just made under CW6.3. in lcf file, there is a line of code " INCLUDE code.bin ". after compiling code, you can see code.bin is included in generated s19 file, starting from 0x00000410.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 03:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283343#M6626</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-06-13T03:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283344#M6627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still can not accomplish what I want. I do as you suggested and then compare the s19 files of the bootloader alone and the app+bootlaoder. As you would see, the bootloader starts at 0x410, but when merging with INCLUDE the same code that the bootlaoder has at 0x410 it has it some bytes after 0x8E0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bootlaoder alone.s19:&lt;/P&gt;&lt;P&gt;S321&lt;STRONG&gt;00000410&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;4FEFFFE848EF&lt;/EM&gt;&lt;/SPAN&gt;430300044FF900800EF02C7C000000004E5600004BF9CE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;App + Bootloader.s19:&lt;/P&gt;&lt;P&gt;S321&lt;STRONG&gt;000008E0&lt;/STRONG&gt;00002D2800000410000000FC&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;4FEFFFE848EF&lt;/EM&gt;&lt;/SPAN&gt;430300044FF900800EF025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'l attach:&lt;/P&gt;&lt;P&gt;- the LCF file (where I put the include)&lt;/P&gt;&lt;P&gt;- the bootlaoder.bin&lt;/P&gt;&lt;P&gt;- the bootloader.s19 so you can compare it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need anything else, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 16:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283344#M6627</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-13T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283345#M6628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please send me the entire project folder in zip? i need reproduce it on my side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283345#M6628</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-06-14T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283346#M6629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Jun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll send it in a couple of hours (I don't have it right here, is in another office)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283346#M6629</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-14T11:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283347#M6630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry for the delay, but here it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, as I'm not authorized to share the complete project, I've made a blank project with the same LCF. For the problem is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, let me introduce you a little.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you would see, the first to run is the &lt;STRONG&gt;chkBootloader&lt;/STRONG&gt; routine. This is a simple&amp;nbsp; jump to the bootloader address (located at 0x410, or at least that's where it should be). The code executed there belongs to &lt;STRONG&gt;bootloader.bin&lt;/STRONG&gt;. Basically, it tests if the condition to enter bootloader is set. If not, it should continue executing the user code. For the bootloader, '&lt;EM&gt;continue executing the user code&lt;/EM&gt;' means to jump to &lt;STRONG&gt;StartupEntry&lt;/STRONG&gt;, inside VectorReMap.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned before, the problem is that the bootlaoder is not at 0x410. I also try a jump to 0x8XX (the value from 2 post ago) and nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to get to know the bootloader, search the web for &lt;STRONG&gt;zmfbootloader&lt;/STRONG&gt;. It's a serial bootloader for MCF51QE. I grab it and only modify the LCF file, wich is exactly the same as the one in the attached project, except for the INCLUDE statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 23:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283347#M6630</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-15T23:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283348#M6631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked your project bootloader.bin with UltraEdit, this is the content:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="bootloader_bin.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119476i7E6EEEF2F2105D29/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootloader_bin.JPG" alt="bootloader_bin.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in you lcf file, you use INCLUDE command to include the bin content start from 0x410. after build the project, it insert to 0x410 well. see the generated project.abs.s19 file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="app+bootload_s19.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119477i4C8EB078B47E8CE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="app+bootload_s19.JPG" alt="app+bootload_s19.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we can say that INCLUDE command has performed the function well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 08:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283348#M6631</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-06-17T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283349#M6632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Jun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, and how do you thnik I can solve my problem? Should I insert the bin file in another location so it would be EXACTLY as in the bootloader project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:12:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283349#M6632</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-17T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283350#M6633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is regarding the bootloader usage, pls summit a SR to Freescale support team.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 02:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283350#M6633</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-06-19T02:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283351#M6634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what a SR is. Can you tell me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was hoping someone here, in the community can help me or guide me to achieve what I want to to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 12:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283351#M6634</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-24T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283352#M6635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SebaS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SR is a Service Request.&lt;/P&gt;&lt;P&gt;The Service Request is the system used by Freescale Support team to investigate a problem.&lt;/P&gt;&lt;P&gt;You can post it via the Freescale Web site. &lt;/P&gt;&lt;P&gt;　 - Go to following URL: &lt;A href="http://www.freescale.com/TechSupport"&gt;http://www.freescale.com/TechSupport&lt;/A&gt;&lt;/P&gt;&lt;P&gt;　 - Click on Create a Service Request. You will come to a login page. &lt;/P&gt;&lt;P&gt;　 - If you are already registered with Freescale (using the Forum, subscribed to newsletter, ...) use your Freescale login and password. Otherwise, Click on "Register Now" to get registered.&lt;/P&gt;&lt;P&gt;　 - You can submit your request through the web from there. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 12:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283352#M6635</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2013-06-24T12:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283353#M6636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi &lt;SPAN&gt;sebasira&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is probably related to the fact &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.bin includes some data prior to the address 0x410.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is visible in &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.s19 which starts at &lt;SPAN&gt;adress&lt;/SPAN&gt; 0x0000_0000. These are probably interrupt vectors starting at 0x0 to 0x198.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd suggest you to manually cut off the interrupt vectors (in case you don't use interrupts in the bootloader) from &lt;SPAN&gt;bootloader&lt;/SPAN&gt;.bin file (I modified the file using hex editor - result is attached) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN&gt;and then try to rebuild/&lt;SPAN&gt;relink&lt;/SPAN&gt; the project using the updated binary file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please make sure your app. does not contain any object placed into .&lt;SPAN&gt;BootLoad&lt;/SPAN&gt; section because these will be placed at the beginning of memory segment "&lt;SPAN&gt;BootLoad&lt;/SPAN&gt;". Your &lt;SPAN&gt;bootloader&lt;/SPAN&gt; might be placed at different address in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283353#M6636</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2013-06-27T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283354#M6637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input! I think the same way about "the bootloader includes some data prior to the address 0x410.". I'd be very glad to try what you said, but I can't seem to find the attachment. Could you upload it again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don not have an hex editor, I'll get one if this change works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks one more time!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;SebaS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EDIT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;WOW! Now it has magically appear on your post. No need to upload it again.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283354#M6637</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-27T16:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283355#M6638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are almos there!!! So close!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the bin file you provide. If the condition to enter the bootloader is not met then it execute the user code and works like a charm. But If I'd like to enter in bootloading mode, then it crash. So I decided to step the ASM code until it crash and I've notice something very very odd that is causing the problem: INVALID OPCODE at assembler window.&lt;/P&gt;&lt;P&gt;So I load the bootloader alone to FLASH and then in memory window go to address 0x508 (where the invalid opcode was) and this is what I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@0x508: 00 80 00 00 &lt;STRONG&gt;07 00 46 C0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I load the code with the merged bin and at the same address, I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@0x508: 00 80 00 00 &lt;SPAN style="color: #ff0000;"&gt;00 00 05 0C 00 00 00 FC&lt;/SPAN&gt; &lt;STRONG&gt;07 00 46 C0 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Notice that 8 bytes (in red) are added before what should really be there and that is the INVALID OPCODE. I open the bin file you provide, with and Hex editor, and find out that those byte are part of the bin. (If you'd like to open the bin file, go to address $508 - $401 = $F8 and there you'll see it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those bytes seems like some "mark", pointing to 0x50C. Then I open the bootloader S19 file and found out:&lt;/P&gt;&lt;P&gt;S321000004F04FF900800EF02C7C000000004E5600004BF90080000440C00080000090&lt;/P&gt;&lt;P&gt;S321&lt;SPAN style="color: #ff0000;"&gt;0000050C&lt;/SPAN&gt;&lt;STRONG&gt;070046C0&lt;/STRONG&gt;61FF0000009661FF0000005C717C008041FA0004D1FC000095&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's going on here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me. Thank you very much!!!&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;SebaS&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283355#M6638</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-27T21:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283356#M6639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SebaS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is indeed weird issue. I've checked the bootloader.bin where I can see the problem too.&lt;/P&gt;&lt;P&gt;So seems to be a bin file generation issue (you are using pretty old version of CodeWarrior v6.1). The srecord does not match with the binary file. I'd suggest to try to use a s-record converter to generate .bin out of bootloader.s19&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use e.g. decoder tool. &lt;A href="http://mcuoneclipse.com/2012/09/27/s-record-intel-hex-and-binary-files/" title="http://mcuoneclipse.com/2012/09/27/s-record-intel-hex-and-binary-files/"&gt;S-Record, Intel Hex and Binary Files | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I'd recommend you to install the latest CodeWarrior classic available -&amp;gt; CodeWarrior for MCUs v6.3 (classic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;CodeWarrior for Microcontrollers (Classic IDE) - RS08/HC(S)08, ColdFire V1 Product Summary Page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help,&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 13:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283356#M6639</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2013-06-28T13:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283357#M6640</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;About the difference between the S19 file and the BIN, maybe they are not extacly the same because I was doing some changes from psot to post, while trying to solve this. So, I attached a rar file containing the S19 and the BIN file generated upon the same build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to check, but I think I also have CW v6.3 installed because some time ago I need to test a project wich requiered that version of codewarrior. If it is not installed, I will install it and try with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'll test the burner.exe from my CW v6.1 installation an see what happen. I'll let you know how this goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 13:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283357#M6640</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-28T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add bootloader in LCF</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283358#M6641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've installed CW v6.3 and I opened the bin file with the hex editor and it has this same issue, but in another address... I don't know how to explain it, I think it is better for you to see it, but I can tell that at address $FC those 8 bytes are also added but the other bytes 00 07 46 are at some bytes before. I'll attach the s19 and bin from CW v6.3, inside the rar file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm if CW v6.3 indeed has the same issue with the bin generation?&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the burner.exe, the .bin generated from .S19 is totally different and 'seems' fine. But I can not test it right now, because I'm not phisically where the device is, I'm controlling the PC remotely and I can not "push" the button to enter bootloading mode. Once I'm there I'll test it and post again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving me a hand with this!!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 14:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Add-bootloader-in-LCF/m-p/283358#M6641</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-06-28T14:20:46Z</dc:date>
    </item>
  </channel>
</rss>

