What is the trick to view SFRs in debug?
My sincere apologies for what I am sure is an idiot newbie's error. Thank you everyone for your time.
I have STM32CubeIDE and I do not seem to be able to read back values of SFRs (peripheral registers) while in debug. E.g. my code contains
HRTIM1_MASTER->MCR = 0xD;
In the SFRs panel both before and after this statement is executed, MCR is zero, which is its reset value. Same in pop-up window when I mouse over HRTIM1_MASTER->MCR in the source-code file.
I see that e.g. the PLL is being configured correctly, likely in SystemClock_Config(). When I look at PLLSYSN at a breakpoint, it is not at its reset value and is at the value that it is set to in SystemClock_Config().
STM32CubeIDE is 1.7.0 and my hardware is STM32G474E-EVAL1. I tried various combinations of settings in Debug Configurations -> Debugger. The debugger correctly connects in each case but my code appears unable to modify the SFR in each case, that is, I do not read back by the debugger the value I set in my user code.
