<?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: How to Download Boot and App Programs Simultaneously with CodeWarrior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751464#M19508</link>
    <description>&lt;P&gt;Resolved, thank you&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 00:54:49 GMT</pubDate>
    <dc:creator>L_lh</dc:creator>
    <dc:date>2023-11-03T00:54:49Z</dc:date>
    <item>
      <title>How to Download Boot and App Programs Simultaneously with CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1750809#M19504</link>
      <description>&lt;P&gt;I have already written the boot and app, and I want to test whether the boot can successfully jump to the app. However, I found that I cannot download both programs to flash at the same time, and they will be erased every time I download them&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 06:33:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1750809#M19504</guid>
      <dc:creator>L_lh</dc:creator>
      <dc:date>2023-11-02T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Download Boot and App Programs Simultaneously with CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751069#M19506</link>
      <description>&lt;P&gt;&amp;nbsp;Hi L_lh,&lt;/P&gt;
&lt;P&gt;the simplest way is adding s19 directly into the linker file (either bootloader into an application or the opposite way).&lt;BR /&gt;The first line in prm file will start with "HEXFILE" followed by the name of the s19 file (they should be copied into the same folder).&lt;/P&gt;
&lt;P&gt;For example:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;HEXFILE Simple_Serial_Bootloader_for_S12Z.s19&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You have to be sure that app and bl will not overlap themselves. So, besides of memory ranges, you have to manage also interrupt and reset vectors.&lt;BR /&gt;For more details, please look at Chapter 4.5 in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452" target="_blank"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-Serial-Bootloader-for-S12Z-AN-draft/ta-p/1126452&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The realocation of interrupt vector table is described in Chapter 3.4.&lt;BR /&gt;The example code should help you with more details.&lt;BR /&gt;The jump from bootloader to the application is part of &lt;EM&gt;Dispatcher.c&lt;/EM&gt; code in the &lt;EM&gt;Project_Settings\Startup_Code&lt;/EM&gt; folder.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope it helps you.&lt;BR /&gt;Best regards&lt;/P&gt;
&lt;P&gt;RadekS&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 10:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751069#M19506</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2023-11-02T10:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Download Boot and App Programs Simultaneously with CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751079#M19507</link>
      <description>&lt;P&gt;The second option is using S12Z Flash Programmer instead of "standard programming". It is a bit slower but offers almost full control on the programming procedure. You have to show a new window with&amp;nbsp;"Target Tasks" that is a bit hidden under "Other..." option.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RadekS_1-1698923372358.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248132iCEB23ACB5DD7FD27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RadekS_1-1698923372358.png" alt="RadekS_1-1698923372358.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From that point is rather pretty much straigtforward.&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4948.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4948.pdf&lt;/A&gt;&amp;nbsp;for more details.&lt;BR /&gt;&lt;BR /&gt;What missing in AN, is the configuration of Debug Configuration to perform selected Target Task.&lt;BR /&gt;If you will go to Debugger tab and there Download tab, you may uncheck the "Standard Download" and select your own Target Task&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RadekS_2-1698923710364.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248133iF56FC76FE6C22E2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RadekS_2-1698923710364.png" alt="RadekS_2-1698923710364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In such a case, the Flash Programmer will be executed directly by clicking on Debug button.&lt;BR /&gt;&lt;BR /&gt;I hope it helps you.&lt;BR /&gt;BR&lt;BR /&gt;RadekS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 11:17:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751079#M19507</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2023-11-02T11:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Download Boot and App Programs Simultaneously with CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751464#M19508</link>
      <description>&lt;P&gt;Resolved, thank you&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 00:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Download-Boot-and-App-Programs-Simultaneously-with/m-p/1751464#M19508</guid>
      <dc:creator>L_lh</dc:creator>
      <dc:date>2023-11-03T00:54:49Z</dc:date>
    </item>
  </channel>
</rss>

