<?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 Secondary bootloader? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040691#M40455</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;We are planning to use one of the LPC546xx mcu's on our custom board. We would like to be able to firmware update our application code by using a simple USB-stick with a firmware.bin on it. How do we approach this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell, we need to create a secondary bootloader (does this exist somewhere?) so init the system, look for the USB pin, transfer the firmware.bin and then call the user application code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? Are there any resources to help us to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2020 11:58:54 GMT</pubDate>
    <dc:creator>martin_due</dc:creator>
    <dc:date>2020-04-16T11:58:54Z</dc:date>
    <item>
      <title>Secondary bootloader?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040691#M40455</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;We are planning to use one of the LPC546xx mcu's on our custom board. We would like to be able to firmware update our application code by using a simple USB-stick with a firmware.bin on it. How do we approach this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell, we need to create a secondary bootloader (does this exist somewhere?) so init the system, look for the USB pin, transfer the firmware.bin and then call the user application code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? Are there any resources to help us to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040691#M40455</guid>
      <dc:creator>martin_due</dc:creator>
      <dc:date>2020-04-16T11:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary bootloader?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040692#M40456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="358163" data-username="martin.due@trelleborg.com" href="https://community.nxp.com/people/martin.due@trelleborg.com"&gt;Martin Due&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A secondary bootloader seems a good option. It is a small piece of code immediately running after the hardware boot process. It works like the normal software, but only dealing with some customized tasks before the user software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use this AN&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12384.pdf" title="https://www.nxp.com/docs/en/application-note/AN12384.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12384.pdf&lt;/A&gt;&amp;nbsp; to design one that works with USB. To do this you can refer to "chapter 3: LPC546xx Boot process"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the SDK&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt; you can find a DFU example, what this example does is write the firmware content of the USB DFU&amp;nbsp; to flash or ram and will check the CRC32 which stored in the last 4 bytes of the firmware. if the CRC32 check is right, then the dfu example will run the new firmware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 19:55:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040692#M40456</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-04-17T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary bootloader?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040693#M40457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like we are on the right track then. Once we get started we will probably have some more questions for you :smileyhappy:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stay tuned...&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>Mon, 20 Apr 2020 07:30:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Secondary-bootloader/m-p/1040693#M40457</guid>
      <dc:creator>martin_due</dc:creator>
      <dc:date>2020-04-20T07:30:18Z</dc:date>
    </item>
  </channel>
</rss>

