<?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>S12 / MagniV Microcontrollers中的主题 Re: merge Bootloader and application</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957546#M16709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mojtaba,&lt;/P&gt;&lt;P&gt;The bootloader and application code must be located at different address areas. Any Flash sector which share bootloader and application code is potential source of issue. Therefore bootloader-application border must be aligned by flash sector size.&lt;/P&gt;&lt;P&gt;So, there should not be also any overlapping in s-recod files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every s-record line contains S record type identifier, length, address, data, and CRC.&amp;nbsp;&lt;A class="link-titled" href="https://en.wikipedia.org/wiki/SREC_(file_format)" title="https://en.wikipedia.org/wiki/SREC_(file_format)"&gt;SREC (file format) - Wikipedia&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S-Rec files are text files. You may simply copy all S1/S2 lines (starting by “S1” or “S2”) from the bootloader s19 file into application s19 file (or opposite).&lt;/P&gt;&lt;P&gt;You may ignore all lines except S1/S2 - like lines starting with S0 (file header) or S9 (at end of file).&lt;/P&gt;&lt;P&gt;Note: The S3&amp;nbsp; format is not relevant for 16bit MCUs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is overlapping at addresses with reset vector(s) use lines from bootloader code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please check AN4258 for more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2019 14:29:32 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2019-10-10T14:29:32Z</dc:date>
    <item>
      <title>merge Bootloader and application</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543#M16706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi guys,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I have a B&lt;SPAN&gt;ootloader&amp;nbsp;and application files in&amp;nbsp;&lt;/SPAN&gt;project with part of S912G128MLL, and&amp;nbsp;I want to merge and write them&amp;nbsp;in the flash, Please tell me where to start.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;TNX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 05:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543#M16706</guid>
      <dc:creator>mojtaba_al22</dc:creator>
      <dc:date>2019-10-09T05:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: merge Bootloader and application</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957544#M16707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mojtaba,&lt;/P&gt;&lt;P&gt;There are more ways how to do it.&lt;/P&gt;&lt;P&gt;The simplest is method is direct editing *.s19 (*.sx) file and copy flash content from one file into another.&lt;/P&gt;&lt;P&gt;You may also use &lt;A _jive_internal="true" href="https://community.nxp.com/message/1024999" rel="nofollow noopener noreferrer" target="_blank"&gt;SRecCvt&lt;/A&gt; tool for sorting data in the final S-record file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next option is including your bootloader S-Rec file into your application project (or opposite) by simple line in *.prm linker file.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;HEXFILE bootloader&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;s19‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For more details, please check chapter 8 in &lt;A href="https://www.nxp.com/docs/en/application-note/AN4258.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;AN4258&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details regarding *.prm linker file,&amp;nbsp;please follow "c:\Freescale\CW MCU v11.0\MCU\Help\PDF\MCU_Build_Tools_Utilities.pdf" document.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957544#M16707</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2019-10-09T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: merge Bootloader and application</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957545#M16708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Radek,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;*/&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;The simplest is method is direct editing *.s19 (*.sx) file and copy flash content from one file into another.&lt;/EM&gt;&lt;/STRONG&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If it's possible please explain this method more.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for your post.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Mojtaba&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 05:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957545#M16708</guid>
      <dc:creator>mojtaba_al22</dc:creator>
      <dc:date>2019-10-10T05:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: merge Bootloader and application</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957546#M16709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mojtaba,&lt;/P&gt;&lt;P&gt;The bootloader and application code must be located at different address areas. Any Flash sector which share bootloader and application code is potential source of issue. Therefore bootloader-application border must be aligned by flash sector size.&lt;/P&gt;&lt;P&gt;So, there should not be also any overlapping in s-recod files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every s-record line contains S record type identifier, length, address, data, and CRC.&amp;nbsp;&lt;A class="link-titled" href="https://en.wikipedia.org/wiki/SREC_(file_format)" title="https://en.wikipedia.org/wiki/SREC_(file_format)"&gt;SREC (file format) - Wikipedia&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S-Rec files are text files. You may simply copy all S1/S2 lines (starting by “S1” or “S2”) from the bootloader s19 file into application s19 file (or opposite).&lt;/P&gt;&lt;P&gt;You may ignore all lines except S1/S2 - like lines starting with S0 (file header) or S9 (at end of file).&lt;/P&gt;&lt;P&gt;Note: The S3&amp;nbsp; format is not relevant for 16bit MCUs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is overlapping at addresses with reset vector(s) use lines from bootloader code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please check AN4258 for more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957546#M16709</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2019-10-10T14:29:32Z</dc:date>
    </item>
  </channel>
</rss>

