cancel
Showing results for 
Search instead for 
Did you mean: 

realtime variable edit without cube monitor

Oanar.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
prain
Senior III

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.

View solution in original post

3 REPLIES 3
S.Ma
Principal

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
Senior III

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
Associate

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?