Skip to main content
ASHEN.1
ST Employee
Nov 20, 2020 3:08 AM UTC
Solved

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

​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.
EJOHA
EJOHABest answer
Associate
Nov 20, 2020 6:12 AM UTC

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
Nov 20, 2020 6:12 AM UTC

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
Nov 20, 2020 8:14 AM UTC

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
Nov 23, 2020 2:39 AM UTC

​Thanks a lot, EjOHA and Ozone.