Debug on FRDM-K22F fails: error in final launch sequence

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

Debug on FRDM-K22F fails: error in final launch sequence

1,159 Views
florianpantale1
Contributor II

After working successful with FRDM-K22F board fro several month, I can't launch the debugger anymore, I get the following message:

Error in final launch sequence
Error: Unable to configure core for probe index 1.
Wire not connected

LinkServer has been terminated and will be restarted.
Please restart your debug session.
If the problem recurs, please power cycle your debug probe and restart MCUXpresso IDE.
Error: Unable to configure core for probe index 1.
Wire not connected

LinkServer has been terminated and will be restarted.
Please restart your debug session.
If the problem recurs, please power cycle your debug probe and restart MCUXpresso IDE.

There are some hints to solve the problem for other boards like QN908x eval board but the solutions are applicable to K22F MCU. Does anyone has a solution for this?

Best thanks.

1 Reply

1,029 Views
florianpantale1
Contributor II

The problem is similar to problems described for other boards like Error: Unable to configure core for probe index 1. and https://community.nxp.com/thread/478077 .

Cause of the problem: if you flash a software that corrupts the SWD pin settings during initialization, OpenSDA can't take control of the target MCU.

Solution: same as solution proposed in other discussions

  1. You need an external SWD programmer, see MCUXpresso User Guide for a list of supported debug probes
  2. Remove J10 and J13 jumpers: SWD_DIO and SWD_CLK are isolated from OpenSDA MCU.
  3. Connect the debug probe to J11 10-pin connector, beware of the polarity
  4. Program a firmware that does not corrupt the SWD pins
  5. The debug probe has control over the SWD port
  6. Disconnect the debug probe and insert J10 and J13 jumpers
  7. The board can be programmed again with OpenSDA

Hope this will help.