2025-05-13 7:17 AM - edited 2025-05-14 6:37 AM
Unable to generate motor control project using MCSDK 6.3.2
The MCU is STM32G473CCU6
"It is not possible to create a motor control project with the FOC algorithm using the selected hardware. No proper path for motor control signals was found for the following mandatory features:
- Current Sensing
For more details, please, look at the following log file in your home directory: .st_workbench/connectAlgo.log"
I'm using three shunt resistors for current sensing, I have no idea where is wrong.
Solved! Go to Solution.
2025-05-16 7:27 AM
Hello Creative_Stone,
In your case, Three Shunts Raw Currents (Internal OPAMPs) Single Ended Internal Gain, all three used pins for current sensing must lead to OPAMPs and COMP. The latter is missing on PB12 which is used for CURRENT_WP. However, there is another requirement that will not be shown by the ConnectAlgo if not respected : only dual OPAMP configurations are supported for that HW variant. Moreover, the only available pairs are OPAMP1 + OPAMP2, and OPAMP3 + OPAMP4, both of them with the V phase used for OPAMP sharing.
This means for example that PinU should have access to OPAMPA, PinW to OPAMPB, and PinV to both OPAMPA and OPAMPB. A good graphical example can be found on EVSPIN32G4 :
We apologise for the confusion and we will try to give better feedback to the user whenever a wrong configuration is asked for.
2025-05-16 7:27 AM
Hello Creative_Stone,
In your case, Three Shunts Raw Currents (Internal OPAMPs) Single Ended Internal Gain, all three used pins for current sensing must lead to OPAMPs and COMP. The latter is missing on PB12 which is used for CURRENT_WP. However, there is another requirement that will not be shown by the ConnectAlgo if not respected : only dual OPAMP configurations are supported for that HW variant. Moreover, the only available pairs are OPAMP1 + OPAMP2, and OPAMP3 + OPAMP4, both of them with the V phase used for OPAMP sharing.
This means for example that PinU should have access to OPAMPA, PinW to OPAMPB, and PinV to both OPAMPA and OPAMPB. A good graphical example can be found on EVSPIN32G4 :
We apologise for the confusion and we will try to give better feedback to the user whenever a wrong configuration is asked for.
2025-05-17 3:47 AM
Hi Gael A,
Many thanks for your useful infomation, now i use OPAMP3 and OPAMP4 , successfully created project.