用ccs5调试beaglebone

CCSv5也可以用来加载和运行elf可执行的文件在beaglebone上面。和AM335xEVM相类似,链接ccs和beaglebone也需要各自的目标配置文件的出现和运行。而配置的步骤如下面所示:

1、开始ccsV5 IDE

2、打开目标配置窗口、到View,再到Target configuration

3、现在创建新的目标配置文件,右击User Defined然后,选择新的目标配置文件

4、为目标配置文件输入一个合适的名字,然后保存它到一个需要的位置

现在,仿真器和设备应该被选择在目标配置文件里面(目标配置名.ccxml)

选择一个仿真器,到'Basic -> General Setup -> Connection.如果XDS100v2 USB Emulator被用的话,就选择'Texas Instruments XDS100v2 USB Emulator'

为了选择设备,到'Basic -> General Setup -> Board or Device' 然后选择'AM335x'.再点保存

Now the Initialization Script which is the GEL File has to be specified.

  • Go to 'Basic -> Advanced Setup -> Target Configuration'. Here click on 'Texas Instruments XDS100v2 USB Emulator_0 -> AM335x_0 -> IcePick_D_0 -> DAP -> CS_DAP_DebugSS -> ModenaSS -> CortexA8'.
  • Now the path to the GEL file has to be specified. For this click Browse present beside to 'Target Configuration -> Cpu Properties -> Initialization script'. On the window which opens, select the required GEL file and click 'Open'. The GEL file to be used is 'tools/gel/AM335x.gel' of the StarterWare package.
  • Now click on 'Save'. The Target Configuration file is now ready to be launched.

Launching the Target Configuration

  • In the Target Configuration window, right click on the target configuration file and select 'Launch Selected Configuration'. This will launch the Target Configuration and will succeed provided the Emulator is attached to the host PC.

Connecting to the Target

  • Now the Target (a core in a multi-core SoC) has to be connected to CCS so that the executable that will be loaded later executes on this Target. The target in context is 'CortexA8'. In the Debug window ( View -> Debug ), right-click on 'CortexA8' and select 'Connect Target'. The target gets connected. This step succeeds only when the Device is attached to the Emulator and it is powered ON.
  • The GEL file specified earlier has some initialization functions which does system level configurations such as clock configuration and pin multiplexing for the target. This is essential in the absence of a bootloader. These initialization functions can be invoked by selecting them in 'Scripts' in the Menu bar. Select the script named 'AM335x_EVM_Initialization' and it gets executed. No other functions need to be executed.

Loading an executable

  • An ELF executable can now be loaded. Travel to 'Run -> Load -> Load Program' to load the required executable.

你可能感兴趣的:(properties,File,basic,System,menu,initialization)