B-G431B-ESC1 problem with hall sensor

Good news! The board I was using probably had some weird problem. I changed the board and now the closed loop control works! thanks everyone for the help

2 Likes

You are lucky… I have two boards here with the same PB6 issue - so i can confirm the same behavior - so it must be a wrong batch… It took me a week to finally go here.

Solution for this issue is provided here:

Add
HAL_PWREx_DisableUCPDDeadBattery();
or
SET_BIT(PWR->CR3, PWR_CR3_UCPD_DBDIS);

resolve this issue.