<?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: Sample Code needed: rom USB Host, MSC, IAP for LPC54608 in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761838#M427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MSC ROM code is for device and what you want is to implement this as a host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For what you want to do, you need a secondary bootloader, this way the bootloader will implement the USB Mass Storage Host and make the calls to the IAP function that are located in RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 15:07:48 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2018-04-05T15:07:48Z</dc:date>
    <item>
      <title>Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761833#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a In Application Programming (IAP) requirement where the new firmware image is on a USB flash drive plugged into a USB Host Connector (usb 1) on our custom pcb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using mcuxpresso and a LPC54608&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a code example for reading the USB Flash Drive via the drivers in rom?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the iap code executing out of RAM but need to read the USB.&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;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761833#M422</guid>
      <dc:creator>patrickhudson</dc:creator>
      <dc:date>2018-04-03T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761834#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to make a bootloader with the USB, right? In the SDK for the LPC54608 you can find plenty of USB examples. And for the bootloader you can use the next application note for the LPC18xx as a guide.&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN11651.zip?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" title="https://www.nxp.com/docs/en/application-note/AN11651.zip?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;Application Note&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 16:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761834#M423</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-04-04T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761835#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;There are no rom usb host examples in the SDK.&amp;nbsp; There is one rom usb device but we require host (to read from an attached usb flash drive)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remaining usb examples in the sdk are for using the non-rom usb stack and drivers that is located in the application image (which is lost once the&amp;nbsp;flash is erased).&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;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 16:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761835#M424</guid>
      <dc:creator>patrickhudson</dc:creator>
      <dc:date>2018-04-04T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761836#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the user manual of the LPC54608 (&lt;A href="https://www.nxp.com/docs/en/user-guide/UM10912.pdf"&gt;UM10912&lt;/A&gt;) in chapter 41 you can see that the ROM code only supports device classes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Communication Device Class (CDC) device class.&lt;/LI&gt;&lt;LI&gt;Human Interface Device (HID) device class.&lt;/LI&gt;&lt;LI&gt;Mass Storage Device (MSC) class.&lt;/LI&gt;&lt;LI&gt;Device Firmware Upgrade (DFU) class.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in the application note attached before in section 3.1 you will find the next information:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Both the secondary USB Host bootloader and the user application reside in the flash. Therefore, for the secondary USB Host bootloader to flash the user application without modifying any of its own code, the user application should be flashed starting at the next available sector.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So the example of rom usb host example is not possible. The best wait to implement the bootloader as you want is to segregate the Flash memory to have in one segment your application an in another segment the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Victor.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761836#M425</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-04-04T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761837#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you've stated,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In the user manual of the LPC54608 (&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FUM10912.pdf" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;UM10912&lt;/A&gt;) in chapter 41 you can see that the ROM code only supports device classes:&lt;/P&gt;&lt;UL style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Communication Device Class (CDC) device class.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Human Interface Device (HID) device class.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Mass Storage Device (MSC) class.&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;Device Firmware Upgrade (DFU) class.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, since rom usb supports MSC, what we're proposing is possible.&amp;nbsp; We do not wish to implement the firmware upgade via a custom bootloader but instead wish to implement it in IAP.&amp;nbsp; We have the iap code running in ram and erasing the flash.&amp;nbsp; We need help in reading the usb flash drive via the rom in the iap code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761837#M426</guid>
      <dc:creator>patrickhudson</dc:creator>
      <dc:date>2018-04-04T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sample Code needed: rom USB Host, MSC, IAP for LPC54608</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761838#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MSC ROM code is for device and what you want is to implement this as a host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For what you want to do, you need a secondary bootloader, this way the bootloader will implement the USB Mass Storage Host and make the calls to the IAP function that are located in RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Sample-Code-needed-rom-USB-Host-MSC-IAP-for-LPC54608/m-p/761838#M427</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-04-05T15:07:48Z</dc:date>
    </item>
  </channel>
</rss>

