How to start the devolpment of SimpleFOC project for a custom driver board?

Hello, I have developed my own BLDC Controller board based on a STM32H743, 6EDL7141 and KTH7823-X-N-QN16. I have written my own FOC Code based on the MESC project. But somehow it feels like the motor does not turn smooth and low RPM are not smooth at all. So I would like to try to use the board with SimpleFOC to see whether the code is the problem or maybe the used motor is the problem.

What would be the recommended way to start? So far I used the STM32CubeIDE and also the included Debugging with an STLink V3. I also have a USB port accessible.

I think for SimpleFOC I should use PlatformIO or is there something better? Does PlatformIO support Debugging and Programming via an STLink or do I have to use the USB port?

Hi @Daniel_W , welcome to SimpleFOC!

Yes, I’d recommend to use platformio. We have a page on getting started with platformio in our docs.

And it does indeed support programming and debugging with your STLinkV3 - and that’s also what I’d recommend to use even if USB is available.

Let us know if you have any further questions.

We’ll be interested to hear about the comparison of MESC/your version of it and SimpleFOC :slight_smile: