I wonder if the schematic suitable to apply the FOC library? And what settings should I change for it?
The short answer is no.
You showed us a picture of a BLDC power stage based on TI's MOSFET Driver DRV8302. But you did not show us your MCU. At this point its impossible to tell how to customise FOC code.
That's the point - how I include the STM32 MCU with FOC into the project?
Retrieving data ...