This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] C6000多核常见问题分享

Other Parts Discussed in Thread: TMS320C6678

如何测量C66x代码运行时间?

在C66xx中有计时寄存器TSCH TSCL,所以可以通过在测试程序前后读取该寄存器的方式获得程序的运行时间。使用参考如下:

TSCL=0;  //初始化为任意值使能TSC时钟计时

start = TSCL;

FUNC();

end = TSCL;

cycle = end - start;

TSCH, TSCL寄存器的介绍可以参考CPU User Guide。
2.9.13 Time Stamp Counter Registers (TSCL and TSCH)
https://www.ti.com/lit/ug/sprugh7/sprugh7.pdf

在哪里可以找到keystoneI, keystoneII boot example?

KeystoneI boot example
            https://www.ti.com/lit/an/spracn2/spracn2.pdf
         
             KeystoneII boot example
            https://processors.wiki.ti.com/index.php/KeystoneII_Boot_Examples

如何编译ex11_ping例程?

1.下载TMS320c6678 processor sdk RTOS

https://software-dl.ti.com/processor-sdk-rtos/esd/C667x/latest/index_FDS.html

2.修改products.mak,每一个例程都会有自己的products.mak文件。根据实际的安装路径修改以下变量。

DEPOT = _your_depot_folder_

#### BIOS-side dependencies ####

BIOS_INSTALL_DIR       = $(DEPOT)/_your_bios_install_

IPC_INSTALL_DIR       = $(DEPOT)/_your_ipc_install_

XDC_INSTALL_DIR       = $(DEPOT)/_your_xdctools_install_

#### BIOS-side toolchains ####

#ti.targets.elf.C66     = $(DEPOT)/_your_ti_dsp_codegen_install_

3.编译例程

cd <RTOS_SDK_INSTALL_DIR>/ipc/examples/ C6678_bios_elf/ex11_ping > gmake

4.生成可执行文件

<RTOS_SDK_INSTALL_DIR>\ipc\examples\C6678_bios_elf\ex11_ping\ coreX\bin\debug