motor control (especially FOC)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-09 4:35 PM
Hi ,
Is there any sample code for motor control (especially FOC) in Cube IDE, Cube MX, motor control workbench, ST website, etc.?
I tried to search all the Cube IDE, ST website, etc., but I couldn't find it.
Also, is there any additional software I need to use them?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 4:34 AM
・Is it possible to get the FOC sample code in any way other than generating it in the workbench? (For example, is there a library on the Cube IDE, Workbench, or ST site that can reference other FOC code?) )
No i don't think so. The generated code is in .c files, if you want to edit the existing FOC code you can do it.
・After "Generate Program" in the workbench, an error occurs when importing to the Cube IDE and debugging. Is there something missing or wrong with the procedure?
You have to build the project and see if there are no compilation errors, if no errors then your code generation is proper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-10 1:38 AM - edited 2023-07-10 1:52 AM
Hello, if you want to have code for motor control in FOC, you can download the MCSDK which is located at this link: Click here
After downloading and installing the MCSDK, simply launch the MC Workbench, select your Power Board and Control Board combination, choose FOC as the algorithm, and generate your project. If you have any other questions, please feel free to reply to me, otherwise please mark my answer as "Solution".
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-10 5:19 PM
Thank you for your answer.
Currently, the generation of the FOC algorithm by the workbench is complete.
So I have two more questions.
・Is it possible to get the FOC sample code in any way other than generating it in the workbench? (For example, is there a library on the Cube IDE, Workbench, or ST site that can reference other FOC code?) )
・After "Generate Program" in the workbench, an error occurs when importing to the Cube IDE and debugging. Is there something missing or wrong with the procedure?
Please answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 4:34 AM
・Is it possible to get the FOC sample code in any way other than generating it in the workbench? (For example, is there a library on the Cube IDE, Workbench, or ST site that can reference other FOC code?) )
No i don't think so. The generated code is in .c files, if you want to edit the existing FOC code you can do it.
・After "Generate Program" in the workbench, an error occurs when importing to the Cube IDE and debugging. Is there something missing or wrong with the procedure?
You have to build the project and see if there are no compilation errors, if no errors then your code generation is proper.
