This section describes CCS utility scripts that can optionally be used to make your development more productive.
load.js
script located at ${SDK_INSTALL_PATH}/tools/ccs_load/{soc}
is useful for loading and running applications across multiple CPUs in one step.
Search and modify below mentioned variables in the script file before loading. These are used to construct path to the example .out file when the example is built via makefiles. Alternatively, can you give absolute paths to the example .out of interest.
Variables | Description |
---|---|
${SDK_INSTALL_PATH}/tools/ccs_load/am64x/load.js | |
sdkPath | Points to the absolute path of the SDK. On Windows, make sure to use / as path separator. |
runAfterLoad | set to true or false , depending on if want to run the application after loading. |
examplePath | Relative example path from sdkPath above, e.g. examples/drivers/ipc/ipc_rpmsg_echo |
exampleName | Example name, e.g. ipc_rpmsg_echo |
os | OS name, nortos or freertos |
profile | Build profile to use, debug or release |
board | Board to use. e.g. am64x-evm |
CCS Tool Bar > View > Scripting Console
and do below, js:> loadJSFile "C:/ti/mcu_plus_sdk/tools/ccs_load/am64x/load.js"
C:/ti/mcu_plus_sdk
with the absolute path to where the SDK is installed.js:> loadJSFile "C:/ti/mcu_plus_sdk/tools/ccs_load/am64x/load.js" Connecting, halting, reseting ... [r5fss0-0] Loading ... C:/ti/mcu_plus_sdk/examples/drivers/ipc/ipc_rpmsg_echo/am64x-evm/r5fss0-0_freertos/ti-arm-clang/ipc_rpmsg_echo.debug.out [r5fss0-1] Loading ... C:/ti/mcu_plus_sdk/examples/drivers/ipc/ipc_rpmsg_echo/am64x-evm/r5fss0-1_nortos/ti-arm-clang/ipc_rpmsg_echo.debug.out [r5fss1-0] Loading ... C:/ti/mcu_plus_sdk/examples/drivers/ipc/ipc_rpmsg_echo/am64x-evm/r5fss1-0_nortos/ti-arm-clang/ipc_rpmsg_echo.debug.out [r5fss1-1] Loading ... C:/ti/mcu_plus_sdk/examples/drivers/ipc/ipc_rpmsg_echo/am64x-evm/r5fss1-1_nortos/ti-arm-clang/ipc_rpmsg_echo.debug.out [m4fss0-0] Skipping load, C:/ti/mcu_plus_sdk/examples/drivers/ipc/ipc_rpmsg_echo/am64x-evm/m4fss0-0_nortos/ti-arm-clang/ipc_rpmsg_echo.debug.out file NOT FOUND ... [r5fss0-1] Running ... [r5fss1-0] Running ... [r5fss1-1] Running ... [r5fss0-0] Running ... All DONE !!!
load.js
for detailed instructionsload_dmsc_hsfs.js
located at ${SDK_INSTALL_PATH}/tools/ccs_load/{soc}
is useful to perform SOC initialization using CCS scripting. This script basically loads sciclient_ccs_init.release.out
from R5 to to initialize DMSC and perform the default board configuration.
This script is especially useful for initial custom board bring up when only GEL files are available and nothing else.
Please refer SOC Initialization Using CCS Scripting for how to run this script.