SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
MSPM0 SDK provides preset custom source files for HAL layer are in the following path:
...\ti\mspm0_sdk_<SDK_Version>\source\ti\motor_control_pmsm_foc\common_modules\hal\LP_MSPM0Gx5xx\gateDriverInterface\[LAUNCHPAD]\sourceFigure 8-7 shows the CUSTOM HAL layer file.
Add the custom_focHalInterface.c file into the gateDriverLib folder of the FOC project below: