This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32 Discovery Debugging Problem

Hi Guys,
i just installed the newest Keil uVision to Programm and Debug STM32F0 Microcontroller via ST-Link.
Programming and flashing via ST-Link works fine.
But when i try to use the debugger i can´t set breakpoints. If i set breakpoints before i switch to the debugger they transfer to a exclamation mark.

please see this picture:
[img]up.picr.de/22284985rp.jpg[/img]

whats wrong?
i hope you guys can help me.

thanks a lot

best regards

Max

  • Current firmware and drivers for the ST-LINK?

    The Cortex-M0 has limited breakpoints, between 0-4, Keil likely has used a couple for it to reset and run-to-main.

    How many breakpoints does the STM32F0 have? How many have you used?

  • From the picture it appears that there is no code loaded that relates to the source code file.
    Lines that generate code have "dark" grey color (http://www.keil.com/support/man/docs/uv4/uv4_ui_editormarks.htm)

    Reasons for that can be:

    - code is excluded, for example with #if / #endif controls

    - source file is not part of the project

    - project is not compiled before downloading

  • I'm having the same problem. I've set 2 breakpoints in total: 1 at the start of main() and one a bit further ahead within the main function.

    I know the code runs fine on the discovery board, since the LEDs are doing what I'm asking them in code. However the debugger shows the breakpoints as greyed-out (while again I'm 100% certain the MCU actually gets to that part of the code).

    I quadruple checked all of the project settings such as debugger (ST link v2), memory addresses and sizes (SRAM and Flash), etc etc etc.

    No idea what the reason is this doesn't work...