STM32 + SimpleFOCShield + GM5208-12 + AS5048A

Hi! I’m doing a project where I use STM32 + SimpleFOCShield + GM5208-12 (brushless motor) + AS5048A (encoder SPI or PWM). On every example of FOC libraries I’ve seen that they use Channel A,B,I,GND,5v encoder on the shield. Is it possible to make it work with an SPI wiring ?

What STM32 are you using?
On the R3 the dedicated SPI pins are 13, 12, 11, 10, and these are used elsewhere on the board so not easily to use for SPI. But the STM32 pinout is generally more flexible, so you might be able to find some free pins on an SPI peripheral, especially if you are not using 2x shields.

I use a NUCLEO-64 F446RE