Motor Pilot and SWV in STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-22 2:14 AM
Hello,
I use STM32CubeIDE to compile the motor control code. The code runs without problem, when in normal run modes.
To use SWV trace for debug, I do the following:
1) complie for debug
2) start debug by "Resume"
3) stop debug by "Suspend"
4) reset the uC by the black button
5) open Motor Pilot and build the connection
6) start the motor in speed or torque control mode. And the motor runs as expected. The three phase currents are monitored with current probe. The waves are symetrical and ok.
7) keep the Motor Pilot running and the motor running and change to CubeIDE
8) click th red button "Start Trace" in SWV without restart debug by "Resume". Noise is obtained in the measured phase current, even when nothing is tracked, because still not resumed. And the noise disapears clicking on "Start Trace", the red button.
Can you understand the noise issue in this case? How to use SWV in parallel to Motor Pilot?
Thanks for your support.
STM32User
Solved! Go to Solution.
- Labels:
-
Motor Pilot
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-26 2:36 AM
Hello @STuser100,
Phase current signals are available on STMC Motor pilot.
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-23 2:07 AM
Hello @STuser100,
What is the purpose of using SWV tool for the measured phases currents that are available through MC Motor Pilot Tool?
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-26 12:55 AM - edited ‎2025-05-26 12:57 AM
Hello @GMA ,
the phase currents are measured with current probe and osziloscope. The MC Motor Pilot only show the RMS value but not the wave form. And I want to check the current wave form.
The point is not which signal is tracked or meausred in with tool, but why SWV introduces noise to the control. No matter what I track with the SWV tool, when it's activated, noise is introduced.
Is there any ST tool that I can use together with MC Motor Pilot for debugging purpose? I need to track some standard signals like voltage, current, as well as self-defined variables from self-defined functions.
Best regards,
STM32User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-26 2:36 AM
Hello @STuser100,
Phase current signals are available on STMC Motor pilot.
Best regards.
GMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-26 2:54 AM
Hello @GMA ,
thanks for the answer. I also tried that. Since there are only register signals available, and I want to track some self-defined variables, it somehow limits the usage.
I will write the self-defined varibles to register to monitor them in High_Frequency_Plot, as a workaround.
Best regards,
STM32User
