I.MXRT1060 debugconsole via USB (NOT OpenSDA)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I.MXRT1060 debugconsole via USB (NOT OpenSDA)

ソリューションへジャンプ
757件の閲覧回数
patriciocohen
Contributor IV

Hi,

I need to use the debug console through one of the USB ports of the IMXRT1062. 

I have tried evkmimxrt1060_hello_world_virtual_com, but I can't see output in the PC using a terminal program. 

It is important to note though, that the com port is shown correctly in the Windows device manager.

I also tried the example evkmimxrt1060_dev_cdc_vcom_freertos and this works fine. After connecting to the com port via a terminal program in the PC, I received the echo of every char I send to the IMXRT.  However I need to connect the debug console to the virtual serial port, so this is not the functionality I need.

Your help will be greatly appreciated. 

Thank you!

Patricio

0 件の賞賛
返信
1 解決策
676件の閲覧回数
patriciocohen
Contributor IV

Hi @EdwinHz 

Patricio here again. The mystery is solved.

Every terminal works once you set DTR (Data terminal Ready). It was driving me crazy, but now everything is clear.

Thanks for your help.

Best regards,

Patricio Cohen

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
676件の閲覧回数
patriciocohen
Contributor IV

Hi @EdwinHz 

As a last resort I tried with the Tera Term terminal you showed in the picture. And guess what? Now it works, but only with Tera Term. Why??

It doesn't work with YAT, Termite, Hercules and several others terminals. Please explain what could be happening, I can't find a reason. 

Thank you.

Patricio

 

 

 

0 件の賞賛
返信
677件の閲覧回数
patriciocohen
Contributor IV

Hi @EdwinHz 

Patricio here again. The mystery is solved.

Every terminal works once you set DTR (Data terminal Ready). It was driving me crazy, but now everything is clear.

Thanks for your help.

Best regards,

Patricio Cohen

0 件の賞賛
返信
725件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Try the binary image here: https://www.utasker.com/iMX/RT1060.html#DUAL_USB_CDC_DEV

The description is:
"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 NXP MCUBootUtility.
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 [if blocked by the LPUART interface command "quit" to free it]. 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.

The second HSUSB enumerates as a second USB-CDC device and will echo back all received data."

This is the standard uTasker frame work which automatically allows the CLI to be accessed via UART, USB-CDC and Telnet connections (on Ethernet, Wifi or tethered).

In addition to such standard functionality it allows the i.MX RT (including its USBs) to be emulated for optimal development efficiency - see for example https://youtu.be/3irORtbc4e0

Regards

Mark


For our discounted i.MX and Kinetis stock availability see https://www.utasker.com/Shop/semi.html

0 件の賞賛
返信
736件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @patriciocohen,

Are you certain you are following all of the steps shown on the readme.txt file inside of the doc folder of the project? Also, make sure you are reading the correct COM port. For example, here the PC is able to detect both the connection to the debugger (COM16) as well as the connection to the USB serial device (COM42):

EdwinHz_0-1702685008618.png

But the "hello world" text comes from the USB serial device (COM42) not the J-Link (COM16):

EdwinHz_1-1702685170757.png

Make sure you are using the USB connection.

BR,
Edwin.

 

 

 

 

0 件の賞賛
返信
684件の閲覧回数
patriciocohen
Contributor IV

Hi @EdwinHz 

I tried even with my MIMXRT1060-EVK that I have here with no results. Could be a driver problem? The PC I'm using has Windows 10 and the VCOM installed driver is provided by Microsoft. 

With the EVK I'm experiencing the same problem as with my custom board.

What is the program you are using for showing the USB devices you show in the picture?

Thank you.

Patricio

0 件の賞賛
返信