EVSPIN32G4 - Hall (H1 on PB6) is being pulled to ~2V
Hello -
I've generated a few test projects in the ST Motor Control Workbench using the default settings and my motor's parameters. I've enabled the Hall sensing on TIM4 using PB6, PB7, and PB8. Those three pins are broken out onto J6 of the EVSPIN32G4 development board.
I am using the EC-i 40 motor with embedded Hall sensors (https://www.maxongroup.com/maxon/view/product/449464).
When the Hall sensors are disconnected from the EVSPIN32G4 the voltage of PB6 is being pulled to about 1.95V instead of the expected 3.3V. PB7 and PB8 are at 3.3V.
When the Hall sensors are connected the same behavior is seen. PB6 goes between 0 and 1.95V while PB7 and PB8 go between 0 and 3.3V.
I've attached the project used for this.
Because 1.95V is not above the STM32G431's Vih threshold the PB6 is never being seen as a "high" input. This appears to cause the motor to fault at start-up.
If I generate a basic STM32G431 project in STM32CubeMX, then this behavior is NOT seen. This means that something about the initialization of the STSPIN32G4 projects is causing PB6 to be pulled down from 3.3V to 1.95V.
What is causing this behavior? What can be done to fix this?
Also, are there any example projects built for the EVSPIN32G4 that can be used or do they have to be generated?
- Shane
