Unknown Processor(18f45k22)


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2014
    Posts
    2

    Unhappy Unknown Processor(18f45k22)

    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

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: help me

    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
    Last edited by Demon; - 15th August 2014 at 00:33.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637


    Did you find this post helpful? Yes | No

    Default Re: help me

    Hmm, did you modify the 18f45k22.inc file? If so, can you post that file here with the changes?
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Aug 2014
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Unknown Processor(18f45k22)

    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
    Name:  Capture.PNG
Views: 386
Size:  52.1 KB


    Hope you can give feedback as soon as possible

Similar Threads

  1. Replies: 8
    Last Post: - 27th June 2013, 04:13
  2. Replies: 3
    Last Post: - 6th November 2011, 19:33
  3. Pickit2 message unknown
    By vicce67 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th June 2011, 13:07
  4. 18F452 "Unknown Processor" errors
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th April 2006, 03:56
  5. Replies: 4
    Last Post: - 7th September 2005, 14:11

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts