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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-23 8:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-24 1:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-24 8:24 AM
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).
