I intend to start using some STM32 processors for motor control with a wide speed range and fast low speed response to load variations. What programming platform should I use?
I started experimenting with and using the Arduino IDE with the Arduino Nano V3 PCB a year ago as a hobby. Before that I had worked with the development of electronics with microprocessors from about 25 to 40 years back using Assembler and Pascal as programming languages. But now I learned to use C++ and this Arduino platform. For the control of a DC motor for a sewing machine, I needed to make software closer to the hardware in the MPU than the general Arduino platform support. It was also hard for me to find software able to handle full four quadrant control of an H-bridge with active current control. I managed to program this MPU to do that without damaging the functions of many of the Arduino procedures like micros(), millis(), digitalWrite, and Serial.print(). I appreciate that specifics like a bootloader are taken care of in an easy way without me knowing much about it. However I still lacks about many aspects in programming, because I still read many technical software terms, that I do not know the exact meaning of.
When I look at the github for the SimpleFOCproject, it also seems connected to the Arduino IDE: https://github.com/simplefoc
Can other IDEs be used as well?
I noticed this video about getting started with PlatformIO and SimpleFOC:
https://www.youtube.com/watch?v=3B88qCny7Kg
I don’t understand everything that is going on here, so I guess I need to study more. Do such a solution make standard Arduino procedures available?
For future projects with a STM32 processor I should like to be able to use the SimpleFOC sofware and control the motor in different ways. I also want to be able to make my own experiments with low-level programming of ADCs and timers for motor control, that includes current sensing.
I got a lot of help from the Arduino Forum to get started, and I hope I have helped others in that forum as well. Recently, I tried to ask the forum about STM32, and I got almost no response, but one guy recommended me to use the STM32 CubeIDE. I have seen some effort to use the STM32 MPUs from Arduino IDE with an open-source initiative called STM32duino. They have got a homepage and a forum, but it seems like the forum there is not that active and new development have stopped. I have now waited five days to get accepted for a login. Six years back a guy called Roger Clark was very active there, but I think he was hired by ST Microsystems, and this effort almost stopped.
Therefore, it seems reasonable to look elsewhere than the Arduino IDE for the use of the STM32 MPUs, even though I do know the Arduino IDE now. Am I right?
As far as I can see, PlatformIO and STM32 CubeIDEs are two other free alternatives. But are other IDE platforms relevant? It seems that the Stlink V3 is a popular programming and debug device to be used as well. Do you agree? Are other methods relevant?
I hope some other platforms have forums with helpful people like I made use of with the Arduino forum.
What do you recommend for me?