2025-01-21 12:22 PM - edited 2025-01-21 12:33 PM
Issue with STM8S103 Code Uploading on Identical PCB Boards
I have two identical PCB boards, both equipped with the STM8S103 microcontroller. One board functions perfectly, with code uploading and running as expected, while the other does not.
Voltage Measurements
Microcontroller Replacement
I would greatly appreciate any insights or suggestions to identify the root cause of this issue
Thank you!
2025-01-21 01:00 PM
Welcome @SuwinManudewa, to the community!
As you have already described, there was either a problem with the board where you soldered down the apparently faulty STM8S, or the programming went wrong beforehand. I suspect the former, as I've seen quite a few boards with invisible shorts and other issues.
In this context: is your ST-LINK/V2 one of those fakes in a colourful tin can?
Regards
/Peter
2025-01-23 08:21 AM
is there perticular reason the STM8S103's NRST pin goes to 1.6V and the SWIM pin to 3.2V???
2025-01-23 12:43 PM
I am not aware of any reason for this.
Will you also answer my question?
2025-01-23 01:04 PM
Badly soldered, improper orientation. If the parts Ok on a simpler board, review your PCB, check nets and components placed.
Two drivers attempting to drive in different states? Anything programmed on to the IC?
Is this a DC voltage, or oscillating level?