打印

编译问题

[复制链接]
318|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
pengf|  楼主 | 2017-4-16 23:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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| | 2017-4-16 23:12 | 只看该作者
这个不知道,帮顶。
可以把工程发上来吗,或者去建个 case

使用特权

评论回复
板凳
chuxh| | 2017-4-16 23:14 | 只看该作者
//----------------------------------------------------------------------------
// 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| | 2017-4-16 23:16 | 只看该作者

你这个没有问题的,是你没有进行 Generate build.

使用特权

评论回复
5
pengf|  楼主 | 2017-4-16 23:19 | 只看该作者
谢谢,进行 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

使用特权

评论回复
6
llljh| | 2017-4-16 23:22 | 只看该作者

void main() 改成  void main(void)

使用特权

评论回复
7
pengf|  楼主 | 2017-4-16 23:24 | 只看该作者
哦,那我就知道怎么回事了,多谢大家,结贴了哈

使用特权

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

本版积分规则

718

主题

10129

帖子

3

粉丝