<?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: Disabling DTR check in USB Debug console+ fsl_shell in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778884#M28158</link>
    <description>&lt;P&gt;I have tried a lot of things, but nothing seems to work.&lt;/P&gt;&lt;P&gt;Please someone help me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patricio&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 20:02:52 GMT</pubDate>
    <dc:creator>patriciocohen</dc:creator>
    <dc:date>2023-12-21T20:02:52Z</dc:date>
    <item>
      <title>Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778199#M28126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After some days I have managed to make the debug console work through USB. At first I had the problem that the MCU program was hung until the DTR signal was activated in the PC terminal. After some research I was able to disable it and now the program runs without waiting for the DTR signal to be set.&lt;/P&gt;&lt;P&gt;Now I'm experiencing the same problem when adding the fsl_shell to the project. Everything gets stuck until DTR signal is sent from the terminal. I haven't been able to make it work, can someone at NXP give me a helping hand?&lt;/P&gt;&lt;P&gt;My last post regarding this topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/I-MXRT1060-debugconsole-via-USB-NOT-OpenSDA/m-p/1775742" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/I-MXRT1060-debugconsole-via-USB-NOT-OpenSDA/m-p/1775742&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Patricio&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 22:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778199#M28126</guid>
      <dc:creator>patriciocohen</dc:creator>
      <dc:date>2023-12-20T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778823#M28152</link>
      <description>&lt;P&gt;Hi Patricio&lt;/P&gt;&lt;P&gt;The terminal sends the DTR and RTS states via the SET_CONTROL_LINE_STATE request on the control endpoint 0. This is the request value &lt;STRONG&gt;0x22&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;If you can identify where this OUT data is handled on that control endpoint you can see how the code responds to it. Presumably it reacts to the state that is received (the DTR is the first bit in wValue) and then you can remove this (presumably unwanted) handling and execute any pre-requisit for operation (from there) automatically when the device has enumerated.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For industrially proven USB solutions for professionals since 2008 (compatible on Kinetis and i.MX RT) see&lt;BR /&gt;&lt;A href="https://www.utasker.com/docs/uTasker/USB_User_Guide.PDF" target="_blank"&gt;https://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.utasker.com/docs/uTasker/uTaskerV1.3_USB_Demo.PDF" target="_blank"&gt;https://www.utasker.com/docs/uTasker/uTaskerV1.3_USB_Demo.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;For our discounted i.MX and Kinetis stock availability see &lt;A href="https://www.utasker.com/Shop/semi.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.utasker.com/Shop/semi.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 16:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778823#M28152</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2023-12-21T16:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778884#M28158</link>
      <description>&lt;P&gt;I have tried a lot of things, but nothing seems to work.&lt;/P&gt;&lt;P&gt;Please someone help me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patricio&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778884#M28158</guid>
      <dc:creator>patriciocohen</dc:creator>
      <dc:date>2023-12-21T20:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778892#M28159</link>
      <description>&lt;P&gt;Hi Patricio&lt;BR /&gt;&lt;BR /&gt;Please load the binary image here to your RT1060EVK: &lt;A href="https://www.utasker.com/iMX/RT1060.html#DUAL_USB_CDC_DEV" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.utasker.com/iMX/RT1060.html#DUAL_USB_CDC_DEV&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The description is:&lt;BR /&gt;"&lt;STRONG&gt;Complete project reference with dual-USB-CDC device, including boot loader, which can be loaded (copied to its QSPI-Flash) using your favorite loading tool - for example &lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility" target="_blank" rel="noopener nofollow noreferrer"&gt;NXP MCUBootUtility&lt;/A&gt;.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;This application supports a command line interface on the LPUART (connected to the board's VCOM interface) at 115'200 Baud. When the first HSUSB interface is connected to a host it appears as the same command line interface via USB-CDC [&lt;I&gt;if blocked by the LPUART interface command "quit" to free it&lt;/I&gt;]. In the USB menu a USB-CDC to LPUART bridge can be commanded using the comand "usb-serial", whereby the LPUART's baud rate follows that set by the terminal emulator on the USB-CDC interface.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The second HSUSB enumerates as a second USB-CDC device and will echo back all received data.&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;and tell me whether you have the same issue with it or not.&lt;BR /&gt;&lt;BR /&gt;Depending on the result I may then be able to tell you what needs to be changed in the SDK reference to allow it to work.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778892#M28159</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2023-12-21T20:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778901#M28160</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Unfortunately my project is based in FreeRTOS, so what you are offering is not a solution for me.&lt;/P&gt;&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;Patricio&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778901#M28160</guid>
      <dc:creator>patriciocohen</dc:creator>
      <dc:date>2023-12-21T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778914#M28162</link>
      <description>&lt;P&gt;Hi Patricio&lt;BR /&gt;&lt;BR /&gt;Running the binary to answer the question would help.&lt;BR /&gt;&lt;BR /&gt;The project also works with FreeRTOS so if you don't find a solution quickly it may help save you time and cost. I am however focusing on identifying the SDK issue so that the root cause is understood; since I have the capability to simulate the complete USB operation it is usually quite easy to understand what is actually going on and provide a fix to learn from: Eg. &lt;A href="https://www.youtube.com/watch?v=3irORtbc4e0&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=31" target="_blank"&gt;https://www.youtube.com/watch?v=3irORtbc4e0&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=31&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 21:51:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1778914#M28162</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2023-12-21T21:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779347#M28176</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I checked the SDK reference that you are using.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USB_DeviceCdcVcomCallback()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;fsl_component_serial_port_usb.c&lt;/STRONG&gt; there is a case that handles the line state:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;case kUSB_DeviceCdcEventSetControlLineState:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It handles the state with (I think it calls it DTE with reference as an input since it is DTR):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (0U != (acmInfo-&amp;gt;dteStatus &amp;amp; (uint8_t)USB_DEVICE_CDC_CONTROL_SIG_BITMAP_DTE_PRESENCE))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* DTE_ACTIVATED */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if (1U == serialUsbCdc-&amp;gt;attach)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;serialUsbCdc-&amp;gt;startTransactions = 1U; &lt;FONT color="#0000FF"&gt;&amp;lt;---- allows the code to operate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* DTE_DEACTIVATED */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if (1U == serialUsbCdc-&amp;gt;attach)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;serialUsbCdc-&amp;gt;startTransactions = 0U; &lt;FONT color="#FF0000"&gt;&amp;lt;---- causes the code to spin forever on a semaphore&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and if it is set to 0 serialUsbCdc-&amp;gt;startTransactions is set to 0 and the result is that the code spins in a wait loop on a semaphore called _debugConsoleReadWaitSemaphore in GetChar() so nothing is done (apart from handling USB interrupts).&lt;/P&gt;&lt;P&gt;If you set&lt;BR /&gt;serialUsbCdc-&amp;gt;startTransactions = 1U;&lt;BR /&gt;in both cases it is then insensitive to the DTR state and so will always operate.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 19:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779347#M28176</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2023-12-22T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779766#M28186</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Thanks for your help. Unfortunately the problem persists. So, I modified the current fsl_shell.c to use the debug console instead of serial manager, and everything works great now.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patricio&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 22:53:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779766#M28186</guid>
      <dc:creator>patriciocohen</dc:creator>
      <dc:date>2023-12-25T22:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling DTR check in USB Debug console+ fsl_shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779780#M28187</link>
      <description>&lt;P&gt;Hi Patricio&lt;BR /&gt;&lt;BR /&gt;That change worked in the original SDK reference but if you use it within a different environment it may have other issues and also not work whatever the state of the DTR is.&lt;BR /&gt;This is because the examples are generally to show a specific operation and not necessarily work as a part of a larger design - in the case of the original example the blocking on the semaphore would stop 'everything else' working too, unless each 'example' is put into a dedicated task in a pre-emptive multitasking environment and the tasks don't block each other.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 01:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Disabling-DTR-check-in-USB-Debug-console-fsl-shell/m-p/1779780#M28187</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2023-12-26T01:23:49Z</dc:date>
    </item>
  </channel>
</rss>

