I want to use SimpleFOC official library on keil to develop STM32f103rb board to control BLDC.Because SimpleFOC is based on Arduino,i try a plan on github declared in that structure the STM32 series MCU is compatible with Arduino syntax and is compiled and debugged on Keil( FASTSHIFT/Arduino-For-Keil: A lightweight Arduino framework for Keil projects. (github.com)).But i failed and left many errors.
I wonder if there is a suitable plan which can use SimpleFOC official library on keil.Or else i have to use Arduino IDE to use SimpleFOC official library or use others SimpleFOC library edited.
Thanks!
Long, long time ago there was a Topic about someone that was able to use SimpleFOC from a CubeIDE project. Another option that you have is to use PlatformIO and from there you have access to any resource available al STM32 HAL level.
I use SimpleFOC with PlatformIO , you can use any HAL functions just using regular STM32duino framework, it gives you plenty of control. I am not sure what additional benefit Keil has unless you are trying to roll motor control into an existing project, but for starting from the ground up, I recommend PlatformIO too
Thanks for your advice,i am going to try to use PlatformIO.
lol,because i use Keil for along time.I hope i can start a project from something i konw well.But after hearing your description PlatformIO may be a good way.
Please let us know if you are successful. I am try to integrate a CANOpen library with SimpleFoc and I’m very interested in this this topic.
Hey, did you finally make it work with Canopen and PlatformIO ?
Hi @rom … not yet May be this Christmas I have free time to try it
Oh yes, could be very helpfull. I will try by my side, keep you updated if I get this working
I would be very interested in the implementation of a fast and reliable communication protocol working with simpleFOC. Maybe we could also make something work related to the simulink questions.
What are the requirements you are thinking about?
It’s a complex topic because use cases are quite different and so everyone has slightly different requirements…
We have code for Serial and I2C communication based on registers in the SimpleFOC Drivers repository and there are examples for CAN based communication for some MCU types done by the community…
However, I feel we have digressed a lot from the original topic of this thread and should really start a new one for your comms related discussion…