<?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>Kinetis Microcontrollers中的主题 Setup USB on K66 Cortex M4F in MCUXpresso</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setup-USB-on-K66-Cortex-M4F-in-MCUXpresso/m-p/969068#M55193</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;Firstly, I would like to emphasize that my embedded programming skills is very limited, and I apologize in advance :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set up a USB device on a custom PCB with a MK66FX1M0xxx18 MCU, using MCUXpresso.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have managed to somehow get myself to this point, see attached Picture 1 NXP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm somewhat lost in the documentation of usb_device.h as to what the specifics of this, actually wants me to do:&lt;/P&gt;&lt;P&gt;extern usb_status_t USB_DeviceInit(uint8_t controllerId,&lt;BR /&gt; usb_device_callback_t deviceCallback,&lt;BR /&gt; usb_device_handle *handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read the code documentations to it, but to be honest it doesn't really make sense, hence why I'm here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question (sort of pertaining to the first one as well..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I configured the 2 ADCs on the MCU to work as inputs by going via the pin and peripherals layout, so I effectively circumvented having to write the code myself, however, I can't find USB in the peripherals tab whatsoever. So if there's a way to add it there then I guess that would be the easiest, as opposed to manually writing out the configurations..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice or assistance, and sorry again if the category choice(s) are a bit all over the place !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2019 14:51:06 GMT</pubDate>
    <dc:creator>rene_01</dc:creator>
    <dc:date>2019-08-08T14:51:06Z</dc:date>
    <item>
      <title>Setup USB on K66 Cortex M4F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setup-USB-on-K66-Cortex-M4F-in-MCUXpresso/m-p/969068#M55193</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;Firstly, I would like to emphasize that my embedded programming skills is very limited, and I apologize in advance :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set up a USB device on a custom PCB with a MK66FX1M0xxx18 MCU, using MCUXpresso.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have managed to somehow get myself to this point, see attached Picture 1 NXP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm somewhat lost in the documentation of usb_device.h as to what the specifics of this, actually wants me to do:&lt;/P&gt;&lt;P&gt;extern usb_status_t USB_DeviceInit(uint8_t controllerId,&lt;BR /&gt; usb_device_callback_t deviceCallback,&lt;BR /&gt; usb_device_handle *handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read the code documentations to it, but to be honest it doesn't really make sense, hence why I'm here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question (sort of pertaining to the first one as well..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I configured the 2 ADCs on the MCU to work as inputs by going via the pin and peripherals layout, so I effectively circumvented having to write the code myself, however, I can't find USB in the peripherals tab whatsoever. So if there's a way to add it there then I guess that would be the easiest, as opposed to manually writing out the configurations..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice or assistance, and sorry again if the category choice(s) are a bit all over the place !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setup-USB-on-K66-Cortex-M4F-in-MCUXpresso/m-p/969068#M55193</guid>
      <dc:creator>rene_01</dc:creator>
      <dc:date>2019-08-08T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setup USB on K66 Cortex M4F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setup-USB-on-K66-Cortex-M4F-in-MCUXpresso/m-p/969069#M55194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you can start from a USB device demo. Don't start from empty project. There are lots of USB device demo in SDK_2.5.0_FRDM-K66F (1)\boards\frdmk66f\usb_examples. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 08:14:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Setup-USB-on-K66-Cortex-M4F-in-MCUXpresso/m-p/969069#M55194</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-12T08:14:31Z</dc:date>
    </item>
  </channel>
</rss>

