<?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 Program the MKL25z with a bootloader (MCUX) in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981499#M1072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to program the MKL25z via USB port without using JTAG/SWD except for the first time. I need to set the MKL25z up as a mass storage device and copy binaries onto it to program. Any idea where I should start or what project should I take a look at? I'm using MCUX and SDK 2.2 by the way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I know I have to start with MCUBOOT but I have no idea how to port it to my project since the KL25 is not a supported device (I think).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2019 16:26:27 GMT</pubDate>
    <dc:creator>huy_dang</dc:creator>
    <dc:date>2019-10-29T16:26:27Z</dc:date>
    <item>
      <title>Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981499#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to program the MKL25z via USB port without using JTAG/SWD except for the first time. I need to set the MKL25z up as a mass storage device and copy binaries onto it to program. Any idea where I should start or what project should I take a look at? I'm using MCUX and SDK 2.2 by the way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I know I have to start with MCUBOOT but I have no idea how to port it to my project since the KL25 is not a supported device (I think).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981499#M1072</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-10-29T16:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981500#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mention the KL25 is not supported in the MCUBoot but in the legacy KBoot was supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the MCUBoot webpage you can download this package and in the targets folder you can find the source code, unfortunately this is not supported in MCUXpresso but you could check the code and port it to MCUXpresso.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981500#M1073</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-30T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981501#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Sorry about the late reply. I was able to port the project to KL25 and got the bootloader to enumerate as an MSD device now. Then I follow this guide right here to create an sb file to drop on to the MSD device.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332379"&gt;USB MSD Bootloader Implementation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;However, my console display this error when I dropped the file onto the device.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&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/92198i5CDC451D53C521D8/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;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I look it up and found out that this error is a protection memory error so I'm wondering if there's extra command I need to issue in my .bd file.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&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/92234iD537A351B70BC149/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;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981501#M1074</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-11-05T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981502#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the Kinetis Flash Tool? This is in the following route:&amp;nbsp;&lt;/P&gt;&lt;P&gt;NXP_Kinetis_Bootloader_2_0_0\bin\Tools\KinetisFlashTool\win&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in the documentation folder there's the following document Kinetis Flash Tool User's Guide that can help you flash the binary to your MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981502#M1075</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-11-05T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981503#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I found out that this problem is due to my bootloader exceed 0xa000 in size and I have to move the address of the application in the memory to 0x10000. I no longer have a problem with memory error.&lt;/P&gt;&lt;P&gt;Now, I notice a different problem. The MSD device only enumerates after I program it via SWD. As soon as I power cycle the board, I don't see the drive enumerates anymore. I wonder what could be a problem here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I think the problem right now that I have is the board being boot into the application program instead of the bootloader on power up. Is there a way I can go to the bootloader from the application program. (I'm using the MKL25z128VLK4, not the FRDM board so I don't have a boot pin).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981503#M1076</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-11-06T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981504#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try enabling the timeout of the bootloader, I think the problem would be that is using direct boot. The KBOOT has an option that will accept any incoming message until a timeout is reach and the first message send by any peripheral will enable the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this could be an option instead of using a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 01:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981504#M1077</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-11-07T01:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981505#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much, this is the correct answer and now I got the bootloader to work correctly. Turns out I commented out the systick_timer in the bootloader by mistake and that caused it to be a direct boot.&lt;/P&gt;&lt;P&gt;A different but somewhat related question I have now is after putting my program in the bootloader, I noticed that the uart interrupt no longer work correctly.&amp;nbsp;&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/93486i0DA311D64F8560B6/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;I'm receiving nonsense on my UART0 communication port. I tested out with the example program in the SDK (frdmkl25z_driver_examples_uart_interrupt) and the same thing is happening. Any ideas what is causing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I forgot to include but if either JTAG or USB port is connected then the UART behaves correctly but if they are both disconnected then I run into this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 20:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981505#M1078</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-11-07T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981506#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind, I was just missing a common ground on the UART cable. Always check the hardware!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 22:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981506#M1079</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-11-07T22:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981507#M1080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar problem. I like to be able to use the&amp;nbsp;MCUBOOT&amp;nbsp;for firmware upgrades to my own-designed KL46Z board either via MSD or USB. I am using MXUXpresso and this controller is not supported in the MCUBOOT package. I tried to get the source to compile but was not successful. Is there any trick to it? What steps did you take to get the project to compile for KL25?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Baldur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981507#M1080</guid>
      <dc:creator>baldurthorgilss</dc:creator>
      <dc:date>2019-11-11T18:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Program the MKL25z with a bootloader (MCUX)</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981508#M1081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baldur,&lt;/P&gt;&lt;P&gt;I follow this guide right here in order to port the project to my KL25Z.&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1033065?commentID=1033065#comment-1033065" title="https://community.nxp.com/message/1033065?commentID=1033065#comment-1033065"&gt;https://community.nxp.com/message/1033065?commentID=1033065#comment-1033065&lt;/A&gt;. Keep in mind since the guide is using a different board, your drivers will be different and you will have to adjust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 20:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Program-the-MKL25z-with-a-bootloader-MCUX/m-p/981508#M1081</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-11-11T20:26:07Z</dc:date>
    </item>
  </channel>
</rss>

