Skip to main content
iforce2d
Associate III
April 2, 2020
Question

Program doesn't start until triggered by IDE (but ok with mbed code)

  • April 2, 2020
  • 1 reply
  • 444 views

I have been trying the CubeIDE recently with a couple of my own PCBs. While working on the code with the board connected to USB power everything was great, but after finalizing the program, I find that it doesn't start when simply powered on, without having the IDE trigger it via SWD (eg. by starting a debug run).

However, the same boards with an equivalent program made by the mbed compiler do start ok with just a plain old power connection. Is there some setting that needs to be done for the CubeIDE version in order to have the program start when powered up?

This topic has been closed for replies.

1 reply

iforce2d
iforce2dAuthor
Associate III
April 4, 2020

Sorry, my mistake. I was looking at an I2C device (small OLED screen) to determine whether the program had started or not. When I tried a simple LED blinky program, it starts up ok. All I had to do was insert a small delay at the program start, to give the I2C device enough time to power up before attempting to use it.