cancel
Showing results for 
Search instead for 
Did you mean: 

ST Motor Pilot/Profiler will not connect when using UART.

dfshea
Associate II

Hello, I have a custom motor controller that I've developed that uses the STSPIN32G4. After a bunch of goof ups I finally managed to get it configured, presumably correctly, in the MC Workbench Board Designer. However once I upload the compiled program to the board, I cannot connect to it using the motor profiler or motor pilot software. I have checked that I have the right baud rate (115200), I've enabled motor profiler in the project, and I've tested my UART connection with CubeProgrammer (which functioned as expected). 

I'm wondering what the issue is? My assumption is that if I have UART communication at the correct baud rate with CubeProgrammer, then the only issue could be in software somewhere because ASPEP just isn't getting a response beacon. My assumption could be totally wrong though and I could have also configured something wrong in hardware. Just let me know if you have any ideas as to what could be going wrong, or if you need any more information to diagnose. Thank you!

4 REPLIES 4
GMA
ST Employee

Hello @dfshea,

Does UART associated to "Motor Control Protocol" interrupt is correctly trigged and received on FW side?

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

Hello, thank you for getting back to me. This might be a rookie question but how would I check if that interrupt is triggered? Would that be via debugging?

GMA
ST Employee

Hello @dfshea,

On board designer board description, you set a "SerialPortCommunication".
On MC workbench, serial port communication is used for Motor Control Protocol as for EVSPIN32G4 board:

GMA_0-1741363769982.png

In this case, debugging and setting a break point on USART1_IRQHandler() function, we know that requests from MC pilot are correctly received.

 

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

I searched the project for USART1_IRQHandler(), and I couldn't find it. I did ctrl+h, and nothing showed up. Do you know which file it is supposed to be in so I can manually search for it?