2023-03-29 12:06 AM
the Dead Battery Signals have been selected in stm32cubeMX, but when it run to "MODIFY_REG(SYSCFG->CFGR1, (SYSCFG_CFGR1_UCPD1_STROBE | SYSCFG_CFGR1_UCPD2_STROBE), ConfigDeadBattery);",SYSCFG->CFGR1 keeps default value.the clock is enabled.
Solved! Go to Solution.
2023-03-29 01:54 AM
According to RM, these two bits are write-only (w), not read-write (rw), so even if you write 1 into them and they work as intended, they may not read 1 back.
JW
2023-03-29 12:38 AM
Which STM32? What is your hardware - a Nucleo board, or your own board?
Can you change SYSCFG->CFGR1in debugger?
Can you change other SYSCFG_CFGR1 bits?
JW
2023-03-29 12:52 AM
stm32G071CB , my board ,i Can change other SYSCFG_CFGR1 bits in debugger.
2023-03-29 01:54 AM
According to RM, these two bits are write-only (w), not read-write (rw), so even if you write 1 into them and they work as intended, they may not read 1 back.
JW
2023-03-29 01:56 AM
really appreciate!