打印

psoc designer程序求教

[复制链接]
1793|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
waitingf|  楼主 | 2013-2-23 13:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#include <m8c.h>        // part specific constants and macros
#include "PSoCAPI.h"    // PSoC API definitions for all User Modules

void delay(unsigned int x)
{
   while(x--);
}

void main()
{
while(1)
   {
   PRT0DR=0x00;
   delay(5000);
    PRT0DR=0x01;
    }// Insert your main routine code here.
}

结果编译后,总是输出这样的结果(看不懂咋回事,这应该是和程序的语法错误没关系的,因为我拿过师兄的程序试过,也是这样)
Generating source code for Device Configuration...
The source code has been generated successfully
Compiling...
creating project.mk
./main.c

!E D:\psoc\tools\InvalidCompilerLicense.txt(0): ...Operation terminated. Compiler License invalid or not accessible

D:\psoc\tools\make: *** [obj/main.o] Error -1
main.o - 2 error(s) 0 warning(s)
沙发
waitingf|  楼主 | 2013-2-23 13:47 | 只看该作者
求各位帮助

使用特权

评论回复
板凳
someonewho| | 2013-2-23 13:54 | 只看该作者
你用的哪个版本的designer?

使用特权

评论回复
地板
justbybing| | 2013-2-23 13:57 | 只看该作者
直接下载安装 designer5.0

使用特权

评论回复
5
PSoC小子| | 2013-2-24 01:09 | 只看该作者
楼主用的是什么编译器?? HI-TECH?

使用特权

评论回复
6
kuangcheng100| | 2013-2-24 10:02 | 只看该作者
楼主看看你是不是添加了某个模块,但你没有去配置呢。。。最后截图看看咯。。

使用特权

评论回复
7
Go_PSoC| | 2013-2-25 18:15 | 只看该作者
楼主用的什么版本?什么编译器

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

104

主题

1138

帖子

3

粉丝