<?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>MQX Software SolutionsのトピックAbout the USB/CDC Freescale MQX code example.  (Specifically what does calling USB_CDC_Periodic_Task() over and over do?)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/About-the-USB-CDC-Freescale-MQX-code-example-Specifically-what/m-p/384898#M12830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the middle of adapting the USB/CDC Freescale MQX code example for my project. This example sets up a 2 way connection ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4.1.1 does have a bug in this Freescale example code which has been reported - see here for fix: (&lt;A href="https://community.nxp.com/thread/335802"&gt;I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?&lt;/A&gt;)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...between the USB and Ethernet port.&amp;nbsp; In that code interrupts and call backs are setup to take care of USB communication.&amp;nbsp; Still, that code ends up in an infinite loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; while (TRUE) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* call the periodic task function */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_CDC_Periodic_Task();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; }/* Endwhile */&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been told this fragment of code above was to make the overall Freescale USB/CDC example compatible with "bare metal" applications (i.e. w/o the MQX Operating System).&amp;nbsp; So I removed it from my project.&amp;nbsp; But my project, when connected to a Win7 box, always results in a "Disabled" network.&amp;nbsp; Rendering it useless.&amp;nbsp; Even to test applications like WireShark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched for a detailed explanation of this function, but have only found this (MQX_USB_Device_Reference_Manual.pdf):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P data-canvas-width="392.84033" style="font-size: 23.3px; font-family: sans-serif;"&gt;&lt;EM&gt;4.2.4&amp;nbsp; &lt;SPAN class="selected highlight"&gt;USB_CDC_Periodic_Task&lt;/SPAN&gt;()&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="253.75199999999995" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Complete any left over activity &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="244.90600000000003" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;during a specified time period.&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="74.304" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Synopsis&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="389.7298199999999" style="font-size: 16.6px; font-family: monospace;"&gt;&lt;EM&gt;void USB_Class_CDC_Periodic_Task(void);&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="98.82000000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Parameters&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;None&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="103.78399999999998" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Description &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="205.494" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;The application calls this &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="308.108" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;API function to enable the driver to co&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="284.9600000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;mplete any left over activity on the &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="207.14000000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;device’s control endpoint.&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="114.14" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Return Value&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;None&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;...so, what does "left over activity" mean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;-thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Jan 2015 18:02:19 GMT</pubDate>
    <dc:creator>rickstuart</dc:creator>
    <dc:date>2015-01-04T18:02:19Z</dc:date>
    <item>
      <title>About the USB/CDC Freescale MQX code example.  (Specifically what does calling USB_CDC_Periodic_Task() over and over do?)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/About-the-USB-CDC-Freescale-MQX-code-example-Specifically-what/m-p/384898#M12830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the middle of adapting the USB/CDC Freescale MQX code example for my project. This example sets up a 2 way connection ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4.1.1 does have a bug in this Freescale example code which has been reported - see here for fix: (&lt;A href="https://community.nxp.com/thread/335802"&gt;I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?&lt;/A&gt;)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...between the USB and Ethernet port.&amp;nbsp; In that code interrupts and call backs are setup to take care of USB communication.&amp;nbsp; Still, that code ends up in an infinite loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; while (TRUE) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* call the periodic task function */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_CDC_Periodic_Task();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; }/* Endwhile */&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been told this fragment of code above was to make the overall Freescale USB/CDC example compatible with "bare metal" applications (i.e. w/o the MQX Operating System).&amp;nbsp; So I removed it from my project.&amp;nbsp; But my project, when connected to a Win7 box, always results in a "Disabled" network.&amp;nbsp; Rendering it useless.&amp;nbsp; Even to test applications like WireShark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched for a detailed explanation of this function, but have only found this (MQX_USB_Device_Reference_Manual.pdf):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P data-canvas-width="392.84033" style="font-size: 23.3px; font-family: sans-serif;"&gt;&lt;EM&gt;4.2.4&amp;nbsp; &lt;SPAN class="selected highlight"&gt;USB_CDC_Periodic_Task&lt;/SPAN&gt;()&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="253.75199999999995" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Complete any left over activity &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="244.90600000000003" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;during a specified time period.&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="74.304" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Synopsis&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="389.7298199999999" style="font-size: 16.6px; font-family: monospace;"&gt;&lt;EM&gt;void USB_Class_CDC_Periodic_Task(void);&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="98.82000000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Parameters&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;None&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="103.78399999999998" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Description &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="205.494" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;The application calls this &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="308.108" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;API function to enable the driver to co&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="284.9600000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;mplete any left over activity on the &lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="207.14000000000001" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;device’s control endpoint.&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="114.14" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;Return Value&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;None&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;...so, what does "left over activity" mean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;-thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-canvas-width="43.27199999999999" style="font-size: 20px; font-family: serif;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jan 2015 18:02:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/About-the-USB-CDC-Freescale-MQX-code-example-Specifically-what/m-p/384898#M12830</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2015-01-04T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: About the USB/CDC Freescale MQX code example.  (Specifically what does calling USB_CDC_Periodic_Task() over and over do?)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/About-the-USB-CDC-Freescale-MQX-code-example-Specifically-what/m-p/384899#M12831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extracting the stack from MQX is not an easy task. If you want to use a bareboard USB stack (without Operating System) I strongly recommend USB Stack which you can download here: &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MEDICALUSB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MEDICALUSB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;USB Stack|Freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding USB_CDC_Periodic_Task, it is a function that is called to check the status flags set by the callbacks of the CDC state machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 21:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/About-the-USB-CDC-Freescale-MQX-code-example-Specifically-what/m-p/384899#M12831</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-01-12T21:14:52Z</dc:date>
    </item>
  </channel>
</rss>

