cancel
Showing results for 
Search instead for 
Did you mean: 

Motor Pilot and SWV in STM32CubeIDE

STuser100
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @STuser100,

Phase current signals are available on STMC Motor pilot. 

GMA_2-1748252136771.png

 

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

View solution in original post

4 REPLIES 4
GMA
ST Employee

Hello @STuser100,

What is the purpose of using SWV tool for the measured phases currents that are available through MC Motor Pilot Tool?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

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

Hello @STuser100,

Phase current signals are available on STMC Motor pilot. 

GMA_2-1748252136771.png

 

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

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