Ever had one of those days....


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Ever had one of those days....

    Keep getting compiler error messages and I have no idea why.
    Even with this.......

    define OSC 10
    ADCON1 = 7
    TRISA = %11000000
    TRISB = %00000000


    loop:
    PORTB.2=0
    pause 1000
    PORTB.2=1
    pause 1000
    PORTB.2=0
    pause 1000
    PORTB.2=1
    pause 1000
    goto loop

    end



    I get "Error[113] d:\program~1\pbp\18f1320.inc 24:Symbol not previously defined (_DEBUG_OFF_4L)"

    Any idea as to what is going on?

  2. #2
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    I presume you are using a 18F1320 as your chosen device.

    Also are you setting your own fuses at the beginning of your code. If you are, you need to disable to predefined and default ones in the .INC file.

    Regards,

    Steve

  3. #3
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default

    I am using the 18f1320. Im setting fuses via the epic programmer just as im about to upload the program to the pic. This error occurs and sometimes i dont even get to epic.

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    The datasheet does not show a 10MZ internal clock.

    Make sure you have your programmer assigned to external clock, not internal.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  5. #5
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default

    Im using a 10mhz external ceramic resonator, using the HS fuse.

    Im using version 2.43, there was some kind of fix on the latest versions for the configuration of the 18f1320. Could this be the problem?



    UPDATE:

    Tried the same simple program on a 16f818 and it works as expected. Must be the 18f1320 config error.
    Last edited by jmgelba; - 18th April 2005 at 18:42.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    This is probably caused by a label that PBP is using to set configuration bits. PBP expects "_DEBUG_OFF_4L" to be defined in the MPASMWIN header file for the part. For whatever reason (probably related to MPASMWIN version), the label is not defined.

    You can probably fix it by upgrading to the latest version of MPASMWIN.

    You can also edit the PBP file 18F1320.INC. The debug bit defaults to off, so there's no reason for PBP to specify it. Comment the offensive label at the end of the line:

    __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L ;& _DEBUG_OFF_4L

Similar Threads

  1. Best IDE / Compiler to use these days ???
    By gtvmarty in forum General
    Replies: 3
    Last Post: - 4th July 2008, 13:31
  2. Two PIC 16F877A fried in two days!
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th January 2007, 10:38
  3. Replies: 5
    Last Post: - 20th August 2006, 23:09
  4. Timer Of 40 Days 12f675 Or 16f628
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 21st August 2005, 00:11
  5. How to learn PIC BASIC compiler in 7 days?
    By luqman83salleh in forum General
    Replies: 2
    Last Post: - 13th August 2004, 14:15

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