'Got a "Fatal Error : Failed to connect to CPU Session aborted !" in IAR IDE

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

and I use IAR Workbench Version 7.80 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.

So,Please reply me.

Regards, Pratik



Solution 1:[1]

you would need to check the following 2 settings in your project options:

  1. in project Options, Category:Debugger-> Setup->Driver, make sure you set driver setup to whatever driver youre using. I gave an I-jet and I set driver to I-jet
  2. in project Options, Category-> I-jet, Interface, select Probe Confog to Auto and Interface to SWD

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 YounesCHTIOUI