用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.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值