cancel
Showing results for 
Search instead for 
Did you mean: 

In ST MotorControl Workbench 6.4.1, STM32G431CBUX fails on Internal OpAmps + External gain network configuration

fanghaha
Associate

I am using ST MotorControl Workbench 6.4.1 with the STM32G431CBUX** MCU for a motor control project. When configuring the current sensing module for Three Shunt Raw Currents topology with the option Internal OpAmps + External gain network, the code generation fails with an RCSConnect error.But when I choose the option  Internal OpAmps +  Internal PGA eveything is good.

I am looking to understand:
1. Is the Internal OpAmps + External gain network configuration officially unsupported for STM32G431CBUX in MC SDK 6.4.1?
2. Or is this a hardware resource limitation (e.g., insufficient internal op-amps, pin conflicts) specific to this MCU that blocks this configuration?

fanghaha_1-1770103093882.png

fanghaha_2-1770103220999.png

 

 

3 REPLIES 3
GMA
ST Employee

Hello @fanghaha,

I assume that you are using a custom board.
You must describe the required current sensing configuration as explained here.
Use the STMC Board Designer tool, available in the MC_SDK_x.x.x\Utilities\PC_Software directory, to add the configuration.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
kaiman
Associate II

I have simillar issue with MotorControl Workbench 6.4.1 and EVSPIN32G4 board.

I want to configure the current sensing module to a 3-shunt raw current topology using the internal op-amp + external gain network option. When generating code using the default EVSPIN32G4 board definition, only two OpAmps are used. I am trying to modify this to use three OpAmps, one for each of the three phases.

I cloned the EVSPIN32G4 board's JSON file and modified only the pin assignment section in the STMC board designer as follows, then saved it. However, when I try to generate code using this new board definition file, I get an RCSConnect error.

 CURRENT_SHUNT_UP:PA1

 CURRENT_SHUNT_VP:PA7

 CURRENT_SHUNT_WP:PB0

 CURRENT_AMPL_U:PA2

 CURRENT_AMPL_V:PA6

 CURRENT_AMPL_W:PB1

 CURRENT_AMPLN_U:PA3

 CURRENT_AMPLN_V:PC5

 CURRENT_AMPLN_W:PB2

What is the problem with this configuration?

 

Hello @kaiman,

It is recommended to create a new post for each new question.
Refer to ConnectionParameters.json file located in "MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets" directory. On STM32G4 structure, you will find that for ThreeShunt_RawCurrents_SingleEnded hardware variant current sensing topology, Dual OpAmp with Share Phase V topology has to be used.
Three OpAmp usage is permitted for ThreeShunt_RawCurrents_Differential hardware variant current sensing topology.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA