Unable to configure SYSCFG->CFGR1 reg when init UCPD on stm32g0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
STM32G0 Series
-
USB-PD
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 12:52 AM
stm32G071CB , my board ,i Can change other SYSCFG_CFGR1 bits in debugger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 1:56 AM
really appreciate!
