2024-12-16 12:25 PM
Hello,
i am beginner in ST motor control domain.
I have installed the following software versions :
MC workbench v6.3.2
CUBE IDE v1.16.1
CUBE MX v 6.12.1
I have a problem when trying to connect my board using profiler.
In log, i can see the last two messages :
UART worker: Succesfully opn port COM8 @ 921600
Try to configure the board
And the process stop here.
Precisions :
The STM32 has been full erased previously with Cube programmer
Profiler is the only tool connected to my board when i am trying to make the connection with profiler
With Cube IDE as well.
Can you help me ? I have spent several hours looking for solutions but i'm still stuck.
Best regards
2024-12-17 12:21 AM
Hello @Thierry81 and welcome to ST Community,
Once board flashed and FW launched, open Motor Pilot and click on "Discover Board".
2024-12-17 10:59 AM
Thank you for your answer,
I have tried. It works, that is, the motor pilot is OK and well connected to the board.
But when i try to start, there are errors because the parameters of the motor are not
exact.
And that is the problem. I want to run the profiler so to obtain the exact parameters,
but it is still stuck when attempting to connect with the same message
But maybe I am wrong, and don't understand your environment. Let me ask you
few essential questions about your system :
* Using motor pilot is adapted when all the FOC software (what you call FW) is already flashed, True ?
* in this case, the program running on board is listening the UART whose signals are carried by the USB cable (via STlink), True ?
Now, if i want to use Profiler :
* i thought that even with a blank flash of my Nucleo board, the system could load a "minimum command" so to allow profiling
motor. Am i wrong here ? Nevertheless, i remember i have read that it was possible. If so, how the flash process is done ? Is it possible with UART ?
Finally, is this flow correct ?
* use Motor control workbench first with a default machine (not mine, approximative param),
* flash the Nucleo Board
* open the Motor pilot and select Discover board, and the connection via UART must be OK
* open profiler to test my motor, hoping the connection stay OK (but for me, it does not work !!)
* save the motor model
* go back to Motor control wb and make the new conf with my new motor param .
If this flow is not OK, can you give me the steps knowing I am using an new motor ? How
to profile ?
Thank you very much
Best regards
2024-12-17 11:57 PM
Hello @Thierry81,
Refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "Motor Profiler Application Note".
If communication is lost, you can try with a lower PWM frequency to decrease CPU load.
2024-12-20 03:06 AM
Hello
Thank you for the app note
OK first we need to launch Motor Control WB.
Then, in user interface i can set the baud rate of UART2. It s better to know exactly rather then let the profiler app dectect the good bdrate. Then Compile et load the project in brd through cube ide.
Then when i try to connect profiler with good bdrate, proliler app says "not a profiler program in the brd" or something lire that...
So go back in Control WB, and go in apllication setting. Here is a case to check to indicate that application is for profiling.
After programming with cube IDE, go back to profiler and all is OK, profiling can start !
Best regards