Skip to main content
NAdim.1
Associate II
December 20, 2023
Question

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

  • December 20, 2023
  • 1 reply
  • 1072 views

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

 

1 reply

ST Employee
December 20, 2023

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.
NAdim.1
NAdim.1Author
Associate II
December 21, 2023

 

Hello Sarra,

Thank you for giving reply,

Below is the optimization level of the project

NAdim1_0-1703135845269.png