EmbDev.net

Forum: µC & Digital Electronics Multiple targets flashing with openocd


von Odarik (Guest)


Rate this post
useful
not useful
Hello,

I'm using OpenOCD to flash STM32 with the command window. I want to know 
how I can flash different target by using the serial port, or the id, or 
other things that allow multiple flashing by using cmd command. (He 
needs to be in a program who automate that so isnt possible to switch 
manually the ID in the code.

For the moment i'm using basic cfg script :
openocd -f /board/st_nucleo_f0.cfg -f flash.cfg"

with flash.cfg :

init
reset init
halt
flash write_image erase P:/ProjetS8/Projet8/envoie_puf.bin 0x08000000
reset
shutdown

Thanks for your help !

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.