<?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>LPC MicrocontrollersのトピックRe: TX data corruption on virtual COM port on LPCXpresso55S28</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1665096#M52891</link>
    <description>&lt;P&gt;There is a JLink firmware available from the Segger website for newer LPC-Link variants as well.&lt;BR /&gt;I have not tested this version, but have converted most of my onboard ST-Link with the Segger JLink firmware. And those work quite well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 10:20:38 GMT</pubDate>
    <dc:creator>frank_m</dc:creator>
    <dc:date>2023-06-07T10:20:38Z</dc:date>
    <item>
      <title>TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662380#M52840</link>
      <description>&lt;P&gt;I'm doing some development work on the LPCXpresso55S28 dev board. I have made a serial interface on Flexcomm USART0, running at 115200 bps.&lt;/P&gt;&lt;P&gt;The serial interface can connect to the PC through the LPCXpresso board's "virtual COM port", via USB that provides both a CMSIS-DAP debug interface and the virtual COM port.&lt;/P&gt;&lt;P&gt;Using the virtual COM port, I observed some data corruption happening on the data transferred from the board to the PC. At first I assumed it was a bug in my code. However, then I tried connecting a separate USB-to-serial cable directly to P8, and disabling the on-board interface with a jumper on P1. The data corruption disappeared.&lt;/P&gt;&lt;P&gt;So, it appears that the board's USB virtual COM port functionality is causing data corruption. Is that a bug in the firmware on the board, or a bug in the Windows driver for it?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 05:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662380#M52840</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2023-06-02T05:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662429#M52841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that your issue results from the wrong connection. Your current jumper connection is correct.&lt;/P&gt;
&lt;P&gt;This is P1 jumper configuration.&lt;/P&gt;
&lt;P&gt;If you want to connect external uart module to P8(UART0 of LPC55S28), you have to open the P1, I suppose this is your case.&lt;/P&gt;
&lt;P&gt;If you want to connect internal uart module which is uart port of LPC4432 debugger MCU, you have to close the P1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1685688698625.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226009i65CFA12F7C99C653/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1685688698625.png" alt="xiangjun_rong_0-1685688698625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With P1 closed, LPC4322 will communicate with uart0 of LPC55S28, otherwise, the external uart device will communicate uart0 of LPC55S28 with P8 connector.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 06:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662429#M52841</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-06-02T06:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662588#M52842</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; So, it appears that the board's USB virtual COM port functionality is causing data corruption. Is that a bug in the firmware on the board, or a bug in the Windows driver for it?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At least, as I interpret it, the USB implementation on the on-board debugger and the PC side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You could try change the settings like buffer sizes and poll rate on the PC side.&lt;BR /&gt;I have a screenshot, only not from an English language system. But I suppose you get the idea:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frank_meyer_0-1685699536640.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226034iB2706E1780EFEEBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frank_meyer_0-1685699536640.png" alt="frank_meyer_0-1685699536640.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1662588#M52842</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2023-06-02T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663052#M52847</link>
      <description>&lt;P&gt;No, I know how to configure P1. I mentioned P1 just to explain how I tried both the LPXpresso virtual COM port and an external USB-to-serial cable, to isolate where the data corruption was occurring. My testing showed that the problem is &lt;EM&gt;not&lt;/EM&gt; in my own serial port code.&lt;/P&gt;&lt;P&gt;There is a problem with the LPCXpresso virtual COM port functionality, either in the LPCXpresso board's USB implementation (in the LPC4322) or in the Windows driver.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 00:51:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663052#M52847</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2023-06-05T00:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663093#M52851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to reduce the baud rate for example from 115200 to 9600, is it okay?&lt;/P&gt;
&lt;P&gt;I suppose that mismatch of transmitter/receiver uart clock leads to the issue.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 02:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663093#M52851</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-06-05T02:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663253#M52854</link>
      <description>&lt;P&gt;I tried 19200. It didn't make a difference. The same data corruption occurs.&lt;/P&gt;&lt;P&gt;The nature of the data corruption doesn't look like a baud rate mismatch. It looks as though, when the data corruption occurs, it does so by reinserting a previously-received block of data into the data stream. It looks as though it's a bug in buffer management, or maybe USB packet retries, in either the LPCXpresso's on-board LPC4322 or in the Windows driver.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 07:31:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1663253#M52854</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2023-06-05T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1665017#M52887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls download LPCScrypt tools from the link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc4300-arm-cortex-m4-m0/lpcscrypt-v2-1-2:LPCSCRYPT" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc4300-arm-cortex-m4-m0/lpcscrypt-v2-1-2:LPCSCRYPT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can use the tools to refresh the CMSIS-DAP driver with the tools.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1665017#M52887</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-06-07T08:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1665096#M52891</link>
      <description>&lt;P&gt;There is a JLink firmware available from the Segger website for newer LPC-Link variants as well.&lt;BR /&gt;I have not tested this version, but have converted most of my onboard ST-Link with the Segger JLink firmware. And those work quite well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 10:20:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1665096#M52891</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2023-06-07T10:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: TX data corruption on virtual COM port on LPCXpresso55S28</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1671701#M53067</link>
      <description>&lt;P&gt;I have installed LPCScrypt v2.1.2, and used it to update the on-board firmware.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;LPCScrypt - CMSIS-DAP firmware programming script v2.1.2 Nov 2020.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Press any key to continue . . .&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Booting LPCScrypt target with "LPCScrypt_240.bin.hdr"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;LPCScrypt target booted&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Programming LPCXpresso V2/V3 with "LPC432x_IAP_CMSIS_DAP_V5_361.bin"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Error: &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;Command&lt;/SPAN&gt; &lt;SPAN&gt;line&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;:1: Verify Error 0xb 0x1a007d40&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Script cmd: &amp;nbsp; &amp;nbsp; &amp;nbsp;program C:\NXP\LPCScrypt_2.1.2_57\probe_firmware\LPCXpressoV2\LPC432x_IAP_CMSIS_DAP_V5_361.bin BANKA&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Last target cmd: =programPage 1a000000 8&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Terminated with errors&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;ECHO is off.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Retrying ...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; LPCXpresso V2/V3 programmed successfully and has the unique ID: KSAYBQHR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; To use: remove DFU link and reboot.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then, I tried using the virtual COM port. I still found it has data corruption, as before.&lt;/P&gt;&lt;P&gt;Note, it seems that the data corruption happens when the virtual COM port is being used at the same time as CMSIS-DAP debugging is in-progress (I'm using Rowley CrossWorks 4.10.3). If I stop debugging, then the serial data operates as expected.&lt;/P&gt;&lt;P&gt;I normally have this USB port plugged in to this Dell laptop's dock. I tried plugging it directly into a USB-C port on the side of the laptop, with an adapter cable. In this case, the data corruption happened a lot less often, but still happened.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 10:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/TX-data-corruption-on-virtual-COM-port-on-LPCXpresso55S28/m-p/1671701#M53067</guid>
      <dc:creator>craigmcqueenir</dc:creator>
      <dc:date>2023-06-19T10:04:52Z</dc:date>
    </item>
  </channel>
</rss>

