FastAccelStepper icon indicating copy to clipboard operation
FastAccelStepper copied to clipboard

Support for SAMD51

Open loriiiiiiiii opened this issue 8 months ago • 2 comments

Hi I'm currently using a SAMD51 microchip, which is not supported officially by fastaccelstepper. However, if I just change line 78 of common.h to

#elif defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_SAMD)

the code can be built.

I'm wondering if this change is all that's needed for the support, or if a greater effort would be needed.

loriiiiiiiii avatar Apr 18 '25 18:04 loriiiiiiiii

Sounds promising, that there is no compile failure. If you have the hardware, perhaps just give it a try?

the sam port has been done by @clazarowitz. Maybe he has some feedback.

gin66 avatar Apr 18 '25 19:04 gin66

Honestly, I’d have to check the datasheet. The pin mapping would be funny too I’m sure. You’re welcome to try it, but don’t expect much. I’ll see if I can take a look at it later. I’m actually back to working in a new stepper driver based on a tmc5160 and lmg1210 drivers for a big voltage/current range. This project is going to kill me :D

clazarowitz avatar Apr 18 '25 20:04 clazarowitz