cancel
Showing results for 
Search instead for 
Did you mean: 

programming STM8S103 through ST-Link V2

vasantpailwan
Associate

ST VP Configuration - ST-Link - USB - SWIM - STM8S103F3
I have connected the "SWIM" and "GND" pins of 'ST-LINK V2' to the development PCB includes "STM8S103F3", the supply from the mobile charger is connected through the USB port of the PCB.
When I select 'Read all tabs', the message is shown as "Can't communicate with the device".
Then I turned the power off and on by pressing the reset button low.
When I tried to read the device, the message showed as "Device is protected".
The LED is flashing in every condition.
Each time the dongle LED glows initially, then flashes and then turns off.
what is wrong? how to solve?

1 ACCEPTED SOLUTION

Accepted Solutions

Probably you have small "blue pill" chinese board with STM8S103. I dont know why there are shipped with flashed program and read out protection. But it is simple to solve your problem. Go to tab "option bytes", set ROP value to "Read Out Protection Off" and then click "Program -> Current tab". That removes read out protection (and erase program).

View solution in original post

1 REPLY 1

Probably you have small "blue pill" chinese board with STM8S103. I dont know why there are shipped with flashed program and read out protection. But it is simple to solve your problem. Go to tab "option bytes", set ROP value to "Read Out Protection Off" and then click "Program -> Current tab". That removes read out protection (and erase program).