我按照slau157s.pdf《Code Composer Studio™ v4.2 User's Guide for MSP430™ User's Guide》的指导,
1.2 Flashing the LED
This section demonstrates on the FET the equivalent of the C-language "Hello world!" introductory
program. CCSv4.2 includes C and ASM code files as well as fully pre-configured projects. The following
describes how an application that flashes the LED is developed, downloaded to the FET, and run.
1. Start Code Composer Studio Start → All Programs → Texas Instruments → Code Composer Studio
v4.2.4 → Code Composer Studio v4.
2. Create a new Project by selecting File → New → CCS Project.
3. Enter a project name and click next
4. Set Project Type to MSP430
5. Click next twice to get to the CCS Project Settings page. Select the Device Variant used in the project.
6. Add the flashing LED code example to the project by clicking Project → Add Files to Active Project.
Code examples are located in <Installation Root>\ccs4\msp430\examples. Use Table 1-2 to select the
appropriate source code file:
7. If using a USB Flash Emulation Tool such as the MSP-FET430UIF or the eZ430 Development Tool,
they should be already configured by default. The debug interface may be changed by opening the
*.ccxml file in the project. The pull-down menu contains TI MSP430 USBx and TI MSP430 LPTx (in
case support for the MSP430 Parallel Port Tools was selected during the installation) connections.
Select "save file" from the drop down menu or click the “save” icon to ensure configuration changesare correctly saved.
8. To compile the code and download the application to the target device, go to Target → Debug Active
Project.
9. The application may be started by selecting Target → Run (F8) or clicking the Play button on the
toolbar.
See FAQ Debugging #1 if the CCS debugger is unable to communicate with the device.
Congratulations, you have just built and tested an MSP430 application!
Predefined projects, which are located in <Installation Root>\msp430\examples\example projects, can be
imported by selecting Project → Import Existing CCS/CCE Eclipse Project.
.
到第6步,我使用的是hello world,到第8步go to Target → Debug Active Project.出现如图错误信息。
user242210:
一次不能贴两张图?
Young Hu:
编译链接过程中出问题了,你的C文件都添加到工程中没?把CCS左边的C/C++ projects截个图传上来看看。
user242210:
回复 Young Hu:
谢谢啦,不过不是这个错误吧
Young Hu:
回复 user242210:
不是我上面说的问题。没有生成.out文件。Project->Build Active Project再试试呢?
其实CCS4的使用很简单,把所需的文件添加到工程中,编译链接,下载,调试,就这么简单。。
user242210:
回复 Young Hu:
没搞定,算啦,还是老老实实用IAR吧。
Fuchong Wang:
回复 user242210:
楼主的这个第二张图片的问题,我经常遇到,到一个其它的论坛询问,没有结果。
我的是Debug的时候出现的更多,就是这个gmake错误,然后CCS就死了,cpu占用率接近100%,提示在后台处理之类的,等待很长时间也不完成,这种情况又要继续调试,只好手动在任务管理器认为终止gmake这个进程,然后重新编译或者Debug,同样的源代码,没有任何改动,却没有错误提示通过了运行了
看来不是我一个人遇到这个问题,不一定是我个人的操作系统原因引起的, 希望论坛重视这个问题,没遇到过可以向上反映,给我们一个交代。即使是软件bug,也不能让我们这样不明不白只好放弃使用吧?这样对公司的形象是不是也不好?
David Liu1:
回复 Fuchong Wang:
@Xu
我一直在使用CCSv4 + MSP430 CGT 工具链。从你的情况看,可能是文件路径的问题。这和你的建立工程、导入工程的方法有关系。
我发现你的workspace是和工程是在同一个目录下的,是不是建立工程的时候选择了,copy projects into workspace ?
如果是的话,应该是这里的问题。我的建议是,你的 workspace文件夹 不要包含 工程文件夹 。 可以在同一文件夹下。
TI中文支持网




