2.6 交叉编译工具链设置
打开 ~/.bashrc文件,
cd~
gedit.bashrc
添加交叉编译工具路径至环境变量,即在文本末尾追加:
exportPATH=【解压路径】/Release/Source/dvsdk_ipnctools/linux-devkit/bin:$PATH
保存退出,运行:
source.bashrc
使环境变量生效
2.7 UBL编译
UBL在windows下使用CCS进行编译,编译前请将【解压路径】/Release/Utils/flash_utils_dm36x文件夹复制到windows目录。
2.7.1CCS3.3安装
UBL必须使用CCS进行编译,CCS3.3.38下载地址点击这里,要将CCS3.3.38升级到3.3.82,需要下载升级文件(SR12_CCS_v3.3_SR_3.3.82.13.exe),升级文件下载地址点击这里,升级时会选择已经安装的ActivePerl5.x版本(ActivePerl5.8可在Google/Baidu搜索ActivePerl-5.8.8.822-MSWin32-x86-280952.zip下载,见 http://www.linuxidc.com/Linux/2012-08/67330p2.htm),升级完成后,还要升级ARMcgtools到4.5版本,ARMcgtools下载地址点击这里(可下载ti_cgt_tms470_4.5.2_setup_win32.exe,该版本测试通过)。
安装完成后,Change the ARMcgtools used in CCS.
a.There are two ways to open Component Manager.
InCCS, pls select Help->About..., then a new window appears. Plsclick Component Manager. Then you will see the Code Composer StudioComponent Manager window.
Oryou can go to /CCS install folder/cc/bin. Pls run comp_mgr.exe. Thenyou will also see the Component Manager window.
b. Plsclick '+' of Build Tools, then '+' of TMS470R2x, then you will seeall CCS ARM cgtools you installed on the PC. Select the version youneed, such as V4.5.0. (TMS470R1x is for ARM7 and TMS470R2x is forARM9.)
c. Closethe Code Composer Studio Component Manager window. You will see awarning window "This configuration change requires Code ComposerStudio to be restarted.. Pls save your work and restart Code ComposerStudio before proceeding.". Read it and click ok.
d. TheComponent Manager will ask "Do you want to save changes?".Pls select Yes.
设置完成后,Restartthe CCS to let the new setting effect. Then build the ubl projectwith new ARM cgtools。
