Debugger is setting breakpoints at random locations
I am attempting to get a basic program working using an external interrupt for the STM32L152 Dev Kit. When I set a breakpoint in main the debugger seems to set it further down in the file. I attempted to just put a simple “x++” in the main to set a breakpoint and it got put about 10 lines lower in the init code. One of the weirder items is tha the “Breakpoints” window appears to say that it is located at the line I want it at but whenever I add/remove the breakpoint in the console it reports a different line number.
OS: Windows 7
STM32 Version: 1.8.0.201603291114
Board: Nucleio-L152RE Dev Kit