<?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>NXP DesignsのトピックRe: Communication between K66 USB virtual serial port and PC</title>
    <link>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050145#M424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1.How to improve the accuracy of AD acquisition? What is the relationship between the sampling period and conversion time? Whether ADC accuracy can be improved by changing the configuration of conversion time register？&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Yes, when the conversion is too fast sometimes you trade the sampling speed for the accuracy, I will suggest checking the following &lt;A href="https://www.nxp.com/docs/en/application-note/AN5250.pdf"&gt;document &lt;/A&gt;to know more about accuracy improvements.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;2.What is the reason that K66 can send data to PC, but can't receive the data sent by PC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The K66 should be able to receive data sent by the computer, I will suggest checking the usb_cdc_vcom_bm/freeRTOS, with this you should be able to sent and receive with the USB port.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;3.After downloading the program, connect the K66 control board and PC with USB. There is no device identification in the PC device manager. Why? During this time, the driver is replaced many times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This could be due to various problems, a hardware problem or a USB stack issue, are you using a custom board or is one of our development boards,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Let me know if this helps you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2020 16:16:15 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-05-08T16:16:15Z</dc:date>
    <item>
      <title>Communication between K66 USB virtual serial port and PC</title>
      <link>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050144#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thank you for answering my questions.&lt;/P&gt;&lt;P&gt;K66 single chip microcomputer as the control core,complete the collection of analog electric quantity and transfer the collection result through&amp;nbsp;CAN&amp;nbsp;and USB。Now there are the following questions:&lt;/P&gt;&lt;P&gt;1.How to improve the accuracy of AD acquisition? What is the relationship between sampling period and conversion time?Whether ADC accuracy can be improved by changing the configuration of conversion time register？&lt;/P&gt;&lt;P&gt;2.What is the reason that K66 can send data to PC, but can't receive the data sent by PC?&lt;/P&gt;&lt;P&gt;3.After downloading the program, connect the K66 control board and PC with USB. There is no device identification in the PC device manager. Why? During this time, the driver is replaced many times.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 07:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050144#M423</guid>
      <dc:creator>3115499229</dc:creator>
      <dc:date>2020-05-06T07:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Communication between K66 USB virtual serial port and PC</title>
      <link>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050145#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1.How to improve the accuracy of AD acquisition? What is the relationship between the sampling period and conversion time? Whether ADC accuracy can be improved by changing the configuration of conversion time register？&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Yes, when the conversion is too fast sometimes you trade the sampling speed for the accuracy, I will suggest checking the following &lt;A href="https://www.nxp.com/docs/en/application-note/AN5250.pdf"&gt;document &lt;/A&gt;to know more about accuracy improvements.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;2.What is the reason that K66 can send data to PC, but can't receive the data sent by PC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The K66 should be able to receive data sent by the computer, I will suggest checking the usb_cdc_vcom_bm/freeRTOS, with this you should be able to sent and receive with the USB port.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;3.After downloading the program, connect the K66 control board and PC with USB. There is no device identification in the PC device manager. Why? During this time, the driver is replaced many times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This could be due to various problems, a hardware problem or a USB stack issue, are you using a custom board or is one of our development boards,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Let me know if this helps you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 16:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050145#M424</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-05-08T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Communication between K66 USB virtual serial port and PC</title>
      <link>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050146#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Hello&amp;nbsp;&lt;SPAN&gt;Alexis Andalon&lt;/SPAN&gt;，Thank you very much for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;For&amp;nbsp;&amp;nbsp;question 2： Wrong description of the problem.The problem is that when&amp;nbsp;CAN is used to complete the transmission of acquisition results,K66 can send data to PC, but can not receive PC data.Why？&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;For&amp;nbsp;&amp;nbsp;question&amp;nbsp;3： I use the board designed by myself.&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;K66 single chip microcomputer as the control core,complete the collection of analog electric quantity and transfer the collection result through&amp;nbsp;CAN&amp;nbsp;and USB。&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;new&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;question:K66 is often locked during commissioning.Sometimes it's useless if you can't unlock the chip. You have to change the chip.What causes the chip to be locked?What's a good way to unlock the chip？&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks again for you help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Best wishes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;DoudouZh&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;ang&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2020 01:59:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050146#M425</guid>
      <dc:creator>3115499229</dc:creator>
      <dc:date>2020-05-09T01:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Communication between K66 USB virtual serial port and PC</title>
      <link>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050147#M426</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;&lt;SPAN style="color: #0000ff;"&gt;Question 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since I can't see your code this is only a supposition, but you should avoid blocking code so any transfer can be done correctly, also as a recommendation, I will suggest using the DMA to handle the CAN transfers so this wouldn't interfere with the USB stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;Question&amp;nbsp;3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I think this is a software problem but if you have a FRDM-K66 maybe it is worth trying your same code to check if there isn't any hardware problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;Question 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Usually, this is done when you write in the location 0x400 - 0x40C, usually in the linker file this section is reserved for the structure called&amp;nbsp;Flash_Config in the startup code. If this section is modified is very likely your MCU will lock. Check the following &lt;A _jive_internal="true" href="https://community.nxp.com/thread/301600"&gt;link &lt;/A&gt;with some methods to unlock the board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 16:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/Communication-between-K66-USB-virtual-serial-port-and-PC/m-p/1050147#M426</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-05-12T16:06:12Z</dc:date>
    </item>
  </channel>
</rss>

