2025-08-22 6:41 PM - last edited on 2025-09-04 6:16 AM by Andrew Neil
The following images show my configuration process:
2025-08-25 12:44 AM
Hello @一hang.,
Can you share your board description .json
file?
2025-08-25 4:06 AM - last edited on 2025-09-04 6:16 AM by Andrew Neil
{
"type": "inverter",
"contentVersion": "1.0",
"descVersion": 4,
"name": "test",
"PN": "test",
"algorithmCompatibility": [
"FOC"
],
"mcu": "STM32G431VBTx",
"clockSource": "24_crystal",
"clockFrequency": 170,
"motorDrives": [
{
"name": "M1",
"minRatedVoltage": 15,
"maxRatedVoltage": 60,
"maxRatedPower": 200,
"maxRatedCurrent": 10,
"features": [
{
"type": "CurrentSensing",
"name": "CurrentSensing",
"tRise": 620,
"hwVariants": [
{
"signals": {
"CURRENT_SHUNT_UP": [
{
"name": "PA1",
"help": {},
"cost": 0
}
],
"CURRENT_SHUNT_VP": [
{
"name": "PA7",
"help": {},
"cost": 0
}
],
"CURRENT_SHUNT_WP": [
{
"name": "PB0",
"help": {},
"cost": 0
}
],
"CURRENT_SHUNT_UN": [
{
"name": "PA3",
"help": {},
"cost": 0
}
],
"CURRENT_SHUNT_VN": [
{
"name": "PA5",
"help": {},
"cost": 0
}
],
"CURRENT_SHUNT_WN": [
{
"name": "PB2",
"help": {},
"cost": 0
}
],
"CURRENT_AMPL_U": [
{
"name": "PA2",
"help": {},
"cost": 0
}
],
"CURRENT_AMPL_V": [
{
"name": "PA6",
"help": {},
"cost": 0
}
],
"CURRENT_AMPL_W": [
{
"name": "PB1",
"help": {},
"cost": 0
}
]
},
"type": "ThreeShunt_RawCurrents_Differential_ExternalGain",
"cost": 0,
"amplifyingNetworkImax": 10,
"amplifyingNetworkVm": 3.3,
"offsetNetworkAttenuation": 0.909,
"polarizationOffset": 1.65,
"shuntResistor": 0.05,
"opAmpGain": 11,
"amplifyingNetworkPrating": 1
}
]
},
{
"type": "PhaseVoltageGeneration",
"name": "PhaseVoltageGeneration",
"driverName": "TEST",
"driverPN": "TEST",
"minDeadTime": 700,
"tNoise": 800,
"maxSwitchingFreq": 32,
"hwVariants": [
{
"signals": {
"PWM_CHU_H": [
{
"name": "PE9",
"help": {},
"cost": 0
}
],
"PWM_CHV_H": [
{
"name": "PE11",
"help": {},
"cost": 0
}
],
"PWM_CHW_H": [
{
"name": "PE13",
"help": {},
"cost": 0
}
],
"PWM_CHU_L": [
{
"name": "PE8",
"help": {},
"cost": 0
}
],
"PWM_CHV_L": [
{
"name": "PE10",
"help": {},
"cost": 0
}
],
"PWM_CHW_L": [
{
"name": "PE12",
"help": {},
"cost": 0
}
]
},
"type": "DrivingHighAndLowSides",
"cost": 0,
"deadTime": 700,
"lowSideSwitchesDrivingPolarity": "Active high",
"highSideSwitchesDrivingPolarity": "Active high"
}
]
}
]
}
],
"features": []
}
2025-08-25 6:18 AM - edited 2025-08-25 6:19 AM
Hello @一hang,
For the current MCSDK implementation, only ThreeShunt_RawCurrents_Differential_ExternalGain_FilteredADCInput is supported on the STM32G4 series.
The description of the current sensing feature is available here.
2025-08-26 2:49 AM
2025-08-28 1:22 AM
Hello @一hang,
As the ThreeShunt_RawCurrents_Differential_ExternalGain
topology is not supported, you must generate a project with a supported topology and modify the generated firmware.
If your purpose is to use the HSO Speed Sensor Mode, it is recommended to use the ThreeShunt_RawCurrents_Differential_ExternalGain_FilteredADCInput
topology.