Skip to main content
AN.4
Associate II
Jan 18, 2022 1:32 PM UTC
Question

How to set conditional breakpoint in STM32Cube IDE? syntax?

..

This topic has been closed for replies.

3 replies

ST Technical Moderator
Jan 19, 2022 2:40 PM UTC

Hello @AN.4​ ,

I advise you to refer to the UM2576, in section "2.4 Setting breakpoints" section.

I hope this helps !

If my answer satisfy your need, please select it as Best so that this thread will marked as solved.

Thanks

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AN.4
AN.4Author
Associate II
Jan 19, 2022 2:53 PM UTC

Thanks for response.

I want to set the condition for breakpoint, so that when condition is true then breakpoint occurs.

In breakpoint properties -> common -> condition, you can set the condition.

I want to know the syntax to write the if condition for the same.

0693W00000JMYCWQA5.png

ZHan.2
Associate
Apr 18, 2023 6:27 PM UTC

It's a boolean expression in C/C++; For example, if you want this breakpoint breaks only when the global variable global_a is equal to 100, just input global_a == 100.