Skip to main content
Visitor II
December 17, 2024
Question

STM8s programming and debugging error

  • December 17, 2024
  • 2 replies
  • 1759 views

Hello,

I need to debug and program an STM8S MCU. However, when I try to debug using IAR, I encounter the following error:
"Failed to set configuration with MCU name STM8S208C6: SWIM error [30006]: Comm init error: chip does not answer."

When I try to program using STVP, I see this error:
"Error: Cannot communicate with the device! Check the SWIM cable connection and check all the needed pin connections on the SWIM connector."

I am using an ST-Link V2 for the connection. I checked the VDD on the board, and it was 5.12V. The programming circuit is as follows:

SpeedyGonzales_0-1734424530776.png

 

SpeedyGonzales_0-1734423391343.png

SpeedyGonzales_0-1734424464089.png

 

 

STVP Configs:

SpeedyGonzales_2-1734420742029.png

IAR Configs:

SpeedyGonzales_3-1734420773577.png

Best Regards,

Speedy

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    December 17, 2024

    Welcome @SpeedyGonzales, to the community!

    One side of R1 is connected to C3 and S1, where is the other end of R1 connected?

    Can you please upload photos of the ST-LINK (front and back)?

    Regards
    /Peter

    Visitor II
    December 17, 2024

    Thank you @Peter BENSCH ,

    Photos uptaded.