AM62L FreeRTOS SDK  11.00.00
Application Run and debugging using CCS

Note
The steps on this page should be done each time EVM is power cycled or when a new CCS session is started.

Prerequisites

A quick recap of the steps that need to have been done before you proceed

  • Make sure you have installed CCS as mentioned in Download, Install and Setup CCS
  • Make sure the UART port used for console is identified as mentioned in Setup UART Terminal
  • Make sure you have the EVM power cable, JTAG cable, UART cable connected as shown in Cable Connections
  • Make sure the UART or CCS console logs on doing EVM POWER-ON indicate that SOC initialization is successful
  • Make sure you have built the example of interest as mentioned in Build a Hello World example

Send Application using USB-DFU

  • Setup the EVM in USB-DFU bootmode.
  • POWER-ON the EVM.
  • Send the prebuilt binary "tiboot3.bin" present at ${MCU_PLUS_SDK_PATH}/tools/boot/sbl_prebuilt/am62lx-evm/ as follows:
    sudo dfu-util -R -a bootloader -D tools/boot/sbl_prebuilt/am62lx-evm/tiboot3.bin
  • You will see pre-BL logs on the UART console after this.
  • Send the application binary, say, hello_world.release.appimage.hs_fs after the first binary is sent:
    sudo dfu-util -R -a bootloader -D examples/hello_world/am62lx-evm/a53ss0-0_freertos/gcc-aarch64/hello_world.release.appimage.hs_fs
  • You will see the application being executed after this step.

Application logs

Using CCS for debugging

Follow the below steps to debug an example application using CCS.

Start Project-less Debug
  • You will see the AM62LX target configuration in the "Threads" tab of "Debug" window as shown below

Target Configuration After Launch
  • Connect the target CPU of interest if not already connected. For the "hello world" example this is CortexA53_0

Connect CPU
  • Load the symbols of the application .out file as desired for debugging.

Load Symbols
  • In the "Load Symbols" dialog, select "Browse" and select the program from examples/{example folder}/{board}/{cpu}_{os}/{compiler} as shown below for the "hello world" program.

Select File for loading symbols
  • After this step, you can see the symbols being loaded through the debugger and the entire call stack.

Debugging the application

Re-load and run example binaries

  • Here simply repeat the steps shows in Send Application using USB-DFU
  • You will need to power-cycle the EVM to reload the application or load a new application example.