2008-12-18 08:03 PM
RCC_WaitForHSEStartUp() in Release Mode
2011-05-17 03:57 AM
I have a strange problem with RCC_WaitForHSEStartUp() of the firmware library.
My setup: *) STM3210E-EVAL board *) CrossStudio 1.7 Build 13 *) latest firmware library In debug mode everything works as expect. In release mode the RCC configuration fails. Even with a long timeout value, RCC_WaitForHSEStartUp() reports an error. I have found two work-arounds, but I am interested in the reason for this problem: *) Replace #define RCC ((RCC_TypeDef *) RCC_BASE) with #define RCC ((volatile RCC_TypeDef *) RCC_BASE) *) Call RCC_WaitForHSEStartUp() in a loop. Seems to be an optimization problem?