Debug Console: Wrong COM Port

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

Debug Console: Wrong COM Port

ソリューションへジャンプ
3,558件の閲覧回数
rjleiser
Contributor II

I had a development board, and it made COM Port 9.

My custom board with a debug probe made COM Port 10.

I made a new project for my custom board, and changed the debug console under 'Peripherals->Compoents->Utilities'. My board uses FLEXCOMM5. I successfully updated my code and changed to that.

Now if I build and debug my code, it finds the LinkServer, but nothing comes out of the debug console window.

If I open putty, the COM Port 9 is showing all of the debug messages.

wrong_comport.png

I can't find a way to change this anywhere in the MCUXpresso IDE...?

I've tried deleting COM Ports from device manger (Windows10).

I tried deleting the project .launch file.

 

 

0 件の賞賛
返信
1 解決策
3,501件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rjleiser ,

"But the point is that the 'debug console' shows nothing. "

->> Because have configured to UART console, there is message in putty.

If you want to print to Debug Console, choose "Semihost console" as below:

 

Alice_Yang_0-1667788710963.png

 

BR

Alice

 

元の投稿で解決策を見る

6 返答(返信)
3,531件の閲覧回数
rjleiser
Contributor II

Yes, the dev board was NOT connected. I hadn't cinnected it in a long time.

If I now go back to the dev board ONLY, I get COM5 and it has the same problem, only putty can see COM5 messages:

dev board only connecteddev board only connected

 

If I go back to my custom board, then I have both COM9 and COM10.

When I first had just the dev board, there was only COM9 and the 'debug console' worked.

0 件の賞賛
返信
3,521件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rjleiser 

First of all, you need confirm which COM port is related to Flexcomm5.

You said " If I open putty, the COM Port 9 is showing all of the debug messages.", I think maybe this COM9 is related to Flexcomm5. 

Also check whether the RX/TX of Flexcomm5 configured. 

 

BR

Alice

 

0 件の賞賛
返信
3,518件の閲覧回数
rjleiser
Contributor II

Yes TX\RX are configured, otherwise there would be NO messages anywhere.

It would seem FlexComm5 is using COMport9.

But the point is that the 'debug console' shows nothing. And it now shows nothing on my custom board AND my development board.

 

If I disconnect my debug probe, then both COM9 and & COM10 disappear. And they both come back with a reconnection.

Having said that, it does not explain why my development board doesn't work at all, and there is only 1 COMPort for that.

 

 

0 件の賞賛
返信
3,502件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rjleiser ,

"But the point is that the 'debug console' shows nothing. "

->> Because have configured to UART console, there is message in putty.

If you want to print to Debug Console, choose "Semihost console" as below:

 

Alice_Yang_0-1667788710963.png

 

BR

Alice

 

3,493件の閲覧回数
rjleiser
Contributor II
Yes, thankyou. That worked for my development baord. I cannot test my custom board atm.
0 件の賞賛
返信
3,534件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @rjleiser 

From your Device Manager , it seems you connect two boards, please disconnect the development board, just connect your custom board. 

 

BR

Alice

0 件の賞賛
返信