Topic : Using multiple Rlinks for mass programming

Forum : ST7/STM8

Original Post
Post Information Post
February 4, 2009 - 2:14pm
Guest

Hi,

We need to program many, many boards with ST7FOX devices via Rlink. I have searched the forum but is seems that it is not (yet) possible to use multiple (8 or 16) Rlinks on a single PC with the programming batch file.
In Post 2496#5, Vincent says "It can be done but it requires some multi-process programming on your side".

Can I please get more information on this? Is it possible for us to write a C++ (or whatever) program that calls API functions of your Rlink driver DLL or something like that?

Thanks,
Lubine

Replies
Post Information Post
+1
0
-1
February 4, 2009 - 6:16pm
Raisonance Support Team

Hi,

For this you have to use ST7_pgm.exe.
Call it without argument from a command prompt and it will display its doc.

But you will have to be careful, as there is no way to predict which RLink the software will connect to.
It depends on Windows and the other USB devices you have on the PC and a lot of other things that I'm not aware of.
This can make error reporting and recovery quite tricky.

I have implemented an improvement for this in the Cortex-M3 programming executable, but I have not done it for ST7.
I don't know if or when I will do it. For sure not before I have some customer feedback on the Cortex version.

Best Regards,

Vincent

+1
0
-1
February 14, 2009 - 3:44pm
Guest

Hi,

I am thinking of the following, concerning multiprogramming:
I connect 16 Rlink's to a PC that does not have Ride7 or ST7_pgm installed. Can I write an application that talks to the Rlink's directly using microsoft's Winusb library? It is intended to let user-mode programs talk to USB devices. I haven't used winusb yet but I think it should be possible. Is there a description of the bytes or messages that are sent over the USB link with the Rlink?

Thanks
Lubine

+1
0
-1
February 16, 2009 - 10:15am
Raisonance Support Team

Hi,

No, you cannot do that, sorry.
(The RLink commands are not public, and the list of commands for programming ST7s is huge and complex.)

I am working on the multi-RLink feature.
I have already implemented it in Cortex_pgm, but I will need more time to generalize it to the other tools, including ST7_pgm.

So I'm afraid you will have to wait. (and in the end it will still be with ST7_pgm)

Best Regards,

Vincent

+1
0
-1
February 16, 2009 - 10:49am
Guest

Okay,
Can you give an indication of when ST7_pgm will have the multi-RLink feature?