Multiple targets flashing with openocd
I’m still trying with Openocd.
I’m pretty sure something like that can work :
source find stlink-v2-1.cfg
transport select hla_swd
set CHIPNAME test1
source find stm32f0x.cfg
set CHIPNAME test2
source find stm32f0x.cfg
reset_config srst_only
foreach t target names {
targets $t
flash bank 0 stm32f1x 0x08000000 0x00000000 0 0 $t
flash list
flash write_image erase envoie_puf.elf 0x08000000
reset
}
shutdown
But actually I have this error : invalid subcommand “write_image erase”.
If I use “program envoie_puf.elf” instead it’s work but only for one target detected. If there is more, OPENOCD crashs.
Dont know if using ST toolset will help me.