Topic : Rlink Debug Error

Forum : Ride IDE

Original Post
Post Information Post
May 12, 2010 - 4:54pm
Guest

Hi,

I am using Ride7 7.28.10 as IDE, RLink STM8 as debug tool and STM8S105C4 as processor. But as soon as I press the 'Start Debugging' button, Ride7 gives me an error like below:
OPI Driver Error (1)
PC is not at expected value after reset.
Is the RST pin connected?

From 'Advanced Options' I can connect RLink and read serial number. I can debug my code using ST Visual Develop IDE with the same board.
What is the possible problem that causes this error?

Thanks!

Replies
Post Information Post
+1
0
-1
May 12, 2010 - 6:58pm
Raisonance Support Team

Hi,

Which version of the RKit-STM8 are you using?
Please make sure you are using the latest version.

The most current source of this error is that the RST pin of the STM8 cannot be driven by the RLink. Either because it is not connected or because another component interferes. Ride checks this because if you program an application that disables SWIM, you cannot erase the flash without using the reset pin. So it will not program anything if the rst pin cannot be driven. Maybe STVD allows it, because the spec does not specify what should be done in this situation.

If the RST pin is correctly connected, then the second most likely source is a wrong device selection in the software.

If these two hints don't help, please send us (support@raisonance.com) the schematic of your board and the complete markings on your STM8 device. (or a picture of it)

Best Regards,

Vincent