cancel
Showing results for 
Search instead for 
Did you mean: 

Program stuck Thread #1(User request), while debugging

NAdim.1
Associate II

I am using stm32g070rbt6 controller for my project, with 16MHz clock.

Peripherals included in my project,

1.UART

2.I2C

3.TIMERS(tim14 & tim17)

Issue is like when I'm in debug mode, I couldn't able to go step by step code but when I put the breakpoint after the peripheral initialization, it keep hitting the same breakpoint and it feels like strange behavior

Please help me out in this

Thank You

 

2 REPLIES 2
Sarra.S
ST Employee

Hello @NAdim.1

Check the optimization level of your project 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

 

Hello Sarra,

Thank you for giving reply,

Below is the optimization level of the project

NAdim1_0-1703135845269.png