<?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: why I can't run the application through the application start application? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726948#M9817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you for your&amp;nbsp; answer.&amp;nbsp; I have&amp;nbsp; realized run application through&amp;nbsp; application start&amp;nbsp; address in MCU " MPC5744P "by&lt;/P&gt;&lt;P&gt;the way as you tell me . But&amp;nbsp; I&amp;nbsp; do not realize it in the MCU "MPC5634m" ，when Bootloader run "app_entry()" , the&amp;nbsp;MCU is reset.&lt;/P&gt;&lt;P&gt;Do you know whether mpc56xx&amp;nbsp; can change&amp;nbsp; into other application through application&amp;nbsp; start address&amp;nbsp; when Bootloader is running ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Mar 2018 13:48:57 GMT</pubDate>
    <dc:creator>1329306846</dc:creator>
    <dc:date>2018-03-24T13:48:57Z</dc:date>
    <item>
      <title>why I can't run the application through the application start application?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726946#M9815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone !&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Rencently I‘m learning Bootloader ， when I&amp;nbsp; run&amp;nbsp; the bootlaoder&amp;nbsp; and&amp;nbsp; have download&amp;nbsp; the other application，&lt;/P&gt;&lt;P&gt;I want to run the other application ，but I can't&amp;nbsp; realize it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Bootlaoder Lcf :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/400i0022507E0BBA5F1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Application Lcf&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/439i7118F9C3F9A738B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And t I use&amp;nbsp; "&lt;STRONG&gt;app_entry ();&amp;nbsp;&lt;/STRONG&gt;"&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;to change bootlaoder to application :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define APP_StartAddr (*(uint32_t*)0x00004004)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void app_entry(void)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; (*(void (*)(void))(APP_StartAddr))();&amp;nbsp; &amp;nbsp;/*run the function via function pointer convert with a certain address*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while(1);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*stop here for anyhow*/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;Really hope someone can give me some help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 12:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726946#M9815</guid>
      <dc:creator>1329306846</dc:creator>
      <dc:date>2018-03-22T12:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: why I can't run the application through the application start application?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726947#M9816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should change the address to &lt;STRONG&gt;0x4000&lt;/STRONG&gt; instead of &lt;STRONG&gt;0x4004&lt;/STRONG&gt; &lt;BR /&gt;If that didn't work for you then this should do the job:&lt;BR /&gt;&lt;BR /&gt;First define a typedef for the app_entry function as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;typedef void (* TAppEntry)(void);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you just have to declare the app_entry of that type and set the address value&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;TAppEntry app_entry = (TAppEntry) (*((unsigned int *) 0x00004004));&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;and then call the function simply&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;app_entry();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726947#M9816</guid>
      <dc:creator>rachedguerafi</dc:creator>
      <dc:date>2018-03-22T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: why I can't run the application through the application start application?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726948#M9817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you for your&amp;nbsp; answer.&amp;nbsp; I have&amp;nbsp; realized run application through&amp;nbsp; application start&amp;nbsp; address in MCU " MPC5744P "by&lt;/P&gt;&lt;P&gt;the way as you tell me . But&amp;nbsp; I&amp;nbsp; do not realize it in the MCU "MPC5634m" ，when Bootloader run "app_entry()" , the&amp;nbsp;MCU is reset.&lt;/P&gt;&lt;P&gt;Do you know whether mpc56xx&amp;nbsp; can change&amp;nbsp; into other application through application&amp;nbsp; start address&amp;nbsp; when Bootloader is running ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 13:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726948#M9817</guid>
      <dc:creator>1329306846</dc:creator>
      <dc:date>2018-03-24T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: why I can't run the application through the application start application?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726949#M9818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Can I make friend with you? I recently &amp;nbsp;use MPC5744P to develop bootloader. My qq:1931181009.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 03:12:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/why-I-can-t-run-the-application-through-the-application-start/m-p/726949#M9818</guid>
      <dc:creator>tony_huang</dc:creator>
      <dc:date>2018-03-27T03:12:17Z</dc:date>
    </item>
  </channel>
</rss>

