<?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 Execute another program from a code in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991726#M1963</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;&lt;/P&gt;&lt;P&gt;I am using FRDM-KW36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of my applications, I need to&amp;nbsp;run a small code and check for a condition. If condition is satisfied, execute another program stored in P-Flash at location other than 0x0000_0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both codes are separate and stored in P-Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? If not, what can be the reasons and what can be the solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Nov 2019 09:37:38 GMT</pubDate>
    <dc:creator>pandurang</dc:creator>
    <dc:date>2019-11-30T09:37:38Z</dc:date>
    <item>
      <title>Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991726#M1963</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;&lt;/P&gt;&lt;P&gt;I am using FRDM-KW36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of my applications, I need to&amp;nbsp;run a small code and check for a condition. If condition is satisfied, execute another program stored in P-Flash at location other than 0x0000_0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both codes are separate and stored in P-Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? If not, what can be the reasons and what can be the solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Nov 2019 09:37:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991726#M1963</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-11-30T09:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991727#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is possible. This is for example what bootloaders do or a normal application can do too.&lt;/P&gt;&lt;P&gt;Just set up a function pointer and call it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 19:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991727#M1964</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2019-12-02T19:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991728#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I assumed the same. I implemented like this but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my first small code, I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void (* App2)(void) = (void (*)())(0x3C00);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main application is stored at 0x3C00.&lt;/P&gt;&lt;P&gt;When condition is satisfied,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done:&lt;/P&gt;&lt;P&gt;App2();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct? If yes, what can be the reason for not working? If no, what changes I require to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 04:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991728#M1965</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-12-03T04:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991729#M1966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working with a connectivity framework example ? How are you managing the different tasks and radio interruptions if so when you are executing that other code? Are you using some mutex or semaphore to achieve that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 15:47:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991729#M1966</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-12-03T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991730#M1967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Estephania,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you have replied by mistake to my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 07:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991730#M1967</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-12-06T07:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991731#M1968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ErichS"&gt;ErichS&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The given code-lines are not working. What I have to do to execute another program (code) stored in a flash from running code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:46:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991731#M1968</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-12-09T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991732#M1969</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;&lt;/P&gt;&lt;P&gt;Waiting for reply. Kindly give some clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 04:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991732#M1969</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-12-21T04:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991733#M1970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not reply by mistake, still if you which you can wait for another reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for you to consider that you need to take into account the wireless connectivity framework and the scheduler that is being used there to ensure that your program does not get lost. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991733#M1970</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-12-23T16:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991734#M1971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Estephania,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I thought it might not be relevant as you mentioned about wireless connectivity and my query is about to execute another code.&lt;/P&gt;&lt;P&gt;And thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, coming to your point, Yes, my next (main) application will have wireless connectivity framework. And what I am assuming is that I will load that main application with wireless connectivity at some location, let's say, 0x3C00 in flash. And in my first code, when condition is satisfied, I&amp;nbsp;need that code at 0x3C00 would be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pandurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2019 07:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991734#M1971</guid>
      <dc:creator>pandurang</dc:creator>
      <dc:date>2019-12-24T07:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute another program from a code</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991735#M1972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you can use the OTA (Over the air programming) example as a base as it does exactly what you need. It uploads the program from a wireless network and execute is. You can check and read more about this in the &lt;EM&gt;&lt;SPAN style="color: #008000;"&gt;BLE Application Developer's&lt;/SPAN&gt; &lt;/EM&gt;Guide which is available in the SDK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;EM style="color: #0000ff; "&gt;&amp;lt;installation path&amp;gt;\docs\wireless\Bluetooth&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the chapter &lt;EM&gt;&lt;SPAN style="color: #993366;"&gt;11.8 OTAP bootloader&lt;/SPAN&gt; &lt;/EM&gt;might have an answer to what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 17:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Execute-another-program-from-a-code/m-p/991735#M1972</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-12-31T17:19:43Z</dc:date>
    </item>
  </channel>
</rss>

