Multiple targets flashing with openocd
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
If also try to find multiple target by writing this in the board cfg but it doesnt work:
source find target/stm32f0x.cfg
source find target/stm32f0x1.cfg
targets
foreach t target names {
targets $t
targets
reset_config srst_only
init
reset init
halt
flash write_image erase P:/ProjetS8/Projet8/envoie_puf.bin 0x08000000
reset
shutdown
}
Thanks for your help !