错误没有规则来制作目标PIC24汇编程序

时间:2017-04-14 05:48:55

标签: assembly makefile pic mplab pic24

我正在尝试制作一个简单的程序,在汇编程序中使用pic24fv32ka301打开LED,但我无法使其工作,当尝试使用de ASM30编译器在MPLAB中进行编译时,它会抛出以下错误:

 nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed
 make[1]: Leaving directory 'C:/Users/jafet/MPLABXProjects/prueba1.X'
 nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
 make[2]: *** No rule to make target 'build/default/production/main.o', 
 needed by 'dist/default/production/prueba1.X.production.hex'.  Stop.
 make[1]: *** [.build-conf] Error 2 
 make: *** [.build-impl] Error 2

代码如下

    .equ __24FV32KA301
.include "p24FV32KA301.inc"

 ; config __FBS 0xF ; 
 config __FBS, OFF & OFF
 ; config __FGS 0x3 ; 
 config __FGS, OFF & OFF
 ; config __FOSCSEL 0xE7 ; 
 config __FOSCSEL, FRCDIV & ANA & HP & ON
 ; config __FOSC 0xFF ; 
 config __FOSC, NONE & ON & HS & SOSCHP & CSDCMD
 ; config __FWDT 0xFF ; 
 config __FWDT, PS32768 & PR128 & ON & OFF
 ; config __FPOR 0xFF ; 
 config __FPOR, BOR3 & OFF & ON & PRI & V20 & ON
 ; config __FICD 0x83 ; 
 config __FICD, PGx1
 ; config __FDS 0xDF ; 
 config __FDS, DSWDTPSF & LPRC & ON & ON

.text 
__reset:

MOV #__SP_init, WREG15
MOV #__SPLIM_init, WREG0    
MOV WREG0,SPLIM 
NOP

MOV 0X70,OSCCON 
MOV 0x00,WREG0
MOV WREG0, TRISA
MOV 0xFF,WREG0
MOV WREG0,TRISB

LOOP:
MOV PORTB,WREG0
MOV WREG0,PORTA
GOTO LOOP

DONE: 
.END

提前致谢

0 个答案:

没有答案
相关问题