Topic : Equipment Validation

Forum : ST7/STM8

Original Post
Post Information Post
November 13, 2012 - 10:46am

I have occaisional trouble erasing flash with the RLink. On troublesome boards it may take 20 or more attempts before it reports success. The other steps (program, verify, blank check, read die ID) all seem to work without this issue. Is this a known issue or what should I be checking? Is there an example circuit of what should be attached (if anything) to the pins used by the RLink............

Post Information Post
November 14, 2012 - 9:47am
Raisonance Support Team


This could happen if there are problems on Reset and/or power.

First please make sure you are using the latest version of the software.

Then please also make sure that the RLink is always able to drive the reset pin low, even when (if) the STM8 application is driving it too. Check for other components on the board that could be connected to Reset. (reset manager, big capacitor, etc.)

Note that the Erase procedure is one of the procedures during which the STM8 draws the more power. So if the power supply is near its limit, what you describe somteimes happens. (everything fine except Erase sometimes)

Please make sure you use one and only one power supply for the atrget board: either from the RLink (by plugging PW5V jumper) or from the board's supply. If using the board's supply, you MUST unplug the PW5V jumper or you end up having two conflicting power suplies.

Also make sure you plug the ADAPT jumper if your target board's power is under 3V.

For example circuits, I suggest you look at the Raisonance (REva, OP4) or ST (ST-EVAL) boards. The RLink works fine with all these. You can find the schematics of the Raisonance boards, and instructions about the RLink SWIM ADP jumpers, in the docs installed with Ride. You can find the schematics of the ST boards on the ST website. But basically, you just need to connect the four signals and make sure nothing prevents the RLink from driving them.

Best Regards,