"Fatal Error : Failed to connect to CPU Session aborted !" in IAR IDE - MIMXRT1170

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

"Fatal Error : Failed to connect to CPU Session aborted !" in IAR IDE - MIMXRT1170

Jump to solution
2,449 Views
Charindu_Abeysekara
Contributor II

use CMSIS-DAP link for debugging and CMSIS-DAP firmware load successfully.

and I use IAR Workbench Version 9.50.2 IDE.

I can build code successfully.

But after I Got a "Fatal Error : Failed to connect to CPU Session aborted !" during "Download and Debug" a code from IAR IDE.

I could not find any solution behind this issue.

0 Kudos
Reply
1 Solution
2,416 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Charindu_Abeysekara ,

Thanks for your interest in NXP MIMXRT series!

I reviewed the error messages and found that you are trying to debug CM4 Core demo. But the CM7 Core is the primary core, CM7 is used to initialize CM4. So the reason for this error is that the CM4 core of the chip is not yet started and the debugger can't find it. You can try running the demo for the CM7 core.

 

Best regards,
Gavin

View solution in original post

0 Kudos
Reply
6 Replies
2,417 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Charindu_Abeysekara ,

Thanks for your interest in NXP MIMXRT series!

I reviewed the error messages and found that you are trying to debug CM4 Core demo. But the CM7 Core is the primary core, CM7 is used to initialize CM4. So the reason for this error is that the CM4 core of the chip is not yet started and the debugger can't find it. You can try running the demo for the CM7 core.

 

Best regards,
Gavin

0 Kudos
Reply
2,222 Views
Charindu_Abeysekara
Contributor II
And you have any idea why its only compile and debug cm7 files ,in keil it compile both cm4 and cm7.
0 Kudos
Reply
2,304 Views
Charindu_Abeysekara
Contributor II

hy Gavin

i also tryied the cm7 hello world example as well but the error remains.

Best Regards
Charindu

0 Kudos
Reply
2,258 Views
Charindu_Abeysekara
Contributor II
then i use j-link pro debugger and the its working.
0 Kudos
Reply
2,253 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Charindu_Abeysekara ,

I am glad to get the good news from your side!

In the previous case, was your CMSIS-DAP debugger external or on-board? Was it on the EVK or the EVKB? It seems to me that CMSIS-DAP shouldn't be wrong either. I'll test it again on my side afterward.

In any case, please start your enjoyable development journey!

Best regards,
Gavin

0 Kudos
Reply
2,250 Views
Charindu_Abeysekara
Contributor II
Hy gavin,

CMSIS-DAP debugger is onboard in the EVK.
Thank you for your time .

Best regards
Charindu
0 Kudos
Reply