Hello,
If you want to consider using NXP products instead, NXP has guides that can help you with running examples of Motor control / FOC from scratch ;
We offer an MCUXpresso SDK that includes multiple example with motor control for various NXP devices
Mostly orientated to 3-Phase PMSM and BLDC
MCUXpresso SDK for Motor Control | NXP Semiconductors
In Application Code Hub there are examples with their application note information guides to explain the step by step instructions applying the usage of this SDK and other different functionality.
Also the initial information in Sensorless PMSM Field-Oriented Control could help you in understanding PMSM FOC from scratch, as an introduction.
Let me know if you are interested in using NXP devices for developing.
Best Regards, Luis