Skip to main content
Associate II
Oct 29, 2025 7:45 PM UTC
Question

change live expression Update rate in IDE

The STMcube IDE1.18.0  updates live expression very fast. How can I reduce the update rate, if possible?

How to accurately read ADC value for sensor calibration in this case ?

 

This topic has been closed for replies.

8 replies

Karl Yamashita
Super User
Oct 29, 2025 10:08 PM UTC

That's the whole idea of live expression. It updates live.

  1. Print the values to a UART peripheral.
  2. You can pause debugging to view the value
  3. Slow down you ADC conversion so live view is updated at a slower rate.
If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
VidhiPaAuthor
Associate II
Oct 30, 2025 12:00 PM UTC

Yes, of course I understand that. I use workarounds like UART, but older version of STMCube IDE has it updated slowly than this version, so I wanted to know if there is a way to modify this. 

Andrew Neil
Super User
Oct 30, 2025 12:06 PM UTC

@VidhiPa wrote:

I use workarounds (sic) like UART, . 


In this application, I wouldn't call a UART (or similar) a "workaround" - I'd say it's a more appropriate approach to the problem.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ST Technical Moderator
Oct 30, 2025 9:42 AM UTC

Hello @VidhiPa 

In addition to the suggestion of @Karl Yamashita, you can also Set breakpoints at points of interest and inspect variables when halted.

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. Saket_Om
Andrew Neil
Super User
Oct 30, 2025 9:49 AM UTC

@VidhiPa wrote:

How to accurately read ADC value for sensor calibration in this case ?


That's a separate question!

For this, I'd use output to a UART (or similar) as @Karl Yamashita suggested.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.