cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H750 cubeMX : VREF clock not enabled before calling HAL_SYSCFG_EnableVREFBUF() in HAL_MspInit()

FDESS.2
Associate II

I think there is a mistake in cubeMX generated HAL_MspInit() when using VREFBuf:

at firmware startup, HAL_MspInit() calls  HAL_SYSCFG_EnableVREFBUF() but the clock of VRREFBuf is not enabled before, so it fails in timeout.

To fix this I have added call of  HAL_SYSCFG_EnableVREFBUF(); at the begining og HAL_MspInit() user code.

2 REPLIES 2

Hello @FDESS.2​ 

Could you please send me your .ioc file to check the issue .

Regards,

Nesrine

FDESS.2
Associate II

Hello,

please find in attach my .ioc as you ask.

In fact, I think that my problem is not really fixed with my workaround, as HAL_SYSCFG_EnableVREFBUF() still exit with timeout...

Thank you,

Fabien