Skip to main content
FDESS.2
Associate II
February 13, 2020
Question

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

  • February 13, 2020
  • 2 replies
  • 719 views

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
February 18, 2020

Hello @FDESS.2​ 

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

Regards,

Nesrine

FDESS.2
FDESS.2Author
Associate II
February 19, 2020

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