From: Paul F. <fer...@gm...> - 2018-11-01 12:38:07
|
On Thu, Nov 01, 2018 at 08:27:15PM +0800, jia...@by... wrote: > I figured it out myself, by using this command. It seems "reset" command > reset all defined target as said in user manual. However, "halt" just halt > current target. Indeed, sorry, haven't noticed that. I would expect "flash write_image" to complain when it tries to flash a non-halted target though. The usual scenario is using "reset init" just before flashing, so I would expect your script to be something like this: init reset init targets stm32f217.cpu flash write_image erase unlock "mcu1_pb6_slow.hex" targets stm32f302.cpu flash write_image erase unlock "mcu2_pb11_slow.hex" reset shutdown -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |