2025-05-21 12:32 AM - last edited on 2025-05-21 2:29 AM by Andrew Neil
Hello,
I want to connect my own inveter and motor module, but when I select it in the MC Workbench, I get this error:
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:
- Phase Voltage Generation
For more details, please, look at the following log file in your home directory: .st_workbench/connectAlgo.log
in this log, INFO - --root assets --inverter '~stm32 control board'
DEBUG - General: --- Processing start stm32 control board
DEBUG - General: --- Processing completed stm32 control board
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents TripleADCs NotSupported
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs processing start
DEBUG - **** SolutionSet : [['ADC2', 'ADC1'], ['ADC2', 'ADC1'], ['ADC2', 'ADC1']]
DEBUG - sharedSignalDict : {'CURRENT_AMPL_U': ['ADC2', 'ADC1'], 'CURRENT_AMPL_V': ['ADC2', 'ADC1'], 'CURRENT_AMPL_W': ['ADC2', 'ADC1']}
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs SharedSignal CURRENT_AMPL_U, CURRENT_AMPL_V, CURRENT_AMPL_W
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs SharedRoute CURRENT_AMPL_V PA7 ADC2_IN7
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs SharedRoute CURRENT_AMPL_V PA7 ADC1_IN7
DEBUG - Shared signal CURRENT_AMPL_V, Permutation ['ADC1', 'ADC2']
DEBUG - ADCleafs : ['ADC1_IN6']
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs route: CURRENT_AMPL_U PA6 ADC1_IN6
DEBUG - ADCleafs : ['ADC2_IN14']
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs route: CURRENT_AMPL_W PC4 ADC2_IN14
DEBUG - All solutions matching Two ADCs
DEBUG - With Shared signal CURRENT_AMPL_V
DEBUG - With IPs : ('ADC1', 'ADC2')
DEBUG - [(['CURRENT_AMPL_U', 'PA6', 'ADC1_IN6', ''], 0)]
DEBUG - [(['CURRENT_AMPL_W', 'PC4', 'ADC2_IN14', ''], 0)]
DEBUG - [(['CURRENT_AMPL_V', 'PA7', 'ADC2_IN7', ''], 0)]
DEBUG - [(['CURRENT_AMPL_V', 'PA7', 'ADC1_IN7', ''], 0)]
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCs processing completed
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents DualADCsNoSharedPhase NotSupported
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC processing start
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_U PA6 ADC1_IN6
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_V PA7 ADC1_IN7
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_W PC4 ADC1_IN14
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_U PA6 ADC2_IN6
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_V PA7 ADC2_IN7
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC route: CURRENT_AMPL_W PC4 ADC2_IN14
DEBUG - CSConnect: ThreeShunt_AmplifiedCurrents SingleADC processing completed
INFO - [['PA7'], ['PA7']] Candidate : {'PA7'}
DEBUG - PVConnect: DrivingHighAndLowSides Global processing start
ERROR - PVConnect: DrivingHighAndLowSides No timer matches all signals requirement
DEBUG - PVConnect: DrivingHighAndLowSides Global processing completed
DEBUG - SWConnect: VBusSensing Global processing start
DEBUG - SWConnect: VBusSensing Global processing completed
DEBUG - SPConnect: HallEffectSensor Global processing start
DEBUG - SPConnect: HallEffectSensor Global route: HALLSENSOR_H1, PC6, TIM3_CH1
DEBUG - SPConnect: HallEffectSensor Global route: HALLSENSOR_H2, PC7, TIM3_CH2
DEBUG - SPConnect: HallEffectSensor Global route: HALLSENSOR_H3, PC8, TIM3_CH3
DEBUG - SPConnect: HallEffectSensor Global processing completed
DEBUG - PVConnect: QuadratureEncoderAbsolute Global processing start
DEBUG - PVConnect: QuadratureEncoderAbsolute Timer Candidate TIM5 TIM2
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost 0 QENC_A PA0-WKUP TIM5_CH1
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost inf QENC_A TIM5_CH2
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost inf QENC_B TIM5_CH1
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost 0 QENC_B PA1 TIM5_CH2
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost 0 QENC_A PA0-WKUP TIM2_CH1
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost inf QENC_A TIM2_CH2
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost inf QENC_B TIM2_CH1
DEBUG - PVConnect: QuadratureEncoderAbsolute Signal connectivity High cost 0 QENC_B PA1 TIM2_CH2
DEBUG - PVConnect: QuadratureEncoderAbsolute Global processing completed
DEBUG - IWConnect: BEMFSensingADCFixedDivider Global processing start
ERROR - IWConnect: BEMFSensingADCFixedDivider BEMF_U is not connected to any matching input (ADC[0-9]*)_IN(?!N)
DEBUG - SWConnect: Potentiometer Global processing start
DEBUG - SWConnect: Potentiometer Global processing completed
How this error message can be solved?
Thanks in advance.
2025-05-21 2:07 AM
Hello @HEXUAN,
The main line is:
ERROR - IWConnect: BEMFSensingADCFixedDivider BEMF_U is not connected to any matching input (ADC[0-9]*)_IN(?!N)
Could you check that BEMF_U signal could reach an ADCx_IN input (refer to mcu reference manual, interconnect ADC table)?