Skip to main content
RBack.1
Associate III
June 23, 2022
Question

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.

0693W00000NsdNYQAZ.png

This topic has been closed for replies.

2 replies

Peter BENSCH
ST Technical Moderator
June 24, 2022

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.
RBack.1
RBack.1Author
Associate III
June 24, 2022

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).