Skip to main content
DHama.1
Associate
March 30, 2020
Question

Does STM32CubeIDE not support live variable watching?

  • March 30, 2020
  • 5 replies
  • 12404 views

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.

5 replies

JMark.1
Visitor II
April 1, 2020

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

0693W000000VAewQAG.jpg

DHama.1
DHama.1Author
Associate
April 1, 2020

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
April 8, 2020

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
November 30, 2020

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
Technical Moderator
December 2, 2020

Hi @EHyld.1​ ,

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

Olivier

Olivier GALLIEN 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
September 2, 2021

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
October 19, 2023

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.