Target request failed: Failed to step, An error occurred while trying to Step in target.

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

Target request failed: Failed to step, An error occurred while trying to Step in target.

跳至解决方案
874 次查看
danielchai
Senior Contributor I

Hi All,

I ported the BSP from K60F120M to my target board. I want to try the UART communication using MQX RTOS.

But when I try to debug it, it always gives me lost connection  error.

p1.png

When I try to step in it and find which part cause this problem, at first step(when try to disable interrupt and clear flags), it gives me error:

"Target request failed: Failed to step, An error occurred while trying to Step in target."

p2.png

I checked my debugger setting, it is already set to disable interrupt when stepping.

p3.png

Any advices will be appreciated.

Thank you.

-Daniel

0 项奖励
回复
1 解答
646 次查看
danielchai
Senior Contributor I

I figure it out. Because the ttya in the library is mapped to PTA1 and PTA2 which are also used for JTAG on my board.

I need to reconfigure the pin for it and it works.

在原帖中查看解决方案

0 项奖励
回复
1 回复
647 次查看
danielchai
Senior Contributor I

I figure it out. Because the ttya in the library is mapped to PTA1 and PTA2 which are also used for JTAG on my board.

I need to reconfigure the pin for it and it works.

0 项奖励
回复