编译问题

[复制链接]
 楼主| houcs 发表于 2018-1-27 14:43 | 显示全部楼层 |阅读模式
creating project.mk
CAUTION there are no library files
CAUTION boot.asm is older than boot.tpl or is missing
编译后出现下面所示:是什么问题,如何更正。
CAUTION you may need to generate source in PSoC Designer
./boot.asm
!E ./boot.asm(0): cannot open './boot.asm' for input
C:\PROGRA~1\Cypress\Common\CYPRES~3\tools\make: *** [obj/boot.o] Error 1

PGA - 2 error(s) 0 warning(s) 11:05:08
liuzaiy 发表于 2018-1-27 14:49 | 显示全部楼层

这个不知道,帮顶。
可以把工程发上来吗,或者去建个 case
 楼主| houcs 发表于 2018-1-27 14:52 | 显示全部楼层

//----------------------------------------------------------------------------
// C main line
//----------------------------------------------------------------------------

#include <m8c.h>        // part specific constants and macros
#include "PSoCAPI.h"    // PSoC API definitions for all User Modules


void main( )
{
PGA_1_Start(PGA_1_MEDPOWER);
     // Turn on PGA power
}
yinxiangh 发表于 2018-1-27 14:56 | 显示全部楼层

没有进行 Generate build.
 楼主| houcs 发表于 2018-1-27 14:58 | 显示全部楼层

进行 Generate build了,但还是有一个警告
chenjunt 发表于 2018-1-27 15:01 | 显示全部楼层

什么警告?
 楼主| houcs 发表于 2018-1-27 15:06 | 显示全部楼层
Starting MAKE...
creating project.mk
lib/pga_1.asm
lib/psocconfig.asm
lib/psocconfigtbl.asm
./boot.asm
./main.c
!W E:\MY\PSoC1\PGA\PGA\main.c(10):[warning] old-style function definition for `main'
Linking..
LMM info: area 'virtual_registers' uses 2 bytes in SRAM page 0
   ROM 2% full. 532 out of 32768 bytes used (does not include absolute areas).
   RAM 1% full. 2 bytes used (does not include stack usage).
idata dump at output/PGA.idata
zyf部长 发表于 2018-1-27 15:08 | 显示全部楼层
void main() 改成  void main(void)
 楼主| houcs 发表于 2018-1-27 15:14 | 显示全部楼层
搞定了,呵呵,犯了低级错误……结贴啦,多谢各位
您需要登录后才可以回帖 登录 | 注册

本版积分规则

743

主题

8382

帖子

5

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