Hi Kerry,
Thanks for the help .
It is quite useful.
Step by step
>>1. If you want to use the FRDM-KV31 as the JLINK debugger.
>> You must cut the wire in the J11, you can find the wire between J11 in the back side of the FRDM-KV31 board.
I did this, I diconnected SWD-IO and SWD-CLK from the related unpopulated jumpers.
>>Then you need to use the JLINK firmware, FRDM-KV31 on board opensda is the version 1.0.
>>So, please download JLINK firmare from this link:
>>SEGGER - The Embedded Experts - Downloads
>>Install the JLINK driver from this link:
>>SEGGER - The Embedded Experts - Downloads
>>(1) FRDM-KV31 power off, then press the reset button and hold on it, plug the board, you will find your board is a device named as "BOOTLOADER"
>>Release the RESET button
>>(2) Send "OpenSDA_V1.bin" to your "BOOTLOADER", wait the sending is finished.
>>(3)Power off the board and power on it again, you will find your board is the JLINK device.
I was already using the J-Link firmware so it was done previously and successfully working. I also attached another external board (prepared in the same way for MK22FN) including MKL82Z128XXX7 mcu and it is perfrectly working even for very high connection speeds. So the problem is not here neither.
>>2. Use the JLINK commander to check whether it can connect your MK22FN512VLH12
>>I have connect it to the FRDM-K22 board which also has the MK22FN512VLH12 chip, it can recognize the chip with JLINK commander.
And here the problem begins. The J-Link sees the MCU with SWD-DP ID0x2BA01477 as in your screen caption but is giving timeout error when tryin to unlock it. I also cannot apply erase command and gives error.
>>3, If you still have problem
>>Please refer to the FRDM-K22 board check your basic board.
>>The chip solid temperature can't be higher than 270 degree, other it maybe damaged.
I did not applied hot air, I soldered with normal soldering tools and heat is applied only to pins. So I do not expect overheating.
>> Reset pin should have 4.7K to 10K external pull up resistor,0.1uf to ground.
>> NMI and SWD_DIO should have 4.7K to 10K external pull up resistor.
Here maybe a difference. I applied 1uf (gnd) and 220Ohm (vdd) setup. But the same setup perfectly worked for the MKL82Z128XXX7 MCU so I also do not account it as a problem. Maybe, the two MCUs (MKL82xxx and MK22FNxxx) have different reset circuit??
Thank you much for your precious helps again.
best
gokhan