2021-04-04 01:50 AM
Program memory write stopped working for me. I tried with two STM8S005K6 chips. And everything works fine if I use some other STM8 chip.
Getting below error when trying using STVP.
Error : Programming failed
Error : Problem while trying to Reset swim and device. Apply a Power On Reset
Error : < PROGRAM MEMORY programming failed.
And below error when trying through IAR compiler.
Sun Apr 04, 2021 14:16:28: Failed to write chunk with size 1024 at address 0x8480: SWIM PROG error [42004]: Memory write error
DATA MEMORY and OPTION BYTE write is working perfectly. PROGRAM MEMORY read is working but NOT WRITE.
2021-04-05 01:01 AM
Have you connected any capacitor at VCAP pin? Try the same and reprogram.
2021-04-05 01:09 AM
Yes, I do have 0.1uF.
2021-04-05 01:13 AM
OH looks like I need to use 1uF.
2021-04-05 02:07 AM
did that solve your problem?
2021-04-05 02:08 AM
I don't have 1uF with me now. I will test it later and update.
2021-04-07 07:29 AM
I tried connecting 1uF capacitor, but it doesn't solve the problem.
2021-04-09 12:36 AM
Check the datasheet/programming manual of the device, where the suitable value for the VCAP is given.
I am using below circuit with my STM8S105C6 device. VCAP 680nF (recommended 480nF to 3300nF) and I am able to program it a couple to times.
Currently I am also facing same issue. Once it gets programmed, I can reprogram it multiple times but as I remove and reconnect the ST-Link, it is throwing same error.
Still trying to figure out what's wrong here. :\ :(
2021-04-09 12:54 AM
For me it is not worked after that. I have 2 target boards. Both was working fine on the first day and I programmed continuously atleast 15 times without any problems. After that this problem happened and never worked after that. The 2nd board also stopped working at the same time.
I tried replacing the 0.1uF Vcap to 1uF, that also didn't worked. Below are my next steps.
2021-04-10 10:50 PM
I tried these, it is not solving the issue. For me it is working sometimes. Like out of 20 times it will work once.