This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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 ?

Parents
  • 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.

Reply
  • 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.

Children
No data