We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 ?
MCU is reset before flashing starts (flash algorithms rely on this) and therefore all I/O pins are defined as Floating inputs (on STM32). State of I/O pins is therefore defines by external connections to the MCU. Once the program is flashed and starts running it will configure the I/O pins.
You could use pull-up/down resistors on the motor drivers to define the logic level when MCU is not driving the pins. It is anyway a good idea to define the motor driver pin levels when MCU is reset.