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

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

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

Jump to solution
873 Views
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 Kudos
Reply
1 Solution
645 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
646 Views
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 Kudos
Reply