cancel
Showing results for 
Search instead for 
Did you mean: 

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

iforce2d
Associate III

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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
iforce2d
Associate III

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.