Skip to main content
darestani
Associate II
Aug 23, 2012 10:37 UTC
Question

error in debugging stm32f103rbt6 with jlink

Posted on August 23, 2012 at 12:37

hello everyone

i am new to cortex-m3 . i use a stm32h103 based board and when i want to load a program to chip , KEIL returns an error that is :

''no cortex-m device found in the jtag chain.

please check the jtag cable and the connected device''

and in the message box it said :

''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''

can anyone help me to find the trouble?

    This topic has been closed for replies.

    8 replies

    Tesla DeLorean
    Guru
    Aug 23, 2012 12:50 UTC
    Posted on August 23, 2012 at 14:50

    Perhaps you have the wiring wrong, or the chip is not properly powered?

    Use SWD vs JTAG.

    Use the JLink.exe tool directly.

    Provide the exact board name for a commercial one, or a schematic for a custom one.

    Not much to go on here.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    emalund
    Associate III
    Aug 23, 2012 15:00 UTC
    Posted on August 23, 2012 at 17:00

    I, when starting with a new chip, always insist on having a devboard, they are (usually) very cheap.

    having a devboard enables a simple determination between

    ''is it my custom board''

    OR

    ''is it (my use of) the tools''

    Erik
    darestani
    darestaniAuthor
    Associate II
    Aug 28, 2012 07:49 UTC
    Posted on August 28, 2012 at 09:49

    i use jlink.exe but it doesnt give any response.

    is there anyway to program the chip by jlink directly?

    emalund
    Associate III
    Aug 28, 2012 13:29 UTC
    Posted on August 28, 2012 at 15:29

    does it work with a devboard?

    Tesla DeLorean
    Guru
    Aug 28, 2012 15:03 UTC
    Posted on August 28, 2012 at 17:03

    is there anyway to program the chip by jlink directly?

    Yes, but doing so manually from the J-Link command console is rather involved.

    You could try the J-Flash ARM application, I believe it supports internal flash on STM32F4 devices.

    All this of course presupposes you have the JTAG/SWD connection suitably designed on your board.

    You alternative way to inject initial code would be via the USART1 and the system loader (BOOT0 = 1)

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    darestani
    darestaniAuthor
    Associate II
    Aug 29, 2012 04:56 UTC
    Posted on August 29, 2012 at 06:56

    i have a lpc2378 development board from OLIMEX and JLINK.exe shows that you connect a JLINK by S/N and revision and ... .

    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 link below for my docs and pictures

    http://www.4shared.com/rar/8Vrdrz35/doc1.html

    Tesla DeLorean
    Guru
    Aug 29, 2012 17:53 UTC
    Posted on August 29, 2012 at 19:53

    I'm not a member, just archive and attach it here.

    The mostly likely issues would appear to be wiring, or powering of the part.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    darestani
    darestaniAuthor
    Associate II
    Sep 2, 2012 12:23 UTC
    Posted on September 02, 2012 at 14:23

    hello

    my problem is solved.

    the problem was unconnected VDDA to 3.3v

    thanx