cancel
Showing results for 
Search instead for 
Did you mean: 

Can't debug STM8s105C6 , SWIM error 30004 Comm timeout

OKuma
Associate II

I'm working on STM8s105c6 . Everything goes fine but I'm not able to debug it . Earlier it said Swim error can't access database . Then i reinstalled StToolset file , Now it shows SWIM Error 30004 Comm Time out . I have tried everything . The code gets uploaded using STVP but I'm not able to debug using STVD

1 REPLY 1
Philipp Krause
Senior II

The symptoms (being able to write a program, but not debug it) look to me as if you enabled Flash Readout Protection.

If Flash Readout Protection is disabled, I suggest to find out if this is a hardware vs. a software issue.

Does it work with other software, such as stm8flash? There are tutorials using stm8flash for 3 different STM8X105C6 evaluation boards at http://www.colecovision.eu/stm8/

Does debugging using OpenOCD and gdb work? See https://stm8-binutils-gdb.sourceforge.io/