cancel
Showing results for 
Search instead for 
Did you mean: 

error in debugging stm32f103rbt6 with jlink

darestani
Associate II
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?

8 REPLIES 8
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
Up vote any posts that you find helpful, it shows what's working..
emalund
Associate III
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
Associate II
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
Posted on August 28, 2012 at 15:29

does it work with a devboard?

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
Up vote any posts that you find helpful, it shows what's working..
darestani
Associate II
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

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
Up vote any posts that you find helpful, it shows what's working..
darestani
Associate II
Posted on September 02, 2012 at 14:23

hello

my problem is solved.

the problem was unconnected VDDA to 3.3v

thanx