AM263x MCU+ SDK  11.00.00
CCS Tools

Introduction

This section describes CCS utility scripts that can optionally be used to make your development more productive.

Application loader

load_sbl.js script located at ${SDK_INSTALL_PATH}/tools/ccs_load/{soc} is useful for loading SBL executables to R5 Core-0 in a single step.

Usage

  1. 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/am263x/load_sbl.js
    sdkPath Points to the absolute path of the SDK. On Windows, make sure to use / as path separator.
    sbl_elf_file Points to the path of the sbl elf file.
    sbl_bin_file Points to the path of the sbl bin file.
  2. Launch the SOC target connection in CCS and do the SOC initialization, however DO NOT connect to any CPUs or load applications via CCS GUI. (see CCS Launch, Load and Run)
  3. Open CCS scripting console View> Console > Scripting Console and upload the JS file as shown below
    Load JS File
  4. If using CCS Eclipse, open CCS scripting console CCS Tool Bar > View > Scripting Console and run the below command.
     js:> loadJSFile "C:/ti/mcu_plus_sdk/tools/ccs_load/am263x/load_sbl_eclipse.js"
    
  5. After successful execution you should see a log like below. Example used here is "sbl_null"
     [Cortex_R5_0] L2 Memory Init Done ...
     Going to issue reset: System Reset
     [Cortex_R5_0] Loading SBL Init Code ...
     [Cortex_R5_0] Copying data to R5F_VECS ...
     [Cortex_R5_0] Triggering ROM Eclipse ...
     [Cortex_R5_0] Loading SBL ...
     [Cortex_R5_0] Running SBL ...
     Happy Debugging!!
    
  6. Please note that if a .out is not found, that CPU is skipped over with a information message on the console.
  7. If any of the logs in step 3 show "fail" or "error" messages then check your EVM, CCS, SDK setup, executable path and try again.
  8. To reload without power cycle, repeat step 2 onwards.
  9. See also description at the top of this file load_sbl.js for detailed instructions