2024-03-14 04:38 AM
Hello,
I'm currently encountering an issue with my project, which is used to load .s19 files onto target devices (specifically STM8) via the SWIM protocol.
Previously, the functionality was seamless when there was no external power supplied to the target device or when the power was disconnected after programming.
However, I'm now facing difficulties in programming the target device without interrupting the power supply.
While I'm able to enter the SWIM debug mode and successfully load the program, it appears that the device remains stuck in debug mode afterward.
Even attempts to exit debug mode by sending the default value to the SWIM_CSR register or performing a hardware reset have proven unsuccessful.
The only way seems to be cutting off the power supply and then turning it back on.
Could you kindly provide guidance on any overlooked aspects or steps that I might have missed in this process?