2025-07-16 3:43 PM - last edited on 2025-07-25 6:07 AM by Andrew Neil
Hello,
I am working with the STM32F303E-EVAL control board and the STEVAL-IPMNM2S power board, using IAR Embedded Workbench 9.40.
I have struggled to get the motor running. I initially tried both MCSDK versions 9.3.2 and 9.4.0 separately, but in most cases, the motor either does not rotate or runs with excessive noise — overall, it fails to operate with error.
However, on one occasion, I accidentally recreated a project using MCSDK 9.3.2 and then rebuilt it using 9.4.0. Surprisingly, that build worked — the motor rotated smoothly, and I was able to Motor Pilot control speed and torque successfully.
Since then, I have tried many times (over 100 attempts) to reproduce the same working setup using both versions, separately and in combination, but without success. The motor fails to start or runs poorly.
Could someone please help me understand what might have gone right in that one successful attempt and how I can reliably replicate it?
Thank you in advance for your support.
2025-07-16 11:12 PM
Hello @kumarairia,
Did you use ST Motor Profiler tool for your motor?
For error description and management refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "(FOC) Firmware errors" link
2025-07-20 7:58 PM
Thank you for your quick reply.
No, I haven't used the Motor Profiler tool, as I already have the exact motor parameters provided by the supplier, so I didn't find it necessary to run the profiler.
I’ve spent a lot of time carefully reviewing the documentation and troubleshooting the setup. I’m now able to run the motor smoothly and control both speed and torque using external op-amps for current sensing.
However, my goal is to use the internal op-amps and internal PGA for current sensing—without any external op-amp circuitry.
When I generated the code using this configuration:
Attempt 1: Motor Pilot didn’t show any Iq/Id readings.
Attempt 2 to 10: I resolved the above issue, but the motor now runs with noticeable noise and the Iq readings are jumpy and unstable. The operation is quite unreliable.
I would really appreciate your guidance on how to properly configure the internal op-amp/PGA setup to achieve stable and reliable performance. I'm looking for a concrete solution, as I’m quite frustrated with the trial-and-error approach and would like to resolve this as soon as possible.
Please find the details attached.
Thanks again for your support.
2025-07-25 5:32 AM
Hello,
I need your urgent assistance regarding the issue mentioned above. Could you please respond at your earliest convenience?
2025-07-25 6:12 AM
Hello @kumarairia,
Did you check the list of hardware updates to be done on both boards? A list is available on workbench interface
Refer to steval-ipmnm2s user manual (Chapter 6. Current sensing amplifying network) and stm32303e-eval user manual (Table 19. Motor control related switches and solder bridges in OAM position).