Skip to main content
Visitor II
February 16, 2026
Question

STM32 Motor Control SDK Work bench- Absolute SPI Encoders

  • February 16, 2026
  • 1 reply
  • 198 views

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? 

 

1 reply

GMA
Technical Moderator
March 9, 2026

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.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA