Closed Xhendos closed 5 years ago
After hours of research it turned out that it was a hardware error on my part and not a software error on your part. Adding a 0.1 uF decoupling capacitor solved the issue.
$ stm8flash -c stlinkv2 -p stm8l151?4 -u
Determine OPT area
Due to its file extension (or lack thereof), "Workaround" is considered as RAW BINARY format!
Unlocked device. Option bytes reset to default state.
Bytes written: 13
After hours of research it turned out that it was a hardware error on my part and not a software error on your part. Adding a 0.1 uF decoupling capacitor solved the issue.
$ stm8flash -c stlinkv2 -p stm8l151?4 -u Determine OPT area Due to its file extension (or lack thereof), "Workaround" is considered as RAW BINARY format! Unlocked device. Option bytes reset to default state. Bytes written: 13
hi, super, but... capacitor? please where?
I am trying to program the STM8L151K4T6. I am aware that chips may be locked and read only. That's why I tried to unlock it. When I do, I get the following output:
When I try to read the current factory bytes, I get the following output:
This means that reading nor writing is not working. There's always the
... Tries exceeded
message beforestm8flash
stops.When I plug in the
stlinkv2
and print my kernel message I get the following output.This is my
/etc/udev/rules.d/49-stlinkv2.rules
file.Does anyone else got issues with the STM8L151K4T6 aswell or is it just me? I am able to use this stlinkv2 for programming the STM32F103C8T6 so the programmer is working.