i use jlink and my board is based on stm32h103 from OLIMEX. i convert 20pin connector of JTAG to 7pin connector in my board . the JTAG needs TRST , TDI , TDO , TMS , TCK and RST pins in every microcontroller that we want to debug and program it. i use a 7pin connector that is composed of : TRST , TDI , TDO , TMS , TCK , VCC and GND. i remove the RST pin because it is unused in stm32h103 board from OLIMEX. i use 10k ohm resistros to pull up and pull down pins based on OLIMEX board.
i use an interface borad to convert 20pin of JTAG to 7pin of my board.
i use KEIL for IDE and when i want to debug my board by it , a dialog box appears and displays:
"no cortex-m device found in the jtag chain.
please check the jtag cable and the connected device"
and in the below , KEIL displays :
"JLink Info: Could not measure total IR len. TDO is constant high.
**JLink Warning: No matching core found. Selecting default core (ARM7).
* JLink Info: Could not measure total IR len. TDO is constant high.
***JLink Error: Could not find supported CPU core on JTAG chain"
i put the images and documents in the link below :
http://www.4shared.com/rar/8Vrdrz35/doc1.html