cancel
Showing results for 
Search instead for 
Did you mean: 

Can't set any breakpoints using the STM32F746VET6? I only have one and it's incrementing a global variable, but for some reason STM32CubeIDE says it can't be set.

RBack.1
Senior

0693W00000NsdNYQAZ.png

2 REPLIES 2
Peter BENSCH
ST Employee

You are probably trying to set a breakpoint at a position that has been "optimised away", perhaps because this global variable is not important for any function. In this case, it is best to switch off the compiler optimisation.

Regards

/Peter

In order 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.

That was the problem. I should have figured that out on my own. I'm sorry and thank you for your reply.

I wish I could switch off my optimization but the project I inherited won't operate unless optimization O3 is turned on (my SPI DMA ISR which uses FreeRTOS functions takes too long and I start missing bytes).