Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
February 4, 2009 - 2:14pm
|
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. 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, |
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
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
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
Okay,
Can you give an indication of when ST7_pgm will have the multi-RLink feature?