Topic : Driving Ride from the outside

Forum : Ride IDE

Original Post
Post Information Post
July 7, 2009 - 4:26pm
Guest

I noticed in a previous post "ST7/STM8 » Help problem with the protocol STM8 - SWIM" @

http://raisonance-forum.xsalto.com/viewtopic.php?id=2714

VincentC mentioned "please note that it is possible to drive the Ride debugger (and therefore RLink) from outside."

Does this mean I can control Ride and Rlink from another program? If so, where can I find details for this?

Many thanks

Replies
Post Information Post
+1
0
-1
July 9, 2009 - 5:08pm
Raisonance Support Team

Hi,

Well, if you only want to program, the simplest thing is to use the command-line executables "ST7_pgm.exe", "STM8_pgm.exe", "Cortex_pgm.exe", etc. that come with Ride.

For debugging it's more complex as you have to use COM interfaces, and I'm not even sure the doc for that has been written yet. ;(

Can you please give us more information on the context of your request?
(which target device? programming? debugging? testing? etc.)

Best Regards,

Vincent

+1
0
-1
July 9, 2009 - 5:30pm
Raisonance Support Team

Hi,

In fact there is some doc, although it is far from complete, and I also found an example.

Please have a look there:
http://raisonance-forum.xsalto.com/viewtopic.php?pid=9889#p9889

I hope it helps.

Best Regards,

Vincent

+1
0
-1
July 15, 2009 - 12:14pm
Guest

Thank you for the information on the command line executables stm8_pgm.exe etc.

I am creating an automated testbench that can download, run and check different code images for the STM8S105 and STM8S103 devices.

I can use the stm8_pgm.exe to download and execute code on the Unit-Under-Test, and use the physical IO of the UUT to provide feedback on results of the test.

What would be really nice is a way to download code, set a breakpoint, run to that breakpoint, then inspect memory (blocks of ram and individual io regs). The example script 'execution.pl' that uses Ride's COM interface that you point to in your last post looks like it does all that except for the inspect memory operation.

I have tried out the COM interface example using my own dbi file with partial success. (I have used the MATLAB and VB.NET environments rather than perl). I have been able to create the RideDebugger activeX object sucessfully and invoke the Init() and ScriptCreateSession() methods, although I am not sure I am gettting successful return values. I am also having trouble finding the correct signature for the ScriptRun() method. It would be very helpful to have a list of signatures (i.e COM types expected for return values and parameters) for all methods. Do you have something like a .tlb file for the dll?

Thank you for your support.

JPH

+1
0
-1
July 15, 2009 - 4:16pm
Raisonance Support Team

Hi,

In its previous post, Vincent provides a link where he explains how to get such information in Ride7 embedded documentation.

Regards,

Stéphane

+1
0
-1
July 15, 2009 - 6:06pm
Guest

Stephane

Thanks. Sorry for missing that information. I have found the embedded help and will have a further play.

Regards

JPH