Thanks for your response. The problem in my case was something with the de-initialization of the peripherals. Cause when I run the application using CubeIDE (downloading and starting from application start) it works fine. I worked around this by sett...