Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Serverβ€’2y agoβ€’
2 replies
wafa_ath

Why won't my PMSM motor rotate with FOC on STM32F031K6T6?

Hi everybody.
I am working on a project using STM32F031K6T6 to control a PMSM motor using FOC sensorless. I tested the code generated from MCSDK running on STM32F407 and it works normally. but on STM32F031K6T6 the motor does not rotate. Anyone who has worked on this topic please help me. Thank you very much.
Solution
Since it works on the STM32F407, it's likely a hardware or configuration issue.

Try this out

Clock speed: Ensure the clock speed is set correctly for the STM32F031K6T6.

Pin mappings: Double-check that the pin mappings match the new hardware.

Peripheral configurations: Verify that the peripheral configurations (e.g., UART, PWM) are correct.

Power supply: Ensure the motor and MCU have sufficient power supply.

Debugging: Use a debugger or print statements to identify where the code gets stuck.
Jump to solution
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ESP8266 Relay Stays On – Why Won’t It Turn Off?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
15mo ago
Any advice on choosing a servo motor ?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
How to fix SG90 servo motor jitter on BeagleBone Black with PWM?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
Why isn't my ESP8266 RFID Reader Providing Expected Output on the Serial Monitor?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago