Topic : RLINK v2.02 ADAPTER for STM8

Forum : ST7/STM8

Original Post
Post Information Post
April 16, 2009 - 7:57am
Guest

We want to use RLINK v2.02 present in the STR71x-SK/RAIS REVA starter kit for programming and Debugging of STM8 Microcontrollers.I have checked the RLink Capability by running the RLinkCapab which suggests that it can be used for the programming and debugging of STM8.

RLINK v2.02 present in the REVA kit doesn't have SWIM Connector.So please let us know how
can we connect RLINK to STM8 Microcontroller ?

DETAILS OF RLINK.

1. Rlink Serial Number dngSR7R00001463
2.Rlink Firmware Version :0.0.3
3. RLink Driver :Jungo WinDriver


Thanks and Best Regards
Amit kumar

Replies
Post Information Post
+1
0
-1
April 16, 2009 - 11:08am
Raisonance Support Team

Hi,

First, please note that RLinkCapab only tells you what the software will allow you to do with the RLink.
It does not check anything regarding hardware, connections, etc.

The REva2.x board was designed at a time when STM8 did not exist, so it is not supposed to be able to do what you describe. Still, it should be possible, but we cannot guarantee that it will work in all cases.
Below I will explain how it can be done. However, in the end it might be simpler for you to purchase a new STX-RLink, which will come with a SWIM adapter including low-voltage support. Consider the time for you to make all the connections, the risk that it doesn't work because of parasites, or that you damage your REva by making a wrong connection, and the fact that you cannot use low voltage, and compare this to the price of a RLink...

Here is how you can use the REva2 with STM8:

First, set the REva jumpers as for JTAG, not ICC. (see the REva doc for more information)

Then, you can use a STM8 REva daughterboard.
It will work on the REva2.x as on the REva3.x.

For using the RLink with another target board, first make sure that you either break the RLink from the REva, or that you remove the daughterboard and all jumpers from the Eval part of the board: power, Enable, ... (keep the 2 config jumpers for JTAG on the RLink part)
Then, you will have to plug or solder wires on the 20-pts connector originally designed for ARM following this spec:
http://raisonance-forum.xsalto.com/viewtopic.php?id=2449
Search the page linked above for "20 pts(REva2)".
In short, connect pins 3, 7 and 13 of the 20-pts connector together.
Then you can use pins 3 (GND), 2 (SWIMDATA), 7 (VCC) and 6 (RST) of the 10-pts connector for connecting to the STM8.
When doing all these connections, try to use wires as short as possible, to avoid parasite issues.
At last, measure the resistance between this point and VCC and if needed add a pullup resistor as explained in the link, in order ot have a resulting pullup between 500Ohms and 1K.
(this depends on the target board, its power voltage, its pullups, etc.)

Note that in this configuration, you cannot connect to boards that are powered at less than 2.7V.

I hope it helps.

Best Regards,

Vincent

+1
0
-1
April 16, 2009 - 11:39am
Guest

Dear Vincent,

Thanks for the immediate response and suggestion !.

I also strongly feel that it is good to buy new STX-RLINK.

Thanks and Best Regards
Amit Kumar