Silabs Wireless Gecko Series2 support

Dear All,

We at Silicon Laboratories added some drivers to the simpleFOC library to support our Wireless Gecko Series 2 family. We would be happy if we can provide this back to the Community. In the current state the PWM driver (up to 6 channels) and the Current Sense driver (low-side shunts based) are working. The current sensing is synchronized to the PWM by hardware and using DMA. We tested it with some simple BLDC motor control examples. If somebody is interested the next boards have Arduino Core support at the moment: GitHub - SiliconLabs/arduino: Arduino Core for Silicon Labs devices

I quickly checked the forum about the Pull Request procedure but couldn’t find any summary. Let me know if I missed it. If I understand well we have to create a fork and make the PR to the development branch? Is there anything else?

1 Like

Hi @gaszabo,

Welcome to the forum.
Sounds great!

Yes for the PRs, create a fork, make the changes and create a PR against the dev branch.

Hi @Antun_Skuric,

Thank you. I created the PR: Add Silabs drivers and examples by silabs-szabog · Pull Request #485 · simplefoc/Arduino-FOC · GitHub .

Let me know if something missed.

Hi @Antun_Skuric,

I see now some test errors in the PR but that isn’t fully clear why the workflow wants to build the Silabs examples in other platforms (e.g. ESP32). When I checked the workflow I saw that the sketch files are defined for every platforms but somehow it behave different. Can somebody help me to understand what is wrong?

Hi @Antun_Skuric

We have fixed the workflows and some other minor issues.
Could you review the pull request please?
Let us know, in case any other modification is needed.

In parallel we start to look into the documentation to add Nano Matter to the supported hardware, board pages.

Hi @MarkWendler ,

Thanks so much for this great contribution! Supporting a whole new MCU series in SimpleFOC is a big job, and we’re very grateful for your help in this.

As you may have noticed I started a branch to support silabs when the Matter Nano came out, but I haven’t been able to really work on it much… so to receive this support from you guys is really very greatly appreciated!

I’m just running the the tests in GitHub now, and if there are no objections from your side I would love to merge this to the dev branch, so it can subsequently be included in the next release of SimpleFOC.