打印

编译问题

[复制链接]
366|8
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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.

使用特权

评论回复
5
houcs|  楼主 | 2018-1-27 14:58 | 只看该作者

进行 Generate build了,但还是有一个警告

使用特权

评论回复
6
chenjunt| | 2018-1-27 15:01 | 只看该作者

什么警告?

使用特权

评论回复
7
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

使用特权

评论回复
8
zyf部长| | 2018-1-27 15:08 | 只看该作者
void main() 改成  void main(void)

使用特权

评论回复
9
houcs|  楼主 | 2018-1-27 15:14 | 只看该作者
搞定了,呵呵,犯了低级错误……结贴啦,多谢各位

使用特权

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

本版积分规则

743

主题

8382

帖子

5

粉丝