急求教 psoc designer4.4

[复制链接]
 楼主| huigoushang 发表于 2012-1-19 00:37 | 显示全部楼层 |阅读模式
本人单片机学得不怎么样,最近毕设要用psoc单片机,在官网上下了个designer 4.4。写了个相当小的程序:
#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.
}
 楼主| huigoushang 发表于 2012-1-19 00:37 | 显示全部楼层
结果编译后,总是输出这样的结果(看不懂咋回事,这应该是和程序的语法错误没关系的,因为我拿过师兄的程序试过,也是这样)
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)  16:56:42

所以小弟在此急求各位大侠帮助!!先谢谢啦!!!
G21372 发表于 2012-1-19 00:49 | 显示全部楼层
直接下载安装 designer5.0,SP6版本;
浏览器123 发表于 2012-1-19 19:30 | 显示全部楼层
直接装5就行了
Go_PSoC 发表于 2012-1-20 00:08 | 显示全部楼层
提示你编译器License有问题。
另外,你最好用新的版本
wangjinlili 发表于 2012-1-21 00:08 | 显示全部楼层
为啥还用这么旧的版本
您需要登录后才可以回帖 登录 | 注册

本版积分规则

168

主题

1677

帖子

1

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