I developed a program on STM32F4 using keil uV on windows 10, it works perfectly when the target is powered by the computer even after i stop the debugging. Normally after downloading the program in the flash memory it will run automatically when the target became powered by any source of energy. I can't figure why it doesn't work in my case.

  • \$\begingroup\$ so, without knowing your board, the way it's powered, and what your program does, and whether the same applies to e.g. a simpler program, how are we supposed to guess? \$\endgroup\$ – Marcus Müller Jul 13 '17 at 9:12
  • \$\begingroup\$ the board is stm32F407VG, it is powered by a USB type B port, 2.9V, the debug was with an SWD port on connect under reset mode, it dosen't matter what the program do because it is working on another target with the same type that is mean on another STM32F407VG \$\endgroup\$ – oussama zaidi Jul 13 '17 at 9:36
  • 1
    \$\begingroup\$ well, then find the difference between the board you're looking at now and the one that works. Something we can't help you with, I'm afraid. Also, yes, the firmware does matter, assuming it interacts with the hardware. \$\endgroup\$ – Marcus Müller Jul 13 '17 at 9:46

When the chip does not start executing on power-on-reset it can have two causes:

  • The chip starts in bootloader mode because the boot selection pins have the wrong voltage at powerup.
  • Your program is not linked correctly. In other words, it's in the wrong part of flash. (this is unlikely when building from examples)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.