Overcurrent Protection triggered immediately after flashing (no motor runnning)
Hi ST Community,
I am new to ST and hope to find a fast solution on this way.
Background:
I am working on a hobby project and want to drive a BLDC Motor.
Once I flash the SW on the target, Overcurrent Protection is hit immediately (can see on debugger and Motor Pilot (in MCSDK).
Target: Custom Board based on EVSPIN32G4 Schematic (EVSPIN32G4)
Chip: STM32G431VBx3.
Workflow:
1.) Board Designer done over Motor Control Workbench
2.) New Project created and .ioc file generated
3.) Generating the Code over MX Cube (without touching any config)
4.) Start Motor Pilot or Debugger -> results in overcurrent protection (PWMC_OCP_Handler() is triggered immediately and OverCurrentFlag is set to true.)
My Assumption:
1. It is not an HW issue because I removed the Motor from the Board so there can no big current flowing.
2. I can see in MX Cube that not all of the Pins are configured from MC SDK, is that normal? Do I need to configure the missing pins (only related to motor control things which I have configured in MC SDK?)
3. There are also warnings in MX Cube, just ignore or need to be fixed?
4. I have increased the digital filter duration (and also set to "No Filter") -> both did not helped
