HI, first english is not my natural language and I have somme difficulties to understand documentation. Furthermore, there are too much abreviations ...
I am using STM32F7508-dk board. I build a small new app that is supposed to blink led1. But it doesn't work. I started debugging with Keil. The debugger starts but strange things happen.
I set a break point on line 80. But it doesn't stop. The red circle has been replaced with an exclamation. I tried 'use simulator' and 'st-link' in the debugger tab but it is the same thing.
Can someone explain me, in simple words, how to parameter the debugger and why the first break point doen't work ? I am wondering if I need Cube Programmer to send the code to the board before debugging or not.
Thanks in advance
Jean
Looking at the whole code, the compiler would rather certainly not have generated machine code for that particular source line. I.e. unless you have optimization dialled all the way down, there is no code for that line, and thus no way to stop in it.
Writing different values to the same local variable, particularly with no reads in between, is always optimized away, leaving only the last of those writes intact. And that's only if the final values is used later. Otherweise the whole variable is most likely to just be removed.
that was the problem ! I tried to mark variables as volatile with no effect. Then setting optimization to level 0, first generate code over 32k, and after 'cleaning', all is ok.
I can see led1 blinking slowly and quickly when I press button1 !!!
It's my first running program since my beginning on the first days of december !!! Thanks to all of you who helped me !!