Skip to main content
MPers.1
Associate II
June 30, 2021
Question

Does STLINK allow debugging with breakpoints?

I am using a Nucleo-64 with the STM32F070RB on it with the STM32CubeIDE and I can flash my code to the memory but all I can do in debug is halting the CPU and reading out the registers. No user variables are allowed to be tracked and no breakpoints work. Also I can not see where in the code the program counter is. Is that due to a missing setting or is it not possible without a more advanced debugger? I am using the USB connection to the evaluation board.

This topic has been closed for replies.

5 replies

MM..1
Super User
June 30, 2021

Debug is of course possible with all what you need, but need right setup and on M0 have some limits for example count of active breakpoints is limited.

You need build your code for debug.

MPers.1
MPers.1Author
Associate II
June 30, 2021

Thank you for the quick response. I do build the code with Debug Configuration, at least I thought so as it is what it shows: What settings would I need to check?

In the Debug Configurations Dialog it shows:

And within the Build Configuration There is a Configuration for Debug available and Active. Not sure about the settings.

Tesla DeLorean
Guru
June 30, 2021

There's a free ST / Keil licence for Cortex-M0(+) STM32, might want to see if that's better executed..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
June 30, 2021

The debug view should come up and allow you to add expressions.

Registers can be viewed in the SFRs window, but only when paused.

Show a screenshot if you're not seeing this.

"If you feel a post has answered your question, please click ""Accept as Solution""."
MPers.1
MPers.1Author
Associate II
July 1, 2021

Thank you, I had to create a Debug Config and then it worked.

Initially when creating the project there was only one present for Release, still build showed an option for Debug which made me think there was one.

Works perfectly now :)