SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
The following figure shows the hardware configuration relationships for FOC project. The hardware layer contains three parts: Board layer, SysConfig layer and HAL layer.
The Board layer is the layer that users’ connection for the MCU with other components in hardware circuit. For FOC applications, it is mainly for the connection to the used gate driver device and ADC sampling channels.
The SysConfig layer sets the MCU peripheral initialization features in the .syscfg file. The IO PIN connected to the external circuit needs to be set as the appropriate peripheral function to run FOC application sucessfully. The SDK project provides several peripheral default configurations to fit the DRV EVM Board or TIDA Reference Board. Users need to configure the .syscfg file to manually adapt the hardware circuit. The SysConfig tool will automatically generate MCU peripheral initialization file, including macro definitions mapped to MCU hardware peripherals.
The second HAL layer is the Customized Macro Definition in the SDK FOC project. Lots of FOC functions call customized macro definitions to determine the implementation of the algorithm. Therefore, users need manually to manage these customized macro definitions in header files to adapt the hardware circuit and SysConfig generated macro definition.
Follow the steps below to migrate the hardware configurations for customized board: