texane/stlink — Issue #18: STM32F4 Blink, can't single step, breakpoints dont seem to work
Author: jnosky
Created: 2011-10-25 16:48:25+00:00
State: open

With -O2, "next" commands dont seem to line up with the source code. I can step a few times, than it just takes off running. I guess that can be expected due to optimization. If I build with -O0, the server doesnt hit any breakpoints I set, and just keeps reporting "the target is running" (forever). I suspect the breakpoints are being set to an address that never gets hit. I'm running the blink.elf from ram, the discovery demo is in flash. Maybe I'm doing something wrong?