EmbDev.net

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


Author: Odarik (Guest)
Posted on:

Rate this post
0 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 !

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.