cancel
Showing results for 
Search instead for 
Did you mean: 

Program the STM8 MCU(SWIM) using Nucleo-L152RE

AP_040
Senior

I have Nucleo-L152RE board and I used this board to program the STM32 MCU using JTAG (CN4) connector. Now, I want to program the STM8 board using SWIM interface. So, is it possible with Nucleo-L152RE?. I already done the required changes to use Nucleo-L152RE as STLINK/V2.

6 REPLIES 6
David SIORPAES
ST Employee

Hello,

I am afraid it is not possible to use ST-LINK/V2-1 to program STM8.

From Nucleo board User Manual UM-1724:

0690X00000AAPurQAH.png

You'd need to use ST-LINK/V2 debugger.

AP_040
Senior

I got the ST-LINK/V2 in circuit debugger and connect the STM8 in SWIM interface and used the STM32 LINK Utility tool to program. But it is not working and giving me the error "can not connect to the target". What I do here? Is STM32 Link utility is for only STM32 families?

AP_040
Senior

I found that STM32 Link utility only works with the STM32 families from the user guide.0690X000009akNuQAI.png

So for the STM8, required STVP tool. Is it?

That's correct.

There are other open source tools such as OpenOCD and stm8flash (flash only).

Ozone
Lead

At least some while ago, there was a ST-Link (V2) standalone debug pod for an affordable price, which supported both SWD/JTAG and SWIM.

What happened to that ?

You can still get it. But there is now also STLINK-V3Set.