2026-02-16 10:53 AM
Hi there,
I want to use the AS5048A SPI encoder with the STM32 Motor Control Work bench SDK to precisely control a 3 phase GL30 KV290 Motor.
I noticed STM motor control work bench only supports quadrature encoders and I can apparently use custom code to make an absolute encoder work.
Is there any information about how to do this?
2026-03-09 10:20 AM
Hello @briannaG,
As mentioned, only quadrature encoders are supported by the MCSDK tool.
Use this as an example. After generating the project, you can use the STM32CubeMX tool to enable and configure the SPI port.