Skip to main content
DHama.1
Associate
Mar 30, 2020 8:44 AM UTC
Question

Does STM32CubeIDE not support live variable watching?

We are trying to achieve the same kind of variable watching Keil has but with the STM32CubeIDE. The variables do not appear in the Variables tab under the Debug view so we added dummy variables to the expression tab. The initial value of the variable shows fine and then when we resume the program after the HAL_Init breakpoint the 'Target not available.' error appears. Was anyone able to get the feature to work? Or are we supposed to use another program if we want this feature?

0693W000000UxtPQAS.png

Thanks,

David.

This topic has been closed for replies.

15 replies

JMark.1
Visitor II
Apr 1, 2020 4:13 PM UTC

Hello @DHama.1​ , I think Live Expressions will do the job :)

0693W000000VAewQAG.jpg

DHama.1
DHama.1Author
Associate
Apr 1, 2020 4:18 PM UTC

I tried that option as well, when I insert any variable inside it I'm getting "This feature is not supported" in the value column. Is there anything special I need to do to make it work?

Markus GIRDLAND
ST Employee
Apr 8, 2020 2:18 PM UTC

It looks like you are using OpenOCD which does not support Live expressions. You need to switch the debug probe to either ST-Link GDB server or J-Link, they both support the feature.

EHyld.1
Associate
Nov 30, 2020 12:35 PM UTC

Hello Markus. Is this still true with the newest update? It says Improved OpenOCD supporting: Live expressions. But I still get the "This feature is not supported" when connecting over OpenOCD. Is there anything i need to do in addition?

Olivier GALLIEN
ST Technical Moderator
Dec 2, 2020 10:54 AM UTC

Hi @EHyld.1​ ,

Live Watching is claimed as new feature of the latest STM32CubeIDE release V1.5.

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Gudgel.boB
Senior
Sep 2, 2021 11:31 PM UTC

Is there a way to adjust the live expressions update frequency ?

What is it by default ? I cannot seem to find how to change its sampling rate or what the rate actually is.

It works is all I know.

Visitor II
Oct 19, 2023 7:09 AM UTC

Two Steps:

1 Project-properties-C/C++build-Setting-McuGccCompiler-Optimization-None(-O0)

2 move the variable to globle (out of main)as static.

That's all.