<?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: Exact address for jumping to user application from bootloader in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Exact-address-for-jumping-to-user-application-from-bootloader/m-p/734506#M10063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Now I got something. Once it jumps to user application, in the assembler section it can be&amp;nbsp;seen&amp;nbsp;the execution of&amp;nbsp;system call&lt;SPAN style="color: #333333;"&gt; instruction&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction) which actually creating IVOR8 interrupt. One can see the below screen shot which is executing &lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction and therefor the IVOR8 interrupt occurs. Now I need to know the things to be performed in my bootloader application so that the execution of &lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction wont lead to IVOR8 trap. Some thing I&amp;nbsp;need to do with vector address shifting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="se_mr2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34331i0C932A0338C3E1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="se_mr2.JPG" alt="se_mr2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one understands my problem and comeback with solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Nov 2017 06:37:57 GMT</pubDate>
    <dc:creator>bjrajendra</dc:creator>
    <dc:date>2017-11-25T06:37:57Z</dc:date>
    <item>
      <title>Exact address for jumping to user application from bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Exact-address-for-jumping-to-user-application-from-bootloader/m-p/734505#M10062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I developed a bootloader using the &lt;A href="https://community.nxp.com/thread/375021"&gt;Serial bootloader example for MPC5634M.&lt;/A&gt;&amp;nbsp;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;I developed Flash bootloader in sector B0F0 and user application in B0F5.&lt;/SPAN&gt; My device is MPC5602P on CW2.9. and PE Micro debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;when I'm writing instructions in &lt;SPAN style="color: #ff0000;"&gt;__start file&lt;/SPAN&gt;, the ori instruction is not performing well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;step1. &amp;nbsp;lis&amp;nbsp;&amp;nbsp;&amp;nbsp; r8,0x0003&lt;BR /&gt;&amp;nbsp;step2.&amp;nbsp; ori&amp;nbsp;&amp;nbsp;&amp;nbsp; r8,r8,0xFFF8&amp;nbsp; &lt;BR /&gt;&amp;nbsp;step3. &amp;nbsp;lwz&amp;nbsp;&amp;nbsp;&amp;nbsp; r6,0(r9)&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;step1&lt;/SPAN&gt;. should update r8 with 0x00030000 it does exactly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;step2.&lt;/SPAN&gt; This should&amp;nbsp;update r8 register to&amp;nbsp;0x0003FFF8 but my r8 register updating with 0xFFFFFFF8&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;step3&lt;/SPAN&gt;. should load value of the address r8. As r8 is 0xFFFFFFF8 instead of 0x0003FFF8 it is showing an error of " Error in ONCE status register during instruction execution"&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone suggest any other operation I can do this perform this operation. and &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Is it necessary to add the __start file in my bootloadeer project.&lt;/STRONG&gt;&lt;/SPAN&gt; Instead I tried assembly operation&amp;nbsp;at the very start of&amp;nbsp;bootloader main() for jump to user application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Q2)&lt;/SPAN&gt;&amp;nbsp;The jumping to the address is working well in main() function.&amp;nbsp;&lt;SPAN style="color: #333333;"&gt;Now as per application note,&amp;nbsp;we need to jump to 0x00020004 address to start the user application. But if I do that IVOR8 trap is happening.&amp;nbsp;I also tried jumping to very first address 0x00020000, still the error is same. &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;My only problem is the finding the right address to jump to user application.&lt;/STRONG&gt;&lt;/SPAN&gt; To&amp;nbsp;which address location we&amp;nbsp;need to jump to execute the exact user application&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching here the&amp;nbsp;sequence of jump instructions images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/skins/images/5F167D8582A66166B7CAC865F1472DC7/responsive_peak/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly do the needful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;BJ Rajendranath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 06:17:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Exact-address-for-jumping-to-user-application-from-bootloader/m-p/734505#M10062</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-11-24T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exact address for jumping to user application from bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Exact-address-for-jumping-to-user-application-from-bootloader/m-p/734506#M10063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Now I got something. Once it jumps to user application, in the assembler section it can be&amp;nbsp;seen&amp;nbsp;the execution of&amp;nbsp;system call&lt;SPAN style="color: #333333;"&gt; instruction&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction) which actually creating IVOR8 interrupt. One can see the below screen shot which is executing &lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction and therefor the IVOR8 interrupt occurs. Now I need to know the things to be performed in my bootloader application so that the execution of &lt;SPAN style="color: #ff0000;"&gt;se_sc&lt;/SPAN&gt; instruction wont lead to IVOR8 trap. Some thing I&amp;nbsp;need to do with vector address shifting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="se_mr2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34331i0C932A0338C3E1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="se_mr2.JPG" alt="se_mr2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one understands my problem and comeback with solution,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 06:37:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Exact-address-for-jumping-to-user-application-from-bootloader/m-p/734506#M10063</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2017-11-25T06:37:57Z</dc:date>
    </item>
  </channel>
</rss>

