<?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: Kinetis Rtx bootloader jump rtx app in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946386#M54600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Marc ! I changed the&amp;nbsp;boot_jump function and I have a hardfault now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following link, I add the bootloader, the user App (bootloader with scatter modified) and a blinky project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The bootloader jump to the blinky application&lt;/P&gt;&lt;P&gt;=&amp;gt; &amp;nbsp;&amp;nbsp;The Kinetis example Bootloader jump to my User App&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;My bootloader don't jump to the User App (with hardfault)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z" title="https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z"&gt;https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something in my User App or in the bootloader fails the jump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it due to the RTX bootloader try to jump to an RTX firmware ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for you help ! :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2019 13:30:54 GMT</pubDate>
    <dc:creator>bastien</dc:creator>
    <dc:date>2019-10-22T13:30:54Z</dc:date>
    <item>
      <title>Kinetis Rtx bootloader jump rtx app</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946384#M54598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 0px 0px 1rem;"&gt;Hello !&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;I wrote an RTX bootloader with (based on http_server démo from keil) at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using LAN Ethernet (for updating) and uart (for debuging) to jump to the USER application at 0x00080000 address.&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;I try the following with my boot&amp;nbsp;:&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;A href="https://github.com/UltimateHackingKeyboard/bootloader/tree/master/apps/led_demo/MK64F12/mdk/led_demo_freedom_a000" style="color: #002b49; background: transparent; border-bottom: 1px dotted #002b49; text-decoration: none;"&gt;https://github.com/UltimateHackingKeyboard/bootloader/tree/master/apps/led_demo/MK64F12/mdk/led_demo_freedom_a000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;I changed the scatter file from 0x0000a000 to&amp;nbsp;&lt;SPAN&gt;0x00080000 and The jump works !&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;SPAN&gt;I copyed my bootloader and modify it to get an USER APP at 0x00080000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;SPAN&gt;The problem is that the bootloader jump again and again to my USER APP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I use the bootloader from the github source the jump works !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/UltimateHackingKeyboard/bootloader/tree/master/targets/MK64F12/mdk/freedom_bootloader" target="test_blank"&gt;https://github.com/UltimateHackingKeyboard/bootloader/tree/master/targets/MK64F12/mdk/freedom_bootloader&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;SPAN&gt;I searched for hours but i don t understand the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;SPAN&gt;Someone to give me some help?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333e48; background-color: #ffffff; font-size: 20px; margin: 1.5em 0px 1rem;"&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 16:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946384#M54598</guid>
      <dc:creator>bastien</dc:creator>
      <dc:date>2019-10-21T16:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis Rtx bootloader jump rtx app</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946385#M54599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the boot loader jumps repeatedly to the application it presumably means that the application crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See appendix B of the following document for a checklist of various things that may be necessary for boot loader and application compatibility: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that there is also a K66 Ethernet (web server) and HS USB boot loader at&lt;BR /&gt;&lt;A href="http://www.utasker.com/kinetis/FRDM-K66F.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K66F.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for faster/more efficient professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;i.MX RT project compatibility: &lt;A href="http://www.utasker.com/iMX.html" target="test_blank"&gt;http://www.utasker.com/iMX.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Including FreeRTOS integration for all Kinetis parts&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Kinetis K66:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K65F180M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-K66F.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K66F.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TEENSY_3.6.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.6.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/512558" target="test_blank"&gt;https://community.nxp.com/thread/512558&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/352862" target="test_blank"&gt;https://community.nxp.com/thread/352862&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/498809" target="test_blank"&gt;https://community.nxp.com/thread/498809&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:20:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946385#M54599</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-10-21T19:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis Rtx bootloader jump rtx app</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946386#M54600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Marc ! I changed the&amp;nbsp;boot_jump function and I have a hardfault now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following link, I add the bootloader, the user App (bootloader with scatter modified) and a blinky project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The bootloader jump to the blinky application&lt;/P&gt;&lt;P&gt;=&amp;gt; &amp;nbsp;&amp;nbsp;The Kinetis example Bootloader jump to my User App&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;My bootloader don't jump to the User App (with hardfault)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z" title="https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z"&gt;https://drive.google.com/open?id=13T5lvo5zAy4W6icKHSAMxPKaFmfpnz8Z&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something in my User App or in the bootloader fails the jump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it due to the RTX bootloader try to jump to an RTX firmware ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for you help ! :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946386#M54600</guid>
      <dc:creator>bastien</dc:creator>
      <dc:date>2019-10-22T13:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis Rtx bootloader jump rtx app</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946387#M54601</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 don't succed to jump to my User APP firmware..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some one have an idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, a piece on my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__asm void boot_jump( uint32_t address )&lt;BR /&gt;{&lt;BR /&gt; LDR SP, [R0]&lt;BR /&gt; LDR PC, [R0, #4]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void execute_user_code(void)&lt;BR /&gt;{&lt;BR /&gt; /* Change the Vector Table to the USER_FLASH_START &lt;BR /&gt; in case the user application uses interrupts */&lt;/P&gt;&lt;P&gt;//__disable_irq();&lt;BR /&gt; &lt;BR /&gt; SysTick-&amp;gt;CTRL &amp;amp;= ~0x00000002;&lt;BR /&gt; &lt;BR /&gt; SCB-&amp;gt;VTOR = (uint32_t)USER_FLASH_START;&lt;BR /&gt; &lt;BR /&gt; boot_jump(USER_FLASH_START);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;/*----------------------------------------------------------------------------&lt;BR /&gt; Main Thread 'main': Run Network&lt;BR /&gt; *---------------------------------------------------------------------------*/&lt;BR /&gt;int main (void) &lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; if(Flash_ReadFW()==0)&lt;BR /&gt; {&lt;BR /&gt; execute_user_code();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; osKernelInitialize (); // initialize RTOS kernel&lt;BR /&gt; &lt;BR /&gt; hardware_init();&lt;BR /&gt; LED_Initialize ();&lt;BR /&gt; Buttons_Initialize ();&lt;BR /&gt; debug_printf("\r\n\r\nBootloader by - GB\r\n"); // ne pas oublier de cocher MicroLIB dans les options du projet !!!&lt;BR /&gt; &lt;BR /&gt; osThreadNew(blinky_Thread, NULL, NULL); // Create application main thread&lt;BR /&gt; osThreadNew(LAN_Thread, NULL, NULL); // Create application main thread&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; osKernelStart (); // start kernel with job2 execution &lt;BR /&gt; while(1);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 13:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946387#M54601</guid>
      <dc:creator>bastien</dc:creator>
      <dc:date>2019-12-18T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis Rtx bootloader jump rtx app</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946388#M54602</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 found the problem,&lt;/P&gt;&lt;P&gt;When i loaded the firmware in to the flash, at 0x400 i miss an byte,&amp;nbsp;this is why with the little blinky firmware the jumps works (less than 0x400).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, after a NVIC_SystemReset() I don't need to __set_CONTROL(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 11:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Rtx-bootloader-jump-rtx-app/m-p/946388#M54602</guid>
      <dc:creator>bastien</dc:creator>
      <dc:date>2020-01-15T11:10:12Z</dc:date>
    </item>
  </channel>
</rss>

