cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Custom board with STM8 - SWIM Pinout?

SLasn.1
Associate II

Hi =)

I am designing a custom board with an STM8. I have a couple of STM32 Nucleo and eval board but looking at the schematics the ST-link only seem to have the SWD interface, not the SWIM.

I do not have any STM8 board from ST have but I have another "cheap" ST-Link like the picture below. This one has a SWIM interface.

0693W000003OxS9QAK.png

My questions:

1) Is this ST-Link enough to program my STM8?

2) Which pins do I need to access on the STM8 - is it only SWIM and RST (+ VDD & GND)?

3) Will the STM8 always respond to the SWIM pin when booting up? Because I see no "Boot" pin like the STM32's have. What if the pin is not configured as SWIM in the firmware?

Thank you!! :D

Simon

2 REPLIES 2
prain
Senior III

1-yes

2- gnd - rst - swim (and vcc if board power is off)

3- if swim used for another function, you can only connect to MCU under reset.

Ha! Easy :D

Perfect - thanks for the reply!