<?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中的主题 MK66 Cannot start USB CDC with SerialManager</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1472515#M63304</link>
    <description>&lt;P&gt;Hello everyone. I relocated from STM32 to NXP MCUs. Currently I use MK66 series and try to launch USB CDC class devise using SerialManager. I use MCUexpresso IDE.&lt;BR /&gt;I set all needed clocks (and for usb):&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, SIM_USB_CLK_48000000HZ);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I am also pinned necessary pins for DP and DM signals in Pin Tool.&lt;BR /&gt;In my function I use code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;static uint8_t s_serialHandleBuffer[SERIAL_MANAGER_HANDLE_SIZE];
static serial_handle_t s_serialHandle = &amp;amp;s_serialHandleBuffer[0];
static uint8_t s_ringBuffer[SERIAL_MANAGER_RING_BUFFER_SIZE];
serial_manager_config_t config;
serial_port_usb_cdc_config_t usbCdcConfig;
usbCdcConfig.controllerIndex = kSerialManager_UsbControllerKhci0;
config.type = kSerialPort_UsbCdc;
config.ringBuffer = &amp;amp;s_ringBuffer[0];
config.ringBufferSize = SERIAL_MANAGER_RING_BUFFER_SIZE;
config.portConfig = &amp;amp;usbCdcConfig;
SerialManager_Init(s_serialHandle, &amp;amp;config);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;SerialManager_Init() returns with OK.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;When I plug the cable to PC&amp;lt; Windows shows the message (USB device not recognized) Error 43: Descriptor request fail.&lt;BR /&gt;I found the same issue in forum :&lt;BR /&gt;&lt;/FONT&gt;&lt;A title="&amp;quot;USB CDC&amp;quot; does not work on K32L2B3" href="https://community.nxp.com/t5/K32-L-Series-Microcontrollers/quot-USB-CDC-quot-does-not-work-on-K32L2B3/td-p/1160599" target="_self"&gt;https://community.nxp.com/t5/K32-L-Series-Microcontrollers/quot-USB-CDC-quot-does-not-work-on-K32L2B3/td-p/1160599&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;But no any replies to it. I figured out that MCU doesn't process callbacks at PC requests (events like Reset, getDescriptors and other. Briefly enumeration I mean)&lt;BR /&gt;&lt;BR /&gt;Can you help me? Maybe I forgot something detail in my implementation??&lt;BR /&gt;Thanks.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jun 2022 22:15:24 GMT</pubDate>
    <dc:creator>Axent</dc:creator>
    <dc:date>2022-06-12T22:15:24Z</dc:date>
    <item>
      <title>MK66 Cannot start USB CDC with SerialManager</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1472515#M63304</link>
      <description>&lt;P&gt;Hello everyone. I relocated from STM32 to NXP MCUs. Currently I use MK66 series and try to launch USB CDC class devise using SerialManager. I use MCUexpresso IDE.&lt;BR /&gt;I set all needed clocks (and for usb):&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, SIM_USB_CLK_48000000HZ);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I am also pinned necessary pins for DP and DM signals in Pin Tool.&lt;BR /&gt;In my function I use code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;static uint8_t s_serialHandleBuffer[SERIAL_MANAGER_HANDLE_SIZE];
static serial_handle_t s_serialHandle = &amp;amp;s_serialHandleBuffer[0];
static uint8_t s_ringBuffer[SERIAL_MANAGER_RING_BUFFER_SIZE];
serial_manager_config_t config;
serial_port_usb_cdc_config_t usbCdcConfig;
usbCdcConfig.controllerIndex = kSerialManager_UsbControllerKhci0;
config.type = kSerialPort_UsbCdc;
config.ringBuffer = &amp;amp;s_ringBuffer[0];
config.ringBufferSize = SERIAL_MANAGER_RING_BUFFER_SIZE;
config.portConfig = &amp;amp;usbCdcConfig;
SerialManager_Init(s_serialHandle, &amp;amp;config);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;SerialManager_Init() returns with OK.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;When I plug the cable to PC&amp;lt; Windows shows the message (USB device not recognized) Error 43: Descriptor request fail.&lt;BR /&gt;I found the same issue in forum :&lt;BR /&gt;&lt;/FONT&gt;&lt;A title="&amp;quot;USB CDC&amp;quot; does not work on K32L2B3" href="https://community.nxp.com/t5/K32-L-Series-Microcontrollers/quot-USB-CDC-quot-does-not-work-on-K32L2B3/td-p/1160599" target="_self"&gt;https://community.nxp.com/t5/K32-L-Series-Microcontrollers/quot-USB-CDC-quot-does-not-work-on-K32L2B3/td-p/1160599&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;But no any replies to it. I figured out that MCU doesn't process callbacks at PC requests (events like Reset, getDescriptors and other. Briefly enumeration I mean)&lt;BR /&gt;&lt;BR /&gt;Can you help me? Maybe I forgot something detail in my implementation??&lt;BR /&gt;Thanks.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 22:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1472515#M63304</guid>
      <dc:creator>Axent</dc:creator>
      <dc:date>2022-06-12T22:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 Cannot start USB CDC with SerialManager</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1472522#M63305</link>
      <description>&lt;P&gt;I figured out that I added FreeRTOS support in my project.&lt;BR /&gt;But if I switch to BareMetal, my code statrs work fine.&lt;BR /&gt;How can I implement this with FreeRTOS? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 00:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1472522#M63305</guid>
      <dc:creator>Axent</dc:creator>
      <dc:date>2022-06-13T00:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 Cannot start USB CDC with SerialManager</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1476611#M63398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202119"&gt;@Axent&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I made a demo. It can PRINTF in APPtask. You can take a look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-Cannot-start-USB-CDC-with-SerialManager/m-p/1476611#M63398</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-06-20T08:14:42Z</dc:date>
    </item>
  </channel>
</rss>

