PDA

View Full Version : Unknown Processor(18f45k22)



Azreel420
- 14th August 2014, 18:54
i just buy a PIC18f45k22 using a microcode@PBP programmer to load my hex to my pic. But im having a problem with my compiler with is a MPASM . Here is the erro generated by the compiler as i drag and drop the alter.asm file










Error[132] c:\pbp\18f45k22.inc 18 : Unknown Processor(18f45k22)
messange[301] c:\progra~1\microc~1\mpasm~1\p18f45k22.inc 33 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Error[131] c:\pbp\18f45k22.inc 20: processor type is undefined
Error[131] c:\pbp\18f45k22.inc 21: processor type is undefined
Error[131] c:\pbp\18f45k22.inc 22: processor type is undefined
Warning[207] c:\pbp\pbppic18.lib 1237 : Found label column 1.(goto)
Error[122] c:\pbp\pbppic18.lib 1237 : Illigal opcode (INIT)
Error[122] c:\pbp\pbppic18.lib 3906 : Illigal opcode (movff)
Warning[207] c:\pbp\pbppic18.lib 3907 : Found label after column 1.(movf)
Error[122] c:\pbp\pbppic18.lib 3907 : Illigal opcode (RR1)
Warning[207] c:\pbp\pbppic18.lib 3908 : Found label after column 1.(addlw)
Error[122] c:\pbp\pbppic18.lib 3908 : Illigal character (1)
Warning[207] c:\pbp\pbppic18.lib 3909 : Found label after column 1.(movwf)
Error[122] c:\pbp\pbppic18.lib 3909 : Illigal opcode (FSR0L)
Warning[207] c:\pbp\pbppic18.lib 3910 : Found label after column 1.(comf)
Error[122] c:\pbp\pbppic18.lib 3910 : Illigal opcode (RM1)
Warning[207] c:\pbp\pbppic18.lib 3911 : Found label after column 1.(andwf)
Error[122] c:\pbp\pbppic18.lib 3911 : Illigal opcode (INDF0)
Warning[207] c:\pbp\pbppic18.lib 3912 : Found label after column 1.(decf)
Error[122] c:\pbp\pbppic18.lib 3912 : Illigal opcode (R0)
too many errors

Can anybody help me in solving the header file problem...thx

Demon
- 15th August 2014, 00:29
Does your version of PIC BASIC support the 18f45k22?

It might help to know what version of PBP and MPASM. Your entire code couldn't hurt either.


Error[122] c:\pbp\pbppic18.lib 1237 : Illigal opcode (INIT)
Do they really have a spelling error on illegal?

Robert

rsocor01
- 15th August 2014, 03:29
Hmm, did you modify the 18f45k22.inc file? If so, can you post that file here with the changes?

Azreel420
- 15th August 2014, 13:47
im using PIC PRO BASIC version 2.60 and MPASM version 8.15.
this my 18f45k22.inc file


;************************************************* ***************
;* 18F45K22.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2010 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 05/11/10 *
;* Version : 2.60a *
;* Notes : *
;************************************************* ***************
NOLIST
ifdef PM_USED
LIST
"Error: PM does not support this device. Use MPASM."
NOLIST
else
LIST
LIST p = 18F45K22, r = dec, w = -311, w = -230, f = inhx32
INCLUDE "P18F45K22.INC" ; MPASM Header
__CONFIG _CONFIG1H, _FOSC_INTIO67_1H
__CONFIG _CONFIG3H, _PBADEN_OFF_3H
__CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
NOLIST
endif
LIST
EEPROM_START EQU 0F00000h
BLOCK_SIZE EQU 64




And this the error i got after compile the code
7414


Hope you can give feedback as soon as possible :D