6.23.4. DM Power Configuration Tool¶
6.23.4.1. Introduction¶
DM Power Configuration Tool offers a user-friendly GUI for PLL (IP Frequency) and PSC configuration for the supported SoCs. User can create multiple config for different usecase. Based on UI config, code is generated for single/multiple config.
6.23.4.2. How to Use the GUI and Generate Output Code¶
6.23.4.2.1. Prerequisites¶
SysConfig version 1.20.0
The SysConfig should be installed in a directory with the following structure:
$(HOME_DIR)/ti/sysconfig_$(SYSCONFIG_VERSION), whereHOME_DIRrepresents your home directory andSYSCONFIG_VERSIONis the version of SysConfig.If you wish to use a different version of SysConfig or change the installation path, simply update the
SYSCONFIG_VERSIONorSYSCFG_PATHin the Makefile.
6.23.4.2.2. For PDK¶
The DM Power Config Tool is a standalone tool that requires specific steps to generate output code in the correct locations.
Open the DM Power Config Tool GUI
Run the following command to open GUI:
make syscfg_gui BOARD=<board>
Configure PLL and PSC
IP Frequency (MHz)
This tab presents a list of key IPs within the SoC and enables users to configure their frequencies. To set the desired frequency, select the appropriate value and check the “Custom Clock Enable” checkbox. If this checkbox is disabled, the IP frequency will not be configured.
Fig. 6.8 PLL Configuration¶
Notes:
The IP frequency settings depend on the configurations that the Device Manager (DM) can support.
The frequency values displayed in the tool are in MHz and should be specified with up to six decimal places when a fractional part is required. This level of precision ensures that the desired frequency is accurately represented
Some IPs may be non-editable, as they cannot be configured by the user.
PSC Config
This tab lists IPs that can be enabled or disabled using the checkbox.
Fig. 6.9 PSC Configuration¶
The configuration settings made in the GUI will be saved in the file
out/<board>.syscfg, where<board>is the name of the SoC. . This file is utilized for generating the output code..Generate Code Based on the Configuration
After configuring the desired settings in the GUI, execute the following command to generate the code:
make syscfg BOARD=<board>
This will generate code in the respective files based on the GUI configuration done above.
6.23.4.2.2.1. Using Power Configurations on Board (PDK)¶
Include the generated header file in application:
#include "board_ecu.h"
Based on Instance (and name), #define are created
#define BOARD_ECU_NONE (0U) #define BOARD_ECU_FC (1U) #define BOARD_ECU_SRV (2U) #define BOARD_ECU_AVP (3U)
Call the initialization function with desired configuration:
Board_ecuInit(BOARD_ECU_FC);
6.23.4.2.3. For MCU+SDK¶
This tool is seamlessly integrated into the SDK SysConfig
infrastructure. GUI configuration is identical to the one described in
the previous section. The generated code is automatically included in
the ti_power_clock_cfg.c file. For more information about the SDK
SysConfig and how to use it, please refer to the MCU+
Academy.
6.23.4.3. User Configuration¶
Users can customize the list of IPs and PSCs supported by the tool. Refer to Custom config for detailed instructions on how to add or remove IPs and PSCs from the tool.
6.23.4.4. Supported SoCs¶
J784S4
J722S
J721S2