cancel
Showing results for 
Search instead for 
Did you mean: 

Error during generating project

Creative_Stone
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Gael A
ST Employee

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 :

GaelA_0-1747405382204.png

We apologise for the confusion and we will try to give better feedback to the user whenever a wrong configuration is asked for.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.

View solution in original post

2 REPLIES 2
Gael A
ST Employee

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 :

GaelA_0-1747405382204.png

We apologise for the confusion and we will try to give better feedback to the user whenever a wrong configuration is asked for.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.

Hi Gael A,

Many thanks for your useful infomation, now i use OPAMP3 and OPAMP4 , successfully created project.

Creative_Stone_0-1747478687501.png