AnsweredAssumed Answered

FRDM-K66 board with KDS 3.2 DEBUG

Question asked by baro on Jun 6, 2017
Latest reply on Jun 12, 2017 by baro

I am trying to debug the FRDM-K66 board with KDS 3.2 but cannot enter the debug session.

I have successfully loaded the openSDA binary (FRDM-K66 from segger website) through the bootloader. After this the board appears as a drive on windows 7 as "FRDM-K66FJ". At this point, D1 will turn on RED always. The KDS fails to connect and print the following:

 

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OpenSDA 2 compiled Feb 28 2017 19:27:57
Hardware: V1.00
S/N: 621000000
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...ERROR: Failed to halt CPU
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.
Please check power, connection and settings.

 

When I try the commander I get:

 

 

Only if I use the J-Flash tool to connect it connects, red led off and then if I try commander I also would be able to connect but if I run KDS debug it runs without stopping at main() and I can only terminate (no pause)

 

Please Help

Outcomes