编译问题

[复制链接]
 楼主| pengf 发表于 2018-9-3 16:44 | 显示全部楼层 |阅读模式

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
kangzj 发表于 2018-9-3 16:48 | 显示全部楼层

这个不知道,帮顶。
可以把工程发上来吗,或者去建个 case
chuxh 发表于 2018-9-3 16:51 | 显示全部楼层
//----------------------------------------------------------------------------
// 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
}
stly 发表于 2018-9-3 16:56 | 显示全部楼层
你这个没有问题的,是你没有进行 Generate build.
 楼主| pengf 发表于 2018-9-3 17:00 | 显示全部楼层
谢谢,进行 Generate build了,但还是有一个警告,
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
llljh 发表于 2018-9-3 17:04 | 显示全部楼层
void main() 改成  void main(void)
 楼主| pengf 发表于 2018-9-3 17:06 | 显示全部楼层
哦,那我就知道怎么回事了,多谢大家,结贴了哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则

718

主题

10129

帖子

3

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