2024-12-10 02:53 AM
I created a project using EVSPIN32G4-DUAL to test the two motor drive combination provided by ST.
Then, the following error message was output.
Generate Project
Warning! Hardware changes must be applied to the following signals. Please, refer to the board diagram for details.
Pin
Signal name
Help
PA7 CURRENT_SHUNT_P NOTICE: Please disable the overcurrent protection of Stage 2 to avoid resurce assignment conflict on COMP2. The power stage is already protected by STDRIVE101.
PA7 CURRENT_SHUNT_P NOTICE: Please disable the overcurrent protection of Stage 2 to avoid resurce assignment conflict on COMP2. The power stage is already protected by STDRIVE101.
M1 and M2 use COMP2 as a comparator for overcurrent protection
M1 and M2 use the same COMP2, but the pins are set differently, so an error occurs.
Does anyone know of a 2 motors combination with one G431?
Solved! Go to Solution.
2024-12-10 05:59 AM
Hello @just4u78,
As mentioned, this is a warning message. Stage 1 and 2 use COMP2 IP for Over Current detection, if an over current is trigged on M1 or M2, both motors will stop. For M2, you can only use Driver Protection and disable M2 Over Current detection.
2024-12-10 05:59 AM
Hello @just4u78,
As mentioned, this is a warning message. Stage 1 and 2 use COMP2 IP for Over Current detection, if an over current is trigged on M1 or M2, both motors will stop. For M2, you can only use Driver Protection and disable M2 Over Current detection.
2024-12-10 05:04 PM - edited 2024-12-10 05:07 PM
CubeMx does not allow one peripheral to be used on two pins.
Therefore, when I load the generated ioc file into CubeMX, one of the two pins loses its duplicate functionality.
Since I need to use only one COMP2, I will disable the Over Current Protection function of M2 and use it.