cancel
Showing results for 
Search instead for 
Did you mean: 

Board based on STM32WB55. My application program doesn't start when powered on. I need to connect and disconnect the board to STM32cube Prg to start execution. Option bytes settings: nBOOT0 = 1 nBOOT1 = 1 nSWBOOT0 = 0 BOOT0 pin floating.

MTriv.2
Associate II
 
3 REPLIES 3
Remy ISSALYS
ST Employee

Hello,

Can you explain a bit more your issue? Have you try to debug your application?

Best Regards

Maybe it does start, but then dies silently? Who'd know? Instrument and debug..​

BOOT0 state is a strong possibility.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

While Debugging it was never an issue. Just when no debugger connected and powered on then issue was there.

However issue resolved.

I just wrote an LED turned on ​instruction after each line one by one before while loop and found that LED turned on before RF init and RTC init but after that MCU stops execution.

Finally, I moved RF init and RTC init functions just before starting the while loop means no peripheral initialisation functions after RF and RTC init and everything working.

Weird but this is how i solved.

Strange part is the initialisation structure was generated from CubeMX where ADC and TIM init functions were called after RF and RTC init.

I have to manually move the sequence. Is there any explanation on this behaviour? ​