SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
Gate drivers support different Comm interfaces to configurate, including resistor based, SPI based, IIC based, and others. It is complex for users to integrate a new Comm interface into FOC HAL library and debug. An easier way is introduced to disable default SPI based communication (DRV8316 or DRV8323 FOC project), so that the FOC algorithm does not use any MCU pins or peripherals to do communication.
Follow the steps in Section 8.2.3.1 to use CUSTOM communication interface. Then the gate driver communication APIs is set to empty and will not impact normal FOC applications, as shown in Figure 8-9. Users can also manually modify the source code as empty for the gate driver communication interface and then add their own gate driver files out of FOC application to suit their own hardware board.
Directly deleting APIs shown in the above figure results in compiler error as Sensorless FOC Library calls these APIs in a static library.