If a register is accessed immediately after rccEnableXXX() or rccResetXXX() the access could be lost because the peripheral is not yet unlocked (it takes several cycles to complete).
Historically this is causing random bugs in STM32 drivers and should be fixed at the root.
Giovanni
STM32 RCC macros should include a delay for synchronization Topic is solved
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: STM32 RCC macros should include a delay for synchronization
Added a register read-back to macros, this compensates for delays in bridges.
Giovanni
Giovanni
Who is online
Users browsing this forum: No registered users and 39 guests