
CCS 使用指导
Contents
硬件参考连接14pin
使用说明
A Guide to Debugging With CCS on the DRA7x, TDA2x and TDA3x Family of Devices
注意事项:GEL里面配置clock,ddr,soc初始化等等。 等同于uboot 里面做的配置。因此,在使用过程中,必须二选其一。 使用uboot的时候,注意在ccs debug 的时候取消GEL的配置。
TDA4VM ONLY CCS SETUP
- Load the initialization script of the DMSC_Cortex_M3_0 core with the J7 Gels as shown below.
Open the Advanced tab of the target configuration file J721E_EVM.ccxml Gel files can be found at below path
${CCS_INSTALL_PATH}/ccs_base/emulation/gel/J721E_DRA829_TDA4VM/gel/J721E.gel
![]()
- Load RTOS/baremetal application binaries through CCS
界面及功能
– debug 窗口可以连接不同的核。
– Register 窗口可以查看SOC相关的寄存器。
– 中间是编辑器窗口
- 中间靠右是memory 和汇编调试窗口。
– 左下角是console 窗口可以打印系统的输出信息.
– 下面靠右可以看到gel 文件窗口。
GEL 脚本工具使用
使用TI 的处理器,都会由GEL脚本配置。TI 的CCS 本身预装了GEL脚本。
两种方法加载GEL脚本文件。
1. target configuration: 选择core , init scripts
2. 连接SOC 后,右击open gel files view,然后在gel file串口右击可以load 和remove GEL。
CCS 下载及安装
从下面的地址进行下载
由linux 和windows 两个版本。推荐使用linux 版本.
Jtag选择
ID | Notes |
---|---|
XDS100 | —– |
XDS200 | suggested |
XDS560 | suggested |
XDS200
XDS560
Q&A
XDS110 – The value is ‘-600’ (0xfffffda8) solution
[Start: Texas Instruments XDS110 USB Debug Probe_0]
Execute the command:
%ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity
[Result]
-----[Print the board config pathname(s)]------------------------------------
/home/fredy/.ti/ccs1031/0/0/BrdDat/testBoard.dat
-----[Print the reset-command software log-file]-----------------------------
This utility has selected a 100- or 510-class product.
This utility will load the adapter 'libjioxds110.so'.
The library build date was 'Apr 29 2021'.
The library build time was '17:46:08'.
The library package version is '9.3.0.00058'.
The library component version is '35.35.0.0'.
The controller does not use a programmable FPGA.
An error occurred while hard opening the controller.
-----[An error has occurred and this utility has aborted]--------------------
This error is generated by TI's USCIF driver or utilities.
The value is '-600' (0xfffffda8).
The title is 'SC_ERR_LIB_ANY_LOCATE'.
The explanation is:
A required dynamic library could not be located.
The library isn't on the search path.
[End: Texas Instruments XDS110 USB Debug Probe_0]
解决方案,重新下载XDS Emulation Software (EMUPack)
安装到ccs 目录, 安装包会安装到ccs/ccs_base 目录中。然后重新启动ccs fix 这个错误。
The value is ‘-183’ (0xffffff49) solution
[Start: Spectrum Digital XDS560V2 STM USB Emulator_0]
Execute the command:
%ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity
[Result]
-----[Print the board config pathname(s)]------------------------------------
CCS\ti\0\0\BrdDat\testBoard.dat
-----[Print the reset-command software log-file]-----------------------------
This utility has selected a 560/2xx-class product.
This utility will load the program 'sd560v2u.out'.
Loaded FPGA Image: C:\ti\ccsv6\ccs_base\common\uscif\dtc_top.jbc
The library build date was 'Jul 27 2016'.
The library build time was '17:21:41'.
The library package version is '6.0.407.3'.
The library component version is '35.35.0.0'.
The controller does not use a programmable FPGA.
An error occurred while hard opening the controller.
-----[An error has occurred and this utility has aborted]--------------------
This error is generated by TI's USCIF driver or utilities.
The value is '-183' (0xffffff49).
The title is 'SC_ERR_CTL_CBL_BREAK_FAR'.
The explanation is:
The controller has detected a cable break far-from itself.
The user must connect the cable/pod to the target.
[End: Spectrum Digital XDS560V2 STM USB Emulator_0]
this question is solved by EMU1 connect to ground
how to install XDS 200 driver in ubuntu18
Please run scriptes:
Tested on 18.04 bionic (with canonical partners repository enabled)
update system: sudo apt update
install dependent libraries: sudo apt install libc6:i386 libusb-0.1-4 libgconf-2-4 build-essential
install CCS
if CCS was installed as user then run the driver install script
go to
sudo ./install_drivers.sh
Sudo ./ti_permission.sh
如何使code 停止在某个位置?
让code 停在某个位置, 有时候调试非常方便。
diff --git a/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/mcu2_0/main.c b/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/mcu2_0/main.c
index a32f3270..447a5bd7 100755
--- a/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/mcu2_0/main.c
+++ b/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/mcu2_0/main.c
@@ -87,7 +87,7 @@ static Void appMain(UArg arg0, UArg arg1)
void StartupEmulatorWaitFxn (void)
{
- volatile uint32_t enableDebug = 0;
+ volatile uint32_t enableDebug = 1;
do
{
}while (enableDebug);
How to dump CTT clock register from CCS ?
Code Composer Studio (CCS) Memory Dump The following sequence have to be followed for a memory dump in CCS
1. Step 1: In Code Composer Studio load the appropriate target configuration and run it. Note: For more information on Code Composer Studio set up and usability refer to the Code Composer Studio Help.
2. Step 2: Wait while the connection to the target is established and the target is initialized.
3. Step 3: Then from the CCS menu go to Tools -> Gel Files. Right click in the window that just opened and load CTT-<Device_Name>_<Device_SR>-REG_DUMP.gel
script. A menu will appear called Scripts. _
4. Step 4: Click on Scripts -> <Device_Name><Device_SR> Clock Tree Tool -> Memory_Dump
buttern;
5. step 5:During execution, the GEL script prints the needed CTT registers with values in the console. NOTE: A set of gel files are provided in the CTT installation folder. See \Scripts.
- set the gel in mainr5f: gel from the ctt tools –> scripts.
- run and connect r5f
- run the scripts.
- using the notepad++ to deal with the file : removing the MAIN_Cortex_R5F_0_0: GEL Output.
MAIN_Cortex_R5_0_0: GEL Output: DeviceName TDA4xM_SR1.0
MAIN_Cortex_R5_0_0: GEL Output: 0x0010A000 0x0000001F
MAIN_Cortex_R5_0_0: GEL Output: 0x0010A128 0x00000000
MAIN_Cortex_R5_0_0: GEL Output: 0x0010A380 0x00000000
MAIN_Cortex_R5_0_0: GEL Output: 0x00697080 0x00008001
MAIN_Cortex_R5_0_0: GEL Output: 0x00686038 0x01020001
to
DeviceName TDA4xM_SR1.0
0x0010A000 0x0000001F
0x0010A128 0x00000000
x0010A380 0x00000000
0x00697080 0x00008001
0x00686038 0x01020001
- open the CTT tools and set the OSC0 clock : set the soc0 clock 19200000
CCS/TDA4VM: How to view c6x trace buffer on Linux?
TDA4VM thermal: How to read on-die temperature?
How to flash OSPI using CCS on TDA4x/DRA82 EVM?
参考文档
- http://software-dl.ti.com/ccs/esd/documents/ccsv7_debugging_jtag_connectivity_issues.html#library-error
- http://software-dl.ti.com/ccs/esd/documents/ccsv8_linux_host_support.html
- https://www.ti.com/tool/CCSTUDIO?keyMatch=CCS&tisearch=search-everything
- http://software-dl.ti.com/ccs/esd/documents/ccsv8_linux_host_support.html
相关
您可能也喜欢

HarmonyOS 鸿蒙系统
2021年6月6日
Sharing IVA-HD Between VISION SDK and PSDKLA On Jacinto6 SoC
2021年4月23日
一条评论
Pingback: