<?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>LPC MicrocontrollersのトピックLPC1857 usb host+device msc</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669835#M26794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;BR /&gt;I've got such a task.&lt;BR /&gt;I need to make a double mode working USB0 port.&lt;BR /&gt;&lt;BR /&gt;p.1) If I connect it to the PC windows see a internal flash disk (about 64kB size) - usb device mode.&lt;BR /&gt;A working example of it I've already made by modifying the usbd msc example with fat fs lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.2) If I connect it by OTG cable to the Flash Drive(any) I need to automatically copy some file into internal flash disk&lt;BR /&gt;(mentioned in p. 1) - usb host mode.&lt;BR /&gt;A working example of it I've already made by using a usblib host msc example, also with fat fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I wanna join this two examples.&lt;BR /&gt;And there 're such a questions.&lt;BR /&gt;- How can I identify pc/flash mode automatically to switch between usb dev/host modes?&lt;BR /&gt;Does it real to make it such way? Maybe somebody has the same and there is some realization of this?&lt;BR /&gt;- How can I make two filesystems by Fat FS using two different disk access types(internal flash or external USB flash)?&lt;BR /&gt;&lt;BR /&gt;All my best.&lt;BR /&gt;Ivan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 07:07:47 GMT</pubDate>
    <dc:creator>ivankrestyanino</dc:creator>
    <dc:date>2017-06-22T07:07:47Z</dc:date>
    <item>
      <title>LPC1857 usb host+device msc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669835#M26794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;BR /&gt;I've got such a task.&lt;BR /&gt;I need to make a double mode working USB0 port.&lt;BR /&gt;&lt;BR /&gt;p.1) If I connect it to the PC windows see a internal flash disk (about 64kB size) - usb device mode.&lt;BR /&gt;A working example of it I've already made by modifying the usbd msc example with fat fs lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.2) If I connect it by OTG cable to the Flash Drive(any) I need to automatically copy some file into internal flash disk&lt;BR /&gt;(mentioned in p. 1) - usb host mode.&lt;BR /&gt;A working example of it I've already made by using a usblib host msc example, also with fat fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I wanna join this two examples.&lt;BR /&gt;And there 're such a questions.&lt;BR /&gt;- How can I identify pc/flash mode automatically to switch between usb dev/host modes?&lt;BR /&gt;Does it real to make it such way? Maybe somebody has the same and there is some realization of this?&lt;BR /&gt;- How can I make two filesystems by Fat FS using two different disk access types(internal flash or external USB flash)?&lt;BR /&gt;&lt;BR /&gt;All my best.&lt;BR /&gt;Ivan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 07:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669835#M26794</guid>
      <dc:creator>ivankrestyanino</dc:creator>
      <dc:date>2017-06-22T07:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 usb host+device msc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669836#M26795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you reviewed the Dual Hi-Speed USB Host/Device Solution examples? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/project/Dual-USB-Host-Device-solution" title="https://www.lpcware.com/content/project/Dual-USB-Host-Device-solution"&gt;Dual USB solutions for the LPC1837 LPC1830 LPC1800 and LPC4337 LPC4330 LPC4300 NXP microcontrollers. On chip Hi Speed HS…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the demo source code and documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.lpcware.com/system/files/MicroSD%20card.zip" title="http://www.lpcware.com/system/files/MicroSD%20card.zip"&gt;http://www.lpcware.com/system/files/MicroSD%20card.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 21:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669836#M26795</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-06-28T21:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 usb host+device msc</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669837#M26796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are trying to do is very much possible. I have done it with Mass storage host &amp;amp; custom device(connected to PC) on the same port.&lt;/P&gt;&lt;P&gt;By default you need to initialize USB in device mode, so when host(PC) is connected communication is done easily. But when another device(USB pen drive) is connected ID pin goes low &amp;amp; then initialize USB host so as to enumerate &amp;amp; communicate with connected device.&lt;/P&gt;&lt;P&gt;For Switching modes you need:-&lt;/P&gt;&lt;P&gt;1) switch for pull downs on D+ &amp;amp; D- lines(15k pull down)&lt;/P&gt;&lt;P&gt;2) switch for pull up on D+(1.5k) for full speed.&lt;/P&gt;&lt;P&gt;3) switch for VBUS(so that when device is connected +5v supply is provided).&lt;/P&gt;&lt;P&gt;4) ID pin connected to GPIO using 100k pull up.(to detect when device is connected).&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;Priyank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 05:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-usb-host-device-msc/m-p/669837#M26796</guid>
      <dc:creator>priyankb</dc:creator>
      <dc:date>2019-01-18T05:54:16Z</dc:date>
    </item>
  </channel>
</rss>

