frdm-k22f + IAR (j-link) cannot connect

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

frdm-k22f + IAR (j-link) cannot connect

Jump to solution
975 Views
shkim9
Contributor II
I am using the frdm-k22f board with IAR.
If connect J-link to J11 header (SWD Debug) and click Debug button in IAR, it will get error that connection is not possible as follows.

InitTarget (): PCode returned with error code -1.
All H/W connections have been verified.

I do not know what is happening.
error code 2.pngerror code.png
0 Kudos
1 Solution
822 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hello Kim, I hope you're doing well,

 

Could you please check if the project is configured as follows:

pastedImage_1.png

pastedImage_2.png

As you can see from the schematic, the J-link connection is through a SWD interface.

pastedImage_3.png

Also, could you please check if both J10 and J13 jumpers are disconnected?

 

Please, let me know if you continue to have any problems.

 

 

Best regards,

Sebastian

View solution in original post

0 Kudos
3 Replies
823 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hello Kim, I hope you're doing well,

 

Could you please check if the project is configured as follows:

pastedImage_1.png

pastedImage_2.png

As you can see from the schematic, the J-link connection is through a SWD interface.

pastedImage_3.png

Also, could you please check if both J10 and J13 jumpers are disconnected?

 

Please, let me know if you continue to have any problems.

 

 

Best regards,

Sebastian

0 Kudos
822 Views
shkim9
Contributor II

hello sebastian.

A new error has occurred\
j-link error.PNG
It seems that the OpenSDA bootloader is in flash.
so if i click "yes" button, bootloader may be erased.
I'll try if I can get an extra frdm board later.
best regards.
0 Kudos
822 Views
shkim9
Contributor II

this problem solved.

after unsecure device ("yes" click) , power off/on, debug connection successfully established.

j-link error.PNG

0 Kudos