Skip to main content
Visitor II
August 28, 2019
Question

Program the STM8 MCU(SWIM) using Nucleo-L152RE

  • August 28, 2019
  • 4 replies
  • 2584 views

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.

    This topic has been closed for replies.

    4 replies

    ST Employee
    August 28, 2019

    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_040Author
    Visitor II
    August 30, 2019

    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_040Author
    Visitor II
    August 30, 2019

    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?

    ST Employee
    August 30, 2019

    That's correct.

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

    Explorer
    August 30, 2019

    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 ?

    Graduate II
    August 30, 2019

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