CCS Project-less Debug (AM13E2X)

Note

The displayed images use AM13E230x as reference. The techniques documented here can be reused for other SoCs.

One time CCS setup of target configuration for Project-less debug

  • Goto Toolbar > View > Open View .... Type target configurations

  • Locate the Target Configuration view in CCS

  • Click on + to do a New Target Configuration

    Create New Target Configuration (1)
  • Give it a name, e.g AM13E232X

  • Select your device or board and emulator of interest, e.g AM13E232X as device and XDS110 as emulator.

  • Save the configuration, Ctrl-S or Toolbar > File > Save

    Create New Target Configuration (2)
  • You will see a file named “AM13E232X.ccxml” in your Target Configurations view

Every time you want to launch a Project-less debug session in CCS

  • Open Target Configurations view and right-click on “AM13E232X.ccxml” and click Start Project-less debug

    Launch Project-less Debug
  • Assuming your debug probe and board are connected to the PC, you should see debug session started with CPUs for the selected device AM13E232X listed in Threads view.

  • Right-click on the CPU of interest, typically the CPU for which the example is built and click Connect Target.

    • This should change the CPU state as HALTED

      Connect To Core
  • Now you can load the example binaries (.elf or .out) by doing Toolbar > Run > Load > Load Program. Select the .elf file for the example of interest

    Load Program
  • Once the program is loaded successfully, you will see the program execution is halted at main()

    Run Program
  • You can now run or debug using various CCS debug options

To reload and run again after modifying your example

  • Modify and build your example, using steps mentioned in Advanced command line based build and debug, typically make all should do it

  • Do Toolbar > Run > Reset > System Reset

    • Depending on what you are doing, you may need to power-cycle the connected board. In this case

      • Right-click on the CPU of interest and do a Disconnect Target

      • Power-cycle the board

      • Right-click on the CPU of interest and do a Connect Target

  • And then Toolbar > Run > Load > Reload Program

  • You can now run or debug using various CCS debug options