Haberler:

Foruma Resim Yükleme ve Boyut Sınırlaması ( ! )  https://bit.ly/2GMFb8H

Ana Menü

Mplab X IDE compiler sorunu

Başlatan electron, 14 Ekim 2016, 15:59:24

electron

Merhaba arkadaşlar MPLAB 'da assembly dili ile yazdığım basit bir programı derleyemiyorum. Hatanın ne olduğunu da anlayamadım.
yazdığım program ve hata mesajı aşağıdadır.


list  p=16F84   
include <p16F84.inc>
   
clrf   PORTB
bsf    status,5
clrf   trisb
bcf    status,5
bsf    portb,1
   
end




make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/X/MPLABXProjects/�lk program.X'
make  -f nbproject/Makefile-default.mk dist/default/production/_lk_program.X.production.hex
make[2]: Entering directory 'C:/Users/X/MPLABXProjects/�lk program.X'
"C:\Program Files (x86)\Microchip\MPLABX\v3.40\mpasmx\mpasmx.exe" -q -p16f84 -l"build/default/production/newAsmTemplate.lst" -e"build/default/production/newAsmTemplate.err" -o"build/default/production/newAsmTemplate.o" "newAsmTemplate.asm"
make[2]: *** [build/default/production/newAsmTemplate.o] Error 1
Warning[205] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 1 : Found directive in column 1. (list)
Warning[205] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 2 : Found directive in column 1. (include)
Warning[203] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 4 : Found opcode in column 1. (clrf)
make[1]: *** [.build-conf] Error 2
Error[152]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 4 : Executable code and data must be defined in an appropriate section
Warning[203] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 5 : Found opcode in column 1. (bsf)
Error[113]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 5 : Symbol not previously defined (status)
Error[152]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 5 : Executable code and data must be defined in an appropriate section
Warning[203] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 6 : Found opcode in column 1. (clrf)
Error[113]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 6 : Symbol not previously defined (trisb)
make: *** [.build-impl] Error 2
Error[152]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 6 : Executable code and data must be defined in an appropriate section
Warning[203] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 7 : Found opcode in column 1. (bcf)
Error[113]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 7 : Symbol not previously defined (status)
Error[152]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 7 : Executable code and data must be defined in an appropriate section
Warning[203] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 8 : Found opcode in column 1. (bsf)
Error[113]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 8 : Symbol not previously defined (portb)
Error[152]   C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 8 : Executable code and data must be defined in an appropriate section
Warning[205] C:\USERS\X\MPLABXPROJECTS\�LK PROGRAM.X\NEWASMTEMPLATE.ASM 10 : Found directive in column 1. (end)
nbproject/Makefile-default.mk:101: recipe for target 'build/default/production/newAsmTemplate.o' failed
make[2]: Leaving directory 'C:/Users/X/MPLABXProjects/�lk program.X'
nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/X/MPLABXProjects/�lk program.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 1s)

mehmet

Olan olmuştur,
olacak olan da olmuştur.
Olacak bir şey yoktur.
---------------------------------------------
http://www.mehmetbilgi.net.tr

eeburakdemir

Org yazip adres belirtirmisiniz.
Asla pes etme...

baran123

Config yapmassan hata verir.
Bir de ORG 0 olarak belirt ki program Reset Vectoründen başlasın.
#include "p16F84.inc"

; CONFIG
; __config 0xC001
 __CONFIG _FOSC_XT & _WDTE_OFF & _PWRTE_ON & _CP_ON

org 0

BSF    STATUS, 5
CLRF   TRISA
CLRF   TRISB
    
BCF    STATUS, 5
CLRF   PORTA
CLRF   PORTB
    
BSF    PORTB, 1 
 
 LOOP:
    GOTO LOOP
    
end

electron

Baran Hocamın dediği gibi config yapmadığım için hata veriyormuş. Teşekkürler :)