<?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: BAF configuration in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500547#M2832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 10:16:11 GMT</pubDate>
    <dc:creator>vladstoica</dc:creator>
    <dc:date>2016-05-10T10:16:11Z</dc:date>
    <item>
      <title>BAF configuration</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500545#M2830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making a firmware update in flash memory of MPC5748G, and I am writing in a different sector a new startup code, text code, etc. I want to modify the BAF configuration so after a reset it will start from the new sector and not from the old one. What registers should I modify for that?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 11:17:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500545#M2830</guid>
      <dc:creator>vladstoica</dc:creator>
      <dc:date>2016-05-05T11:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAF configuration</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500546#M2831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is copied from reference manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57467i5CFA643D3ADA9661/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57434i30F7590B09EDE352/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, it is necessary to place a constant to one of addresses shown above. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma ghs section rodata=".boot_header"&lt;/P&gt;&lt;P&gt;const uint32_t bootheader = 0x005A0002; // e200z4a will start execution&lt;/P&gt;&lt;P&gt;const uint32_t z2_reset_vector = 0;&lt;/P&gt;&lt;P&gt;const uint32_t cnfg1_bits = 0;&lt;/P&gt;&lt;P&gt;const uint32_t cnfg2_bits = 0;&lt;/P&gt;&lt;P&gt;const uint32_t startAddress = (uint32_t) _start; //start address of e200z4a&lt;/P&gt;&lt;P&gt;const uint32_t z4b_reset_vector = 0;&lt;/P&gt;&lt;P&gt;const uint32_t reserved_for_future_use = 0;&lt;/P&gt;&lt;P&gt;#pragma ghs section rodata=default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are more valid boot headers, the first one is used. If you want to make other boot header active, it is necessary either erase the previous one or jump to specified start address of second application by your software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 10:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500546#M2831</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2016-05-06T10:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAF configuration</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500547#M2832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 10:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAF-configuration/m-p/500547#M2832</guid>
      <dc:creator>vladstoica</dc:creator>
      <dc:date>2016-05-10T10:16:11Z</dc:date>
    </item>
  </channel>
</rss>

