cancel
Showing results for 
Search instead for 
Did you mean: 

Program an STM32 without use STM32CubeProgrammer on EOL

RStra
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk

View solution in original post

2 REPLIES 2
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
RStra
Associate III

Thanks a lot !