Topic : RLink SWD Debug with STM32

Forum : ARM

Original Post
Post Information Post
June 4, 2009 - 8:34am
Guest

Hi,

on some of the STM32 SPI3 is connected to the same pins like JTAG. For a new design i would now go for SWD instead of JTAG to avoid conflicting with the SPI3 pins.

I'm currently using Ride7 7.18.0903 and RKit 1.18.0903 in connection with an RLink pro and an Olimex STM32-H103. I cecked the settings for the Rlink and tried both SWD and JTAG. With RKit set to SWD the programming works, but if i set it to JTAG i get the error message 'Unable to read IDCode. Please check that the target is connected.' The jumpers on the RLink are set to JTAG all the time.

Now i'm a bit confused. Until one of the last versions of RKit SWD was not supported. With this version it seems to work. But JTAG should also work? Please clarify.

Best regards
Ralf

Replies
Post Information Post
+1
0
-1
June 4, 2009 - 9:51am
Raisonance Support Team

Hi,

JTAG and SWD should both work in the version that you have.

Keep in mind that once you have connected to the device using SWD, you must power it OFF and ON in order to connect to it using JTAG. Please check that this is not the source of the problem you observe.

Best Regards,

Vincent

+1
0
-1
June 9, 2009 - 8:30pm
Guest

Hello,
i tried to connect STM32 to RLINK using SWD pins as follows
pin 7 ---> swdio
pin9 ----> swclk
pin15 --->nrst
vdd
gnd

once i try to debug it report "error reported by the DTC".

THANKS.

+1
0
-1
June 10, 2009 - 11:44am
Guest

problem resolved ...
CLK pin was not connected.

+1
0
-1
November 11, 2009 - 4:49pm
Guest

I also had a similar problem with the Ride and Flasher writing out "error reported by the DTC"...

With the Rlink debugging and programming tool there are pcb header "JTAG-SWD" with a 20 pin
header (as described above). This pcb header has 2 jumpers. The marking indicate "JTAG" and "SWD"
setting. But NOTE: Only the first jumper close to the marking should be changed. I changed
both of them, causing the "error reported by the DTC" printout...

Best regards,

Per

+1
0
-1
November 12, 2009 - 9:31am
Raisonance Support Team

Hi,

Both jumpers should always be left on "JTAG" side, even when using SWD.

This is just a mistake in the printing on the PCB.

More information here:
http://raisonance-forum.xsalto.com/viewtopic.php?id=2449

And in the GettingStartedARM.pdf doc installed with Ride.

I hope it helps.

Best Regards,

Vincent