Closed bwitherspoon closed 11 months ago
Hi @bwitherspoon! We appreciate you submitting your first issue for our open-source project. š
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. š¤š
Describe the bug
For the STM32U5 The LPTIM2 clock enable should be bit 5 of RCC APB1 clock enable register 2 (RM0456 Rev 4 11.8.34).
See #63655 for fix.
To Reproduce
Enable LPTIM2 using the address currently in the device tree and run an application with PM enabled.
Example overlay:
Example config:
The application will hang at boot waiting for the clock to be enabled.
Expected behavior
Use the correct register bit and the application runs as expected.
Impact
LPTIM2 cannot be used. Trivial fix.
Environment (please complete the following information):
Notes:
There might also be an issue with the use of the
st,static-prescaler
property on LPTIM2. I will submit another issue or discussion for this.