Skip to main content
ASHEN.1
ST Employee
November 20, 2020
Solved

Is there a easy way to display the value of peripheral register dynamically

  • November 20, 2020
  • 3 replies
  • 1164 views

​SFRs windows can't display value dynamically. You should do "refresh Svd data" manually.

How to display peripheral register's value dynamically?

Thanks.

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

Hi ASHEN.1

Yes, it is correct that the SFRs view is only updated when debugger is stopped, after step or a break.

To display peripheral registers value while target is running you can add the register into the "Live expressions" view.

3 replies

EJOHA
EJOHABest answer
Associate
November 20, 2020

Hi ASHEN.1

Yes, it is correct that the SFRs view is only updated when debugger is stopped, after step or a break.

To display peripheral registers value while target is running you can add the register into the "Live expressions" view.

Ozone
Principal
November 20, 2020

I would be very careful with that.

Reading out peripheral registers takes much more cycles than RAM cells.

The added value of a "dynamic value display" is very limited anyway.

ASHEN.1
ASHEN.1Author
ST Employee
November 23, 2020

​Thanks a lot, EjOHA and Ozone.