Stm32f3 support

Hi there,

I have been tinkering with this library, and had some success with the help of reading through this forum. Thanks!

I recently hit a wall with my setup - I am using a stmf303k8 nucleo board, and it’s lacking support for a couple of things (so far):

  • no master/slave pwm alignment here, here, here.
  • No low-side current sense - it falls back to this when configuring ADC.

So, my question is: is the lack of support for stmf3x just due to it being “not implemented yet”, or is there a fundamental feature that is missing on these MCUs?

I have done some digging and in general the stmf3x boards do have “advanced” timers; the board I have in particular has one 16-bit “advanced timer”, a 32-bit general-purpose timer, and a number of 16-bit general purpose timers. Also, the ST motor control learning resources actually use a stmf303re for their workshop here.

I’m open to trying to add support for my board/mcu, but I don’t have confidence that it won’t be a waste of time because of some missing piece that I don’t understand at the moment. I’m new to embedded development, so please bear with me :slight_smile:

Hey @boz, welcome to SimpleFOC!

I think there is no special reason the F3 series is less supported, it just isn’t used very much by our users, I think.

No reason that both timer sync and current sense could not be implemented. We’re currently working on both the PWM and the ADC drivers so perhaps we’ll have a chance to add it.

Good to know. Thanks!