Skip to main content
FDESS.2
Associate II
Feb 13, 2020 10:54 AM UTC
Question

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

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.

This topic has been closed for replies.

2 replies

Nesrine.JLASSI
Visitor II
Feb 18, 2020 8:30 AM UTC

Hello @FDESS.2​ 

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

Regards,

Nesrine

FDESS.2
FDESS.2Author
Associate II
Feb 19, 2020 8:37 AM UTC

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