cannot connect M7_1 on K322

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

cannot connect M7_1 on K322

Jump to solution
616 Views
Micha4566465
Contributor II

when I create an application project in Design Studio 3.6.x for K322,

I can debug the M7_0 core with my PEmicro and the Debug_FLASH_PNE configuration.

When I try to debug the M7_1 core, I cannot establish a connection to this core.

In console there is an error message:

"Could not connect to semihosting port due to connection timeout. Please check that the correct port number is configured."

The status always is halted at 95%.

At the end there is an error window with message: "error 138".

 

I checked that there are no breaking points at start up for the other core.

I also checked that I am using the 100-pin K322 and I checked the correct clock settings.

I checked that in both mex-files.

 

Can anybody help me please?

Tags (1)
0 Kudos
Reply
1 Solution
567 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Micha4566465,

Debug both cores in Launch Group:

danielmartynek_0-1758096453497.png

 

Let me know if you have questions,

 

BR, Daniel

 

View solution in original post

0 Kudos
Reply
3 Replies
568 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Micha4566465,

Debug both cores in Launch Group:

danielmartynek_0-1758096453497.png

 

Let me know if you have questions,

 

BR, Daniel

 

0 Kudos
Reply
412 Views
Micha4566465
Contributor II
That was the problem.
Thx
0 Kudos
Reply
579 Views
elsie78ash
Contributor I

Debugging the M7_1 core on K322 in Design Studio 3.6.x fails due to a semihosting connection timeout and "error 138." This issue likely stems from a port number misconfiguration or a race condition between the two cores, preventing a successful connection to M7_1. To fix this, ensure the correct semihosting port is set for M7_1 and consider initializing M7_0 in a way that doesn't interfere with the debugger's connection KaiserMemberServices to the second core.

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2170336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ecannot%20connect%20M7_1%20on%20K322%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewhen%20I%20create%20an%20application%20project%20in%20Design%20Studio%203.6.x%20for%20K322%2C%3C%2FP%3E%3CP%3EI%20can%20debug%20the%20M7_0%20core%20with%20my%20PEmicro%20and%20the%20Debug_FLASH_PNE%20configuration.%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20debug%20the%20M7_1%20core%2C%20I%20cannot%20establish%20a%20connection%20to%20this%20core.%3C%2FP%3E%3CP%3EIn%20console%20there%20is%20an%20error%20message%3A%3C%2FP%3E%3CP%3E%22%3CSPAN%3ECould%20not%20connect%20to%20semihosting%20port%20due%20to%20connection%20timeout.%20Please%20check%20that%20the%20correct%20port%20number%20is%20configured.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20status%20always%20is%20halted%20at%2095%25.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAt%20the%20end%20there%20is%20an%20error%20window%20with%20message%3A%20%22error%20138%22.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EI%20checked%20that%20there%20are%20no%20breaking%20points%20at%20start%20up%20for%20the%20other%20core.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20also%20checked%20that%20I%20am%20using%20the%20100-pin%20K322%20and%20I%20checked%20the%20correct%20clock%20settings.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20checked%20that%20in%20both%20mex-files.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3ECan%20anybody%20help%20me%20please%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2175008%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20cannot%20connect%20M7_1%20on%20K322%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2175008%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThat%20was%20the%20problem.%3CBR%20%2F%3EThx%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170945%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20cannot%20connect%20M7_1%20on%20K322%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170945%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214057%22%20target%3D%22_blank%22%3E%40Micha4566465%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EDebug%20both%20cores%20in%20Launch%20Group%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1758096453497.png%22%20style%3D%22width%3A%20686px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1758096453497.png%22%20style%3D%22width%3A%20686px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357258i42FC9C05AFCA11FE%2Fimage-dimensions%2F686x580%3Fv%3Dv2%22%20width%3D%22686%22%20height%3D%22580%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1758096453497.png%22%20alt%3D%22danielmartynek_0-1758096453497.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20you%20have%20questions%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170783%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20cannot%20connect%20M7_1%20on%20K322%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170783%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDebugging%20the%20M7_1%20core%20on%20K322%20in%20Design%20Studio%203.6.x%20fails%20due%20to%20a%20semihosting%20connection%20timeout%20and%20%22error%20138.%22%20This%20issue%20likely%20stems%20from%20a%20port%20number%20misconfiguration%20or%20a%20race%20condition%20between%20the%20two%20cores%2C%20preventing%20a%20successful%20connection%20to%20M7_1.%20To%20fix%20this%2C%20ensure%20the%20correct%20semihosting%20port%20is%20set%20for%20M7_1%20and%20consider%20initializing%20M7_0%20in%20a%20way%20that%20doesn't%20interfere%20with%20the%20debugger's%20connection%26nbsp%3B%3CFONT%20size%3D%221%202%203%204%205%206%207%22%20color%3D%22%23FFFFFF%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.kaisermemberservices.org%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%23FFFFFF%22%3EKaiserMemberServices%3C%2FFONT%3E%3C%2FA%3E%3C%2FFONT%3E%20to%20the%20second%20core.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E