Skip to main content
Associate II
December 14, 2023
Solved

live expression values gets corrupted while debugging with stm32cube ide version 1.14.0

  • December 14, 2023
  • 12 replies
  • 8517 views

in debugging mode the values of variables gets corrupted when I check in live expressions. Here corrupted means shows wrong values.

    Best answer by Rim LANDOLSI

    Hello @Gaurav_rajput ,

     

    The issue has already been reported to STM32CubeIDE development team. An internal ticket ID 168019(This is an internal tracking number and is not accessible or usable by customers) is submitted to escalate this issue internally to the STM32CubeIDE team .

     

    Thanks,

    Rim

    12 replies

    Associate II
    October 1, 2025

    Same problem in 1.18.1,
    Tried cleaing the project, building and debugging agai but same live expression corruption,

    What worked is restarting the cubeIDE but then the live expression only works fine untill the code remain the same, slight change and then need to restart the cubeIDE again.

    observation: The problem might be when we use different types of variables in the live expression like floats, int and combination of array and structures the cubeIDE confuses the memory sizes and overlaps the data.

    Associate
    October 1, 2025

    Please close the Live Expression tab first, then clean the project. After that, start debugging and open the Live Watch window once execution halts at Hal_init () / first instruction in main.

    Associate II
    October 7, 2025

    the problem can be recreated by using multiple types of variables in live expression simultaneously like float, int32_t etc, and can be avoided by using same type like only floats or ints as observed by me.
    If you see garbage values delete the odd or different type of variable from the list of live expression while debugging there is no need to stop.
    but ST take care of this problem,