Problems compiling ecn28J60 register names


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94

    Default Problems compiling ecn28J60 register names

    I am working on a program to run a enc28J60. I am using a 18F4550 and PBP 2.60b. If I declair constants using the 28J60 register names I get Syntax errors. If I prefix the register name it compiles,

    as example, This works

    Code:
    enECON2 con  $1E
    enECON1 con  $1F
    '---- Bank 0 registers
    eERDPTL           con    $00|$00
    eERDPTH           con    $01|$00
    eEWRPTL           con    $02|$00
    eEWRPTH           con    $03| $00
    This does not work using the real register names

    Code:
    ECON2 con  $1E
    ECON1 con  $1F
    '---- Bank 0 registers
    ERDPTL           con    $00|$00
    ERDPTH           con    $01|$00
    EWRPTL           con    $02|$00
    EWRPTH           con    $03| $00
    These are not on the reserved word list for PBP.

    Any ideas?

    Thanks

    Dave

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Problems compiling ecn28J60 register names

    Make sure you are compiling for an 18F4550.

    The PIC's with ethernet controllers have the same type of controller built-in to them.
    So the register names are already defined in the PIC18ETH.BAS file.

    But that file is only used with the ethernet enabled PIC's.
    DT

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Problems compiling ecn28J60 register names

    Hmmm, I was compiling with 2.60A

    With 2.60B there is a problem.
    I'm searching .......
    DT

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Problems compiling ecn28J60 register names

    Whoops ...

    Those register names got added to the PIC18EXT.BAS file. (they shouldn't have)

    If you comment the corresponding lines in that file, your program should compile.

    This will be fixed ASAP.
    DT

  5. #5
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94


    Did you find this post helpful? Yes | No

    Default Re: Problems compiling ecn28J60 register names

    Thanks Darrel

    That worked. Will there be a update to correct this?

    Dave

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Problems compiling ecn28J60 register names

    Charles has fixed the problem and the next patch will have the corrected files.
    DT

Members who have read this thread : 0

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