All outputs high at the time of downloading flash

I have a Keil MCBSTM32E board and I have couple of Motors connected connected to this board via some drivers.

Every time I update the Board with new flash image the motor run for the duration of the update. I am making use of a ULINK2 on the JTAG to update the flash image.

Its not just the motors even the LED's stay on. I guess it has to do with all I/O or more specifically output ports.

Is there a way to get around it ?

More questions in this forum