Topic : Programming STM8S103F with REval adapter RLink V2.10

Forum : ST7/STM8

Original Post
Post Information Post
March 31, 2011 - 3:03pm
Guest

Hello,

we recently decided to replace a ST7 microcontroller in one of our projects with a STM8 microcontroller. For programming the ST7 we used a RLink V2.10 programming adapter from the REval Starter Kit for ST7. Programming of the ST7 was done using the ICC protocol.

Now I would like to know if it is possible to use our programming adapter to programm an STM8 microcontroller using the SWIM protocol. If it is possible I would like to know if there are any pitfalls I have to look out for, and how I have to set the jumpers on the RLink V2.10. Unfortunately the descriptions I found only show the jumper configuration for our version of the programming adapter if ICC is used and not if SWIM is used.

Thanks for your help,
Stephan

Replies
Post Information Post
+1
0
-1
March 31, 2011 - 5:18pm
Raisonance Support Team

Hi,

Yes you can use this ADP for SWIM/STM8.

The first thing to do is to upgrade the software (both Ride7 and RKit-STM8 kits).
It includes a GettingStartedSTM8.pdf file that explains how to plug the jumpers for STM8.

You can also find some useful information here:
http://forum.raisonance.com/viewtopic.php?id=2449

In short, plug "SWIM" and remove "12MHz".
Plug "PW5V" and/or "Adapt" or not depending on the situation. (see GettingStartedSTM8.pdf)

The main pitfall is that if your target board (which includes the STM8) is not 5V compliant, then you cannot power it from the RLink, unless you add a regulator on the ADP. If you do it something will burn. (RLink or STM8 or ...) That might seem obvious but many customers migrating from ST7 to STM8 do this mistake.

Best Regards,

Vincent

+1
0
-1
April 5, 2011 - 12:08pm
Guest

Hi Vincent,

thanks for the fast reply. I already am using Ride7 and RKit-STM8 and I did consult the document GettingStartedSTM8.pdf.

Unfortunately this does not really help me. As I already said, we have the Rlink V2.10 (see GettingStartedSTM8.pdf, paragraph "5.5.5 Jumpers for ST7 REva board", page 27, the picture to the left with the blue Rlink). For this Rlink I can only find the jumper configuration for ICC mode and there are no labels on the Rlink indicating which jumpers I would have to change (and what settings I would have to change them to) for SWIM.

Am I missing something and can you point me to the correct information if I do?

Thanks a lot,
Stephan

+1
0
-1
April 5, 2011 - 2:33pm
Raisonance Support Team

Hi,

Are you using a REva board with a RLink v2.10 or a RLink with a STM8 adapter version 2.10? From your previous post I had understood it was a RLink+ adapter, but now it seems it's a REva...??? Please clarify.

If you are using a REva board, and if you have the latest/current version of RKit-STM8, then the jumpers setting for STM8 is shown in section "5.4.3 Jumpers for STM8 REva board", page 23 of the GettingStartedSTM8 dofument. (the board on the picture is green instead of blue, but it makes no difference) The page 27 you refer to is for ST7, not STM8.

Basically, you are using SWIM and not ICC, so you must plug the jumpers labeled "NOT ICC" and you must not plug the jumpers labeled "ICC"...

Best Regards,

Vincent

+1
0
-1
April 8, 2011 - 9:43am
Guest

VincentC wrote:
Hi,

Are you using a REva board with a RLink v2.10 or a RLink with a STM8 adapter version 2.10? From your previous post I had understood it was a RLink+ adapter, but now it seems it's a REva...??? Please clarify.

If you are using a REva board, and if you have the latest/current version of RKit-STM8, then the jumpers setting for STM8 is shown in section "5.4.3 Jumpers for STM8 REva board", page 23 of the GettingStartedSTM8 dofument. (the board on the picture is green instead of blue, but it makes no difference) The page 27 you refer to is for ST7, not STM8.

Basically, you are using SWIM and not ICC, so you must plug the jumpers labeled "NOT ICC" and you must not plug the jumpers labeled "ICC"...

Best Regards,

Vincent

Hi Vincent,

sorry if I didn't describe the hardware we are using clearly enough.
What we use here, is the RLink v2.10 from the REva board. I am aware, that the settings described on page 27 are for ST7. I was just referencing the section, since it contains the only picture that shows the old, blue version of the RLink that came with the REva board we have. The jumpers on this board are not labeled with "ICC" or "NOT ICC" (they have no labels at all) and as far as I can see, they do not match the lineup of the jumpers on the other, green board. Maybe it would help if I could supply you with a picture of our RLink. Is there a possibility to post a picture here on the board?

@liwuzq410077501: It would be nice if you could open a thread of your own for your question, since it is completely unrelated to the topic this thread is about. It generally is considered rude under the netiquette to hijack threads the way you did and it makes it extremely hard for other people to follow this thread if they have a similar problem. In addition, people who might have the same problem you have, will have difficulties to find your thread and the answers that might be there for them, if it is hidden in another unrelated thread.

Regards,
Stephan

+1
0
-1
April 11, 2011 - 11:06am
Raisonance Support Team

Hi Stephan,

The REva 2.x boards were designed before the SWIM protocol existed. They are not officially supposed to support it.
Sorry I forgot to mention this before.

Still, you should be able to use your STM8 daughterboard with a REva 2 motherboard by setting the jumpers the same way as for JTAG:

However, this will not allow you to use the RLink from the REva board to another board. For this you need a REva 3.x (which is also blue. forget about the colors please) or a stand-alone RLink.

Best Regards,

Vincent

+1
0
-1
April 11, 2011 - 11:23am
Guest

Hi Vincent,

thank you again for the quick answer.

Since we do already use our own board and used the programming adapter to program the ST7 on that external board through ICC, I guss we will just order a standalone RLink to program the STM8 through SWIM.

Regards,
Stephan