Skip to main content
Oanar.1
Associate
July 28, 2020
Solved

realtime variable edit without cube monitor

  • July 28, 2020
  • 3 replies
  • 1309 views

I'm using Keil IDE to program stm32 microcontrollers, Keil IDE allows to change variable's value "while code running" without breakpoints.

I want to use Cubeide instead Keil.

I can use live expression tool for watching values "while code running" but I can't change values "while code running", I bought Stlink and Segger but I couldn't change the values "while code running".

How can I change/modify variable's values "while code running" using Cubeide ? without using cubemonitor

This topic has been closed for replies.
Best answer by prain

unfortunately, this is true.

If you have no other choice, take a look on documentation of GDB and openOCD. ​you can modify variables on known memory addresses via command line interface.

3 replies

S.Ma
Principal
July 28, 2020

If live watch windows don t allow it it is probably because only a single 32 bit aligned write is possible and such restriction don t make it as an intuitive feature?

prain
prainBest answer
Visitor II
July 28, 2020

unfortunately, this is true.

If you have no other choice, take a look on documentation of GDB and openOCD. ​you can modify variables on known memory addresses via command line interface.

Oanar.1
Oanar.1Author
Associate
July 28, 2020

thank u very much for your answers,im glad to pleased.

same code, same cpu, same debugger, keil allow to change values but cube ide doesnt allow.

is only way gdb or openocd with known memory addresses via command line interface ?

is any other way?