Debug Console: Wrong COM Port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug Console: Wrong COM Port

Jump to solution
3,559 Views
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 Kudos
Reply
1 Solution
3,502 Views
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

 

View solution in original post

6 Replies
3,532 Views
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 Kudos
Reply
3,522 Views
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 Kudos
Reply
3,519 Views
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 Kudos
Reply
3,503 Views
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,494 Views
rjleiser
Contributor II
Yes, thankyou. That worked for my development baord. I cannot test my custom board atm.
0 Kudos
Reply
3,535 Views
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 Kudos
Reply