程序求教

[复制链接]
 楼主| yufe 发表于 2014-4-3 19:38 | 显示全部楼层 |阅读模式
ce, TI, pi, AI, ic
#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)
llia 发表于 2014-4-3 19:40 | 显示全部楼层
用最新版本的designer
wangpe 发表于 2014-4-3 19:41 | 显示全部楼层
楼主用的是什么编译器?? HI-TECH?
langgq 发表于 2014-4-3 19:42 | 显示全部楼层
楼主看看你是不是添加了某个模块,但你没有去配置呢。。。最后截图看看咯。。
 楼主| yufe 发表于 2014-4-3 19:43 | 显示全部楼层
好,我看看
 楼主| yufe 发表于 2014-4-3 19:43 | 显示全部楼层
好,我看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

983

主题

10170

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部