Skip to main content
RStra
Associate III
May 3, 2022
Solved

Program an STM32 without use STM32CubeProgrammer on EOL

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.
Javier1
Javier1Best answer
Principal
May 3, 2022

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

hit me up in https://www.linkedin.com/in/javiermuñoz/

2 replies

Javier1
Javier1Best answer
Principal
May 3, 2022
hit me up in https://www.linkedin.com/in/javiermuñoz/
RStra
RStraAuthor
Associate III
May 3, 2022

Thanks a lot !