<?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: cdc debug console hangs with repeated data in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550441#M5643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Norman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for the delay. Can you use SDK2.0 to develop the code?&lt;/P&gt;&lt;P&gt;There is example code for cdc, you can refer to it:&lt;/P&gt;&lt;P&gt;C:\Freescale\SDK2.0_K82\boards\frdmk82f\usb_examples\usb_device_cdc_vcom\freertos\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your function debug_getchar(); and debug_putchar(temp); the two functions use UART to transfer data or use cdc which is implemented in K20 on the FRDM or tower board of K64. Do you encapsulate the above two function with the USB CDC class on K64?&lt;/P&gt;&lt;P&gt;Do you use FRDM-K64F, TWR-K64 or the target board you designed?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2016 07:55:33 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2016-08-26T07:55:33Z</dc:date>
    <item>
      <title>cdc debug console hangs with repeated data</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550440#M5642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We've a project that uses the K64 usb port as a CDC serial port using the debug console with SDK 1.3 with PE , but it hangs when data is sent regularly to it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've stripped the program back so it's just calling debug_getchar();&lt;/P&gt;&lt;P&gt;and then sending that char straight back out with&amp;nbsp; debug_putchar(temp);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used termite (a simple terminal program) just to send back a test message, so the whole thing will keep looping, after a few minutes the K64 will crash.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550440#M5642</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-08-23T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: cdc debug console hangs with repeated data</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550441#M5643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Norman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for the delay. Can you use SDK2.0 to develop the code?&lt;/P&gt;&lt;P&gt;There is example code for cdc, you can refer to it:&lt;/P&gt;&lt;P&gt;C:\Freescale\SDK2.0_K82\boards\frdmk82f\usb_examples\usb_device_cdc_vcom\freertos\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your function debug_getchar(); and debug_putchar(temp); the two functions use UART to transfer data or use cdc which is implemented in K20 on the FRDM or tower board of K64. Do you encapsulate the above two function with the USB CDC class on K64?&lt;/P&gt;&lt;P&gt;Do you use FRDM-K64F, TWR-K64 or the target board you designed?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 07:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550441#M5643</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-08-26T07:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: cdc debug console hangs with repeated data</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550442#M5644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for getting back to me,&lt;/P&gt;&lt;P&gt;Probably too late in the day to switch to SDK2.0 unless I can just insert the usb code alongside the other drivers as our boards are at prototype stage with customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is on our own custom board using a MK64FN1M0VLQ12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes&amp;nbsp;the functions are setup using the PE libraries fsl_usb_framework and fsl_debug_console.&lt;/P&gt;&lt;P&gt;With the symbol use "&lt;SPAN style="color: #555555; background-color: #ffffff;"&gt;BOARD_USE_VIRTUALCOM" enter under the settings&amp;nbsp;&lt;SPAN&gt;“C/C++ Build &amp;gt;&amp;gt; Settings &amp;gt;&amp;gt; Cross ARM C Compiler &amp;gt;&amp;gt; Preprocessor&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff;"&gt;and call&amp;nbsp;&lt;SPAN&gt;DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, DEBUG_UART_BAUD, kDebugConsoleUSBCDC);&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; background-color: #ffffff;"&gt;&lt;SPAN&gt;at the start of main program.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All works well, except when the usb uart is continuously polled.&lt;/P&gt;&lt;P&gt;Any further thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Ian Norman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 10:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550442#M5644</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-08-26T10:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: cdc debug console hangs with repeated data</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550443#M5645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any long interrupts occurring?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar problem, my code was working well, it was tested running for 2 weeks, then at some point later I modified a PIT interrupt which toggled a pin, to toggling the pin twice with a random period of up to 10uS between toggles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was only later I noticed&amp;nbsp;that the s/w would lock up when tested for a few hours, it took a while for me to link the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying the interrupt back to the way it was negated the problem. Subsequent tests running for 3 weeks ran error free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like my long (well up to 10uS) was interfering with the operation of the USB peripheral or driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 14:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550443#M5645</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-08-26T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: cdc debug console hangs with repeated data</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550444#M5646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm you could be on to something, I've a timer interrupt to flash a led in an fpga via spi... I'll take that out and give it a go.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/cdc-debug-console-hangs-with-repeated-data/m-p/550444#M5646</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-08-26T16:31:11Z</dc:date>
    </item>
  </channel>
</rss>

