Skip to main content
Visitor II
May 3, 2022
Solved

Program an STM32 without use STM32CubeProgrammer on EOL

  • May 3, 2022
  • 2 replies
  • 1223 views

Hello,

I'd like to erase and load an hex file on a STM32 without use the STM32CubeProgrammer as interface. Is it possible integrate the ST-LINK v2 (SWD interface) functionality in a python/C# script to automatize the erase/flashing and integrate it with the rest of the EOL test.

If ST-LINK is not suitable can you suggest a different way to implement my goal ?

Regards,

Riccardo

    This topic has been closed for replies.
    Best answer by Javier1

    check out OpenOcd, in my experience, trying to bitbang SWD with my raspberry was a bad idea. (use at least a raspi3)

    https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-p

    https://community.st.com/s/question/0D53W000019eQebSAE/openocd-not-halting-my-chip-srst-not-working

    2 replies

    Javier1Answer
    Graduate II
    May 3, 2022
    RStraAuthor
    Visitor II
    May 3, 2022

    Thanks a lot !