Associate II
March 27, 2014
Question
FOC SDK 3.4 with STM32F303CB
- March 27, 2014
- 6 replies
- 3879 views
Posted on March 28, 2014 at 00:53
Hi,
I successfully used the 3.4 Library to drive a small brushless motor using an STM32F103 and 3 current shunt resistors. My new design uses the STM32F303CB and onboard PGA for current sensing. This new 303 version does not work, the motor spins during startup but as it switches to FOC it gives a ''Start-up Failure'' error. All of the other library settings (motor parameters, pwm freq etc) remain the same so I can only think it is a problem with the current sensing.I am a bit confused by the onboard current sensing. I select 3 shunt resistors, but it only assigns 2 op amps per motor. Was I supposed to use an external op amp for the 3rd phase?I have attached my STMCWB project and the current sense waveforms for motor 2. Do these current sense waveforms look as expected, am I missing something obvious? I have also attached the schematic showing which pins I hooked up and the current sensing resistors.Any help would be greatly appreciated, thanks. #foc-3.4-stm32f303