<?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: Problems receiving data at ep0 out in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229183#M4775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi Carlos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Thanks for the info I have already found these thread by my own. The solution in this thread is for another problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I’m not sure if you understand my problem. The communication is alright and I can send and receive messages at EP0 OUT. The only thing is, when the data in the Message, which is send from the PC to the device, includes too many 0xF’s there occur a timeout error. I test the communication on EP1 OUT and there I can send data including many 0xF’s. I think this is a problem of the controller that the SIE cannot work with too many 0xF’s at EP0.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;My problem is that I have to use an existing program, which sends data at EP0 OUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Here is a screenshot of the usb transfer:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CATC TimeoutError.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40502iCAB19D7FA02A3814/image-size/large?v=v2&amp;amp;px=999" role="button" title="CATC TimeoutError.JPG.jpg" alt="CATC TimeoutError.JPG.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 07:22:58 GMT</pubDate>
    <dc:creator>sebastians_</dc:creator>
    <dc:date>2013-08-20T07:22:58Z</dc:date>
    <item>
      <title>Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229179#M4771</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 have problems receiving data at ep0 out. I'm using the TWR-K21D50M board as usb device. &lt;/P&gt;&lt;P&gt;The CDC-example works fine and i managed it to customize it for my needs. &lt;/P&gt;&lt;P&gt;I have a programm which sends data on ep0 out to the device and i can receive it, but if the data is 0xFFFFFFFF or 0xF5F5F5F5, there is a timeout error and i dont get the data. &lt;/P&gt;&lt;P&gt;I dont know why i can't get this data.&lt;/P&gt;&lt;P&gt;The SIE could have problems to receive many "ones" in the data section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone can help me to manage this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 06:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229179#M4771</guid>
      <dc:creator>sebastians_</dc:creator>
      <dc:date>2013-07-30T06:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229180#M4772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have you ensured that the BDT is correctly aligned to 512 bytes on your modified project? Are you adjusting the Maximum Packet Size of your EP0 OUT buffer?&lt;/P&gt;&lt;P&gt;According with USB Specification, Control Endpoint maximum packet size could be configured up to 64 bytes on Full Speed devices.&lt;/P&gt;&lt;P&gt;In order to do so, it is required to set the macro “CONTROL_MAX_PACKET_SIZE” to the value of 64, and also the variable ext_req_to_host[64] (declared on “usb_framework.c” file); otherwise, the endpoint 0 transactions will be incomplete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 20:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229180#M4772</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2013-08-14T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229181#M4773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi Carlos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Thanks for your answer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;My Maximum Packet Size of EP0 OUT is 8 bytes and I changed it up to 64 bytes to check if this is the problem. I can receive data with a size of 8 bytes, 16 bytes, 32 bytes or 64 bytes and the message arrived correctly. But if the message includes 0xFFFF or something like that, there occurred a timeout error and I don’t know why.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 12:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229181#M4773</guid>
      <dc:creator>sebastians_</dc:creator>
      <dc:date>2013-08-19T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229182#M4774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Sebastian,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="padding: 0px 0px 1pt;"&gt;You could try the solution given on the following thread:&lt;/P&gt;&lt;P&gt; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/311036"&gt;https://community.freescale.com/thread/311036&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 23:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229182#M4774</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2013-08-19T23:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229183#M4775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi Carlos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Thanks for the info I have already found these thread by my own. The solution in this thread is for another problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I’m not sure if you understand my problem. The communication is alright and I can send and receive messages at EP0 OUT. The only thing is, when the data in the Message, which is send from the PC to the device, includes too many 0xF’s there occur a timeout error. I test the communication on EP1 OUT and there I can send data including many 0xF’s. I think this is a problem of the controller that the SIE cannot work with too many 0xF’s at EP0.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;My problem is that I have to use an existing program, which sends data at EP0 OUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Here is a screenshot of the usb transfer:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CATC TimeoutError.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40502iCAB19D7FA02A3814/image-size/large?v=v2&amp;amp;px=999" role="button" title="CATC TimeoutError.JPG.jpg" alt="CATC TimeoutError.JPG.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 07:22:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229183#M4775</guid>
      <dc:creator>sebastians_</dc:creator>
      <dc:date>2013-08-20T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems receiving data at ep0 out</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229184#M4776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;Ok, I solved the problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;There is a problem in the timing for the USB clock. The system clock is used for the USB clock, but the system clock is 50 MHz and USB needs 48 MHz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif';"&gt;So if you change the value of&amp;nbsp; “PLL0_VDIV” to 24, which is defined in the tower.h file the system clock is 48 MHz and the USB works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #3d3d3d; background: white;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #3d3d3d; background: white;"&gt;Sebastian Schraml&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 06:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-receiving-data-at-ep0-out/m-p/229184#M4776</guid>
      <dc:creator>sebastians_</dc:creator>
      <dc:date>2013-10-07T06:22:07Z</dc:date>
    </item>
  </channel>
</rss>

