Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Asm file compile through mplab

Status
Not open for further replies.

sribangaram

Full Member level 5
Full Member level 5
Joined
Apr 29, 2012
Messages
297
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Location
INDIA.:/;:'" VIJAYAWADA
Visit site
Activity points
3,754
Dear Friend I am new to compelling I want to compile ASM file I have to fallow the Instruction's but I am getting the Error's and Build failed
I didn't understand ware I am mistake Please cooperate me for compile :|:sad:

- - - Updated - - -

Dear Friend I am getting this Error's Please tell me ware I am mistake
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Documents and Settings/MADHU/Desktop/TX/TX/TX.X'
make -f nbproject/Makefile-default.mk dist/default/production/TX.X.production.hex
make[2]: Entering directory `C:/Documents and Settings/MADHU/Desktop/TX/TX/TX.X'
"C:\Program Files\Microchip\MPLABX\mpasmx\mpasmx.exe" -q -p16f628 -l"build/default/production/_ext/1472/enc-044.lst" -e"build/default/production/_ext/1472/enc-044.err" -o"build/default/production/_ext/1472/enc-044.o" "../enc-044.asm"
Message[302] ..\ENC-044.ASM 61 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] ..\ENC-044.ASM 63 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] ..\ENC-044.ASM 65 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] ..\ENC-044.ASM 67 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[224] ..\ENC-044.ASM 86 : Use of this instruction is not recommended.
Warning[224] ..\ENC-044.ASM 93 : Use of this instruction is not recommended.
Warning[224] ..\ENC-044.ASM 103 : Use of this instruction is not recommended.
Warning[224] ..\ENC-044.ASM 127 : Use of this instruction is not recommended.
"C:\Program Files\Microchip\MPLABX\mpasmx\mplink.exe" "..\16f628.lkr" -p16f628 -w -z__MPLAB_BUILD=1 -odist/default/production/TX.X.production.cof build/default/production/_ext/1472/enc-044.o
MPLINK 4.46, Linker
Device Database Version 1.11
Copyright (c) 1998-2011 Microchip Technology Inc.
make[2]: *** [dist/default/production/TX.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Error - could not find definition of symbol 'mtx_buffer' in file './build/default/production/_ext/1472/enc-044.o'.
Errors : 1

make[2]: Leaving directory `C:/Documents and Settings/MADHU/Desktop/TX/TX/TX.X'
make[1]: Leaving directory `C:/Documents and Settings/MADHU/Desktop/TX/TX/TX.X'

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

Attachments

  • TX.rar
    14.4 KB · Views: 123
  • RX.rar
    36.9 KB · Views: 108

Here is ok!!!

MPLAB IDE v8.89!!!

Only i put "ERRORLEVEL -302" to not show the Bank0 message.
 

Attachments

  • PIC16F628 4-8 Channels.rar
    55.2 KB · Views: 117

I will say you didnt add mtxv4.asm file into project files.



You can see video in attacment, I made it for you to show You, this as step by step.


For PIC16F628A must do small change in include for adequate device file.


In file enc-044.asm

Code:
#include <p16F628.inc>

to

Code:
#include <p16F628A.inc>



also in mtxv4.asm

Code:
#include <p16F628.inc>

to

Code:
#include <p16F628A.inc>


Project device in MPLAB should also be changed to PIC16F628A.

:wink:
 

Attachments

  • Video for MPLAB IDE - MPASM - RF TX for PIC16F628.zip
    3.6 MB · Views: 173
Last edited:

Yes my Friend I have compile
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/project/RX/RX.X'
make -f nbproject/Makefile-default.mk dist/default/production/RX.X.production.hex
make[2]: Entering directory `C:/project/RX/RX.X'
"C:\Program Files\Microchip\MPLABX\mpasmx\mpasmx.exe" -q -p16f628a -l"build/default/production/_ext/1472/dec-043.lst" -e"build/default/production/_ext/1472/dec-043.err" -o"build/default/production/_ext/1472/dec-043.o" "../dec-043.asm"
Message[301] C:\PROGRAM FILES\MICROCHIP\MPLABX\MPASMX\P16F628.INC 33 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Message[302] ..\DEC-043.ASM 107 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] ..\DEC-043.ASM 110 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] ..\DEC-043.ASM 115 : Register in operand not in bank 0. Ensure that bank bits are correct.
"C:\Program Files\Microchip\MPLABX\mpasmx\mpasmx.exe" -q -p16f628a -l"build/default/production/_ext/1472/mrxv4.lst" -e"build/default/production/_ext/1472/mrxv4.err" -o"build/default/production/_ext/1472/mrxv4.o" "../mrxv4.asm"
Message[301] C:\PROGRAM FILES\MICROCHIP\MPLABX\MPASMX\P16F628.INC 33 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
"C:\Program Files\Microchip\MPLABX\mpasmx\mplink.exe" -p16f628a -w -z__MPLAB_BUILD=1 -odist/default/production/RX.X.production.cof build/default/production/_ext/1472/dec-043.o build/default/production/_ext/1472/mrxv4.o
MPLINK 4.46, Linker
Device Database Version 1.11
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0

MP2HEX 4.46, COFF to HEX File Converter
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0

make[2]: Leaving directory `C:/project/RX/RX.X'
make[1]: Leaving directory `C:/project/RX/RX.X'

BUILD SUCCESSFUL (total time: 6s)
Loading code from C:/project/RX/RX.X/dist/default/production/RX.X.production.hex...
Loading symbols from C:/project/RX/RX.X/dist/default/production/RX.X.production.cof...
Loading completed

Heartily thanks to your cooperation
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top