STM32 RCC macros should include a delay for synchronization Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
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:

STM32 RCC macros should include a delay for synchronization  Topic is solved

Postby Giovanni » Fri Jul 27, 2018 3:01 pm

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

User avatar
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

Postby Giovanni » Thu Sep 06, 2018 2:06 pm

Added a register read-back to macros, this compensates for delays in bridges.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 12 guests