TIDUF67 April 2024 – December 2024
The general structure of the project is shown in Figure 4-3. The device peripherals configuration is based on TI SysConfig. The user only needs to change the code and definitions in the hal.c and hal.h files, and the parameters in the user_mtr1.h file, if the user wants to migrate the reference design software to a custom board or to a different device.
Once the project is imported into CCS, the project explorer appears inside CCS as shown in Figure 4-4.
The transforms folder includes the typical FOC modules including Park, Clark, and inverse Park and and SVGEN that are part of the motor drive ISR and are independent of specific devices or boards.
The libraries folder includes the estimator library and other libraries that are not specific to any particular device or board.
The src_control folder includes motor drive control files that call motor control core algorithm functions within the interrupt service routines and background tasks.
The src_sys folder includes some files reserved for system control that are independent of specific devices or boards. The user can add code for system control, communication, and so forth.
Board-specific and motor-specific files are in the src_board folder. These files consist of device specific drivers to run the design. If the user wants to migrate the project for their own board or to other devices, the user only needs to make changes to the hal.c, hal.h, xxx.syscfg and user_mtr1.h files based on the usage of device peripherals for the board.