MIMXRT1170-EVKB serial COM port input?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MIMXRT1170-EVKB serial COM port input?

1,034 次查看
VassiliN
Contributor III

I am trying to use one of the samples from the SDK 2.15.100, specifically evkbmimxrt1170_gpt_timer_cm7.

The code demonstrates how to use the GPT timer, but before starting the timer it send a prompt to the debug COM port using PRINTF() and them waits for the input. Pretty straitforward code. 

 

EnableIRQ(GPT_IRQ_ID);

PRINTF("\r\nPress any key to start the example");
GETCHAR();

/* Start Timer */
PRINTF("\r\nStarting GPT timer ...");
GPT_StartTimer(EXAMPLE_GPT);

 

The problem is MCUXpresso never gets my input from the COM port in debugger. 

I see the "Press any key to start the example" message then whatever the key I press it never reaches the GETCHAR() line. 

I  tried to use MCUXpresso built-in COM-port terminal  - the MCUXpresso IDE just hangs in this case. 

So I tried PuTTY instead, now I can see that the application thread is waiting for the status change on the LPUART (I suspended the thread to show you where it is waiting). Obviously it's the correct LPUART since I see the output in the PuTTY, right?

 

VassiliN_0-1727219766421.png

VassiliN_1-1727219887665.png

 

Am I missing some additional settings that would allow to accept LPUART input? Since I am running the SDK example, I assume it should have all the required settings right. 

Or maybe it's just a known issue, a bug that will be fixed at some point? 

 

 

 

0 项奖励
回复
3 回复数

1,006 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @VassiliN ,

Thanks for your interest in NXP MIMXRT series!

You're referring to the fact that it works fine with Putty serial, but you can't print to the message using the IDE's built-in serial tool, right? I tried to reproduce your problem locally but it works fine. Here are the results of my tests:

Gavin_Jia_0-1727232170695.png

Gavin_Jia_1-1727232180947.png

We suggest you check the configuration above, it is unlikely that this issue is a bug. Thanks in advance!

Best regards,
Gavin

0 项奖励
回复

985 次查看
VassiliN
Contributor III

Gavin, 

 

Thank for checking it for me, since GetChar() works on your side, I assume it is something on my side needs to be fixed. 

 

To clarify my situation, the output of PRINTF() works fine for me both in built-in Terminal in MCUXpresso and in PuTTY. The input of GetChar() does not work in both built-in Terminal in MCUXpresso and in PuTTY. I also set the Force Echo on PuTTY so I can see the characters Ima typing in the PuTTY terminal, but GetChar() still waits for the UART status change indefinetely.

 

I also checked my COM settings as you suggested, they are the same as in your picture and again the output works just fine, it's input that's not working.

Not sure if any preprocessor definitions might be involved or Debug Link settings? 

Any other suggestion for troubleshooting the issue?

 

0 项奖励
回复

969 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @VassiliN ,

Thanks for your update!

But I don't think it is any code related problem. Because your project works fine with other serial port tools. The only difference between my project and yours is that I'm using the JLink firmware from the on-board debugger and yours is the Linkserver firmware. Of course this shouldn't be the cause of the problem.

Most likely an unknown reason is that your IDE's built-in serial port utility is unable to receive input characters. It may help to try updating your IDE.

Best regards,
Gavin

0 项奖励
回复