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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,305 次查看
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 项奖励
回复
1 解答
1,152 次查看
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 项奖励
回复
3 回复数
1,153 次查看
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 项奖励
回复
1,152 次查看
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 项奖励
回复
1,152 次查看
shkim9
Contributor II

this problem solved.

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

j-link error.PNG

0 项奖励
回复