<?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: Bootloader mqx k64f in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453968#M15258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I find this post very interesting.&lt;/P&gt;&lt;P&gt;Do you know if it is possible to use the same part of code for the bootloader and for the application about RCTS stack(FTP server,...)?&lt;/P&gt;&lt;P&gt;It will be nice to use MQX &amp;amp; RCTS as bootloader but the space needed is important =&amp;gt; using only one rcts stack for bootloader and application can save space...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 10:44:01 GMT</pubDate>
    <dc:creator>aureliengrange</dc:creator>
    <dc:date>2016-03-22T10:44:01Z</dc:date>
    <item>
      <title>Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453964#M15254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i use frdmk64f with cw 10.6, mqx 4.1.&lt;/P&gt;&lt;P&gt;i want to do a bootloader using mqx OS. my question is: before i jump from the bootloader to the application how can i deinitialize (or close) mqx (or other peripheral automaticallhy started)?&lt;/P&gt;&lt;P&gt;i use the same code for application and the bootloader: the example gpio modified. the different is: &lt;/P&gt;&lt;P&gt;application: started from address 0x000C0000, use vector_ram, and blinking led1&lt;/P&gt;&lt;P&gt;bootloader: started from address 0x00000000, use vector_rom, blinking led2 and do the jump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jump function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14359416843896503 jive_macro_code jive_text_macro" data-renderedposition="176_8_1232_208" jivemacro_uid="_14359416843896503"&gt;&lt;P&gt;extern void preparation_application(void)&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_VTOR = 0x1fff0000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("cpsid i");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_disable();//i dont know which is better to use for interrupt disabling&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extern void start_application(unsigned long app_link_location)&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm(" ldr sp, [r0,#0]"); // load the stack pointer value from the program's reset vector&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("mov lr, #0xffffffff");//asm("mov sp, r0");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm(" ldr pc, [r0,#4]");// load the program counter value from the program's reset vector to cause operation to continue from there&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know that i set the linker file for the application correctly because if i build a simple file with only the istruction for the jump i can se that the application run well.&lt;/P&gt;&lt;P&gt;the problem is when i run the bootloader code. in debug mode i can see that the jump is done correctly. load the sp and the pc from the correct location. but at certain point the code come back to the bootloader and run in this infinite loop. &lt;/P&gt;&lt;P&gt;so i think that i don't do correctly the deinitialization of the bootloader before the jump.&lt;/P&gt;&lt;P&gt;i try to use the function _mqx_exit(0) but somethings go wrong and it do not come back at the main application that call _mqx().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 16:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453964#M15254</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2015-07-03T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453965#M15255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Emanuele, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;I want to believe that this appnote can be a guideline for developing your bootloader:&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;A class="jive-link-external-small" data-content-finding="Community" href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4367.pdf" style="padding: 0 calc(12px + 0.35ex) 0 0; font-weight: inherit; font-style: inherit; font-size: 14px; font-family: inherit; color: #017bba;"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4367.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;This appnote describes how to add the FNET bootloader to Kinetis projects. There is a section that includes adding it to the MQX linker which is the section that I believe you will find useful.&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;In addition please check the below threads&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;A href="https://community.nxp.com/thread/328287"&gt;A bootloader via MQX RTCS&lt;/A&gt; &lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;A href="https://community.nxp.com/thread/108170"&gt;MQX Bootloader&lt;/A&gt; &lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;Please let me know if this helps!!&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; text-align: left; text-indent: 0px;"&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Regards&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;BR /&gt;Sol&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 17:50:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453965#M15255</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-07-03T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453966#M15256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you soledad for the answer.&lt;/P&gt;&lt;P&gt;i read this appnote but it explanes just how to set the linker file to write the app in the correct part of the flash and the vector_ram setting.&lt;/P&gt;&lt;P&gt;i found on the web the latest version of the FNET and try to port it in an example application for cwc10.6 frdmk64f. but i could not, i hoped to found an example application that it integrates the FNET system but i don't found it. &lt;/P&gt;&lt;P&gt;so i try to use an example application of mqx and try to do, inside it, a jump to the application i wrote in the middle of the flash. but i think i had problem with mqx deinitialization of the bootloader.&lt;/P&gt;&lt;P&gt;used somebody mqx for a bootloader?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 08:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453966#M15256</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2015-07-06T08:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453967#M15257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, i found the problem. the application try to disable the hardware watchdog for the second time and then restart. the first time the bootloader disabled it. so i commented that function in the init hardware bsp file of the application.&lt;/P&gt;&lt;P&gt;therefore the application stop in another initialization routine. i seen in debug mode that, after the jump, MSP has a wrong valour. i solved it adding these lines to the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14362706712318645 jive_macro_code jive_text_macro" data-renderedposition="92_8_1232_128" jivemacro_uid="_14362706712318645"&gt;&lt;P&gt;extern void preparation_application(void)&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_VTOR = 0x1fff0000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("mov r0, #0xfc00");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("movt r0, #0x2002");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_disable();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm(" msr MSP, r0");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it runs well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453967#M15257</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2015-07-07T12:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453968#M15258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I find this post very interesting.&lt;/P&gt;&lt;P&gt;Do you know if it is possible to use the same part of code for the bootloader and for the application about RCTS stack(FTP server,...)?&lt;/P&gt;&lt;P&gt;It will be nice to use MQX &amp;amp; RCTS as bootloader but the space needed is important =&amp;gt; using only one rcts stack for bootloader and application can save space...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 10:44:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453968#M15258</guid>
      <dc:creator>aureliengrange</dc:creator>
      <dc:date>2016-03-22T10:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader mqx k64f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453969#M15259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have not idea. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Bootloader-mqx-k64f/m-p/453969#M15259</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2016-03-22T13:13:06Z</dc:date>
    </item>
  </channel>
</rss>

