Unable to Program STM8 using STVD Light Programmer or STVP
Hello Everyone,
I am using a STM8S105C6T6 in one of my application and I am facing problem while programming it.
Software used: STVD version 4.3.12
Compiler: Cosmic CXSTM8 Special Edition 4.5.1 (Free 1yr License version)
I have build my application and when I click on ''start Debug'' in STVD, below error comes
Debug Seesion:
Starting debug session...
-> Emulator reset (usb://usb)...
done.
Opening application C:\Users\Micro\Desktop\STM8\STM8S105\led\Debug\led.elf...
-> failed to download application: error: swim prog error [42004]: memory write error
Application closed.
Debug session closed.
2. When I am Trying to Program using STVD in-built Programmer, it is showing below error:
''STVD > Tools > Programmer'' or using STVP.
Programming...
PROGRAM MEMORY:
> Blank Check not feasible
> Programming
Error : Programming failed
Error : Problem while trying to Reset swim and device. Apply a Power On Reset
The interesting thing is, sometimes the MCU is getting programmed (LEDs are blinking as per requirement) but the software is showing same error message as above.
I don't understand why I am getting this error. My hardware connection and the SWIM communication are OK because I am able to program my other MCU i.e. STM8103F3P6 bare minimum board using same settings in STVD
How can I solve this error ?
Thanks in advance.
