【吧主帖】在LINUX(ubuntu)系统下装CCSv6方法(原创)
dsp吧
全部回复
仅看楼主
level 11
Linux系统CCSV6和XDS100V3仿真器下安装使用
2015年04月13日 12点04分 1
level 11
首先说下我的系统:
系统: Ubuntu14.04.1 (AMD64bit)
目标板:三兄弟嵌入式F28335旗舰板
仿真器:三兄弟嵌入式XDS100V3仿真器
CCS版本:CCS v6 linux版 32bit
Linux系统必须库:!!!!!!很重要!!!!!!!!!!
1. ia32-libs
2. build-essential
如果你的Linux系统是64位,CCS软件是32位,你必须要安装ia32-libs库文件,才能安装,否则启动软件是没有反应的。安装命令:
sudo apt-get install ia32-libs
除此之外,无论32位系统还是64位系统都需要安装build-essential. 安装命令:
sudo apt-get install build-essential
很多人也许在安装ai32-libs库时候,无法找到该软件包。请按照以下步骤配置源,之后再次执行安装ia32-libs的命令!(时间比较漫长,静静等待)
1、首先备份Ubuntu 11.10源列表
sudo cp /etc/apt/sources.list/etc/apt/sources.list.backup (备份下当前的源列表)
2、修改更新源
sudo gedit /etc/apt/sources.list
#台湾源
deb http://tw.archive.ubuntu.com/ubuntu/precise main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/precise main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/precise-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/precise-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/precise-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/precise-updates universe main multiverse restricted
#网易源(速度很快)
deb http://mirrors.163.com/ubuntu/ precise mainuniverse restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precisemain universe restricted multiverse
deb http://mirrors.163.com/ubuntu/precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/precise-updates universe main multiverse restricted
#电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ precisemain restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/precise main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/precise-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/precise-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/precise-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/precise-updates main restricted universe multiverse
#北京理工大学(真羡慕刘毅同学)
deb http://mirror.bjtu.edu.cn/ubuntu/ precisemain multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise-updates main multiverse restricted universe
3、保存后就是
sudo apt-get update
sudo apt-get upgrade
2015年04月13日 12点04分 2
level 11
1. 检测USB仿真器驱动
在ubuntu的终端输入: sudolsusb 回车!会出现类似于下面的列表,注意红色画圈部分,就是仿真器的USB设备名称,如果没有 FutureTechnology Devices重新插入或者换个接口。
2015年04月13日 12点04分 3
level 11
1. 准备CCSv6的安装包
a) CCSV6安装包下载:
请去DSP贴吧,置顶帖子(资源分享)->软件资源 ->下载CCS V6的linux版本。
我的安装包更名为ccs.tar.gz,放置在主文件夹/home/dell文件夹中。
2015年04月13日 12点04分 4
level 11
a) 利用解压命令解压
输入: tar –xvzf /home/dell/ccs.tar.gz回车
在本目录会出现解压后的文件夹,我也把文件夹更名为ccs.
b) 安装
用cd命令将终端路径切换至解压后的文件夹,我的是ccs,输入下面的命令:
sudo cd /home/dell/ccs
sudo ./ccs_setup_6.0.1.00040.bin
第一条命令是切换文件夹,第二条是执行.bin安装文件。注:务必是sudo 超级权限,否则安装不成功
也可以按照图片的方式 sudo –i切换为管理员模式!
安装过程,务必不能关闭终端!
2015年04月13日 12点04分 5
level 11
a) 弹出下面的格式,点击YES
2015年04月13日 12点04分 6
level 11
2015年04月13日 12点04分 7
level 11
a) 选择安装的编译器,这里我只用到了C2000系列,为了节约空间我只选择C2000的编译器,如果大家的linux的空间比较富余,开发其他的TI产品,可以根据自己的情况选择。点击next。!
2015年04月13日 12点04分 8
level 11
a) 仿真器画红圈的XDS100必须选择上!!否则仿真器无法用!!
2015年04月13日 12点04分 9
level 11
a) APP CENTER,大家可以选择上,安装一些插件,或者其他的代码教程之类的。我就不安装了。
点击Finish!这个必须强调一下,点击Finish,很多人在安装windows版的时候跟我说,安装不了 next是灰色的,这里点击Finish!!!!!!!
2015年04月13日 12点04分 10
level 11
2015年04月13日 12点04分 11
level 11
a) 安装完成,点击Finish
2015年04月13日 12点04分 12
level 11
1. 进入CCSv6
安装完之后不会在桌面给你自动创建快捷方式,你需要自己找。如图进入路径!
2015年04月13日 12点04分 13
level 11
2015年04月13日 12点04分 14
level 11
双击ccstudio之后就进入了,下面的界面,如果点击没反应,请用sudo chmod 777 ccstudio命令,给予权限!
2015年04月13日 12点04分 15
level 11
2015年04月13日 12点04分 16
level 11
1. 编码问题
第一个问题:由于Linux系统默认是UTF-8的编码,从Windows上开发的程序打开后,中文部分乱码,比如:
2015年04月13日 12点04分 17
level 11
如何解决:
点击菜单栏Winodws - > Preferences进入:
如下图,在左侧栏 左上角处 画红圈的位置 点击Resource! 右侧画红线位置,手动输入GBK,下拉是没有这个选项的,一定要手动输入!
第二个位置点选Windows。
点击OK。
2015年04月13日 12点04分 18
level 11
现在调回到Edit区域。
2015年04月13日 12点04分 19
level 11
显示已经正常,中文显示出来了!
一定要注意,在Linux上开发的程序,到Windows上也是会乱码的,所以为了兼容Windows的编码,我们创建工程,也要将编码改为GBK。
2015年04月13日 12点04分 20
1 2 尾页