Skip to main content
Visitor II
March 9, 2024
Solved

programming STM8S103 through ST-Link V2

  • March 9, 2024
  • 1 reply
  • 1784 views

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?

    This topic has been closed for replies.
    Best answer by Michal Dudka

    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).

    1 reply

    Graduate II
    March 10, 2024

    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).