PIC18 Config Problems


Closed Thread
Results 1 to 5 of 5
  1. #1
    eoasap's Avatar
    eoasap Guest

    Default PIC18 Config Problems

    using MPLAB 7.30 (MPASM 5.01)
    PICLF8722
    PICF8722.inc in picbasic folder has the config bits commented out

    when i try to use the old method to declare configuration bits (code below) i get the following:
    __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

    (CODE: OLD METHOD)
    asm
    __CONFIG _CONFIG1H, _OSC_HS_1H
    endasm


    When i try the new method (shown below) i get about 500+ errors messages stating errors such as:
    -Destination address must be word aligned
    -Address exceeds maximum range for this processor.
    -Address label duplicated or different in second pass (_MAIN2)
    -Address exceeds maximum range for this processor.

    (Code: NEW METHOD)
    asm
    CONFIG OSC = HS
    endasm

    it seems as if no matter which method i use i get errors! i've read the FAQ on fuses several times and tried just about everything there. http://www.picbasic.co.uk/forum/showthread.php?t=543

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    and when you comment the config fuse line every error messages disapear?

    If so, did you also tried to move your config fuses to the .INC file?

    If the problem is still there, can you attach your code here (or send me a PM) to see what can we do for you?

    As i heard, this will be fix in the next PBP version. In the meantime i create new .INC file and New device in MCS(with brief project name name). This works as it's suppose to.
    Last edited by mister_e; - 30th December 2005 at 16:24.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    if i move

    config osc = hs

    to the *.inc file in pbp (as you suggested), instead of getting 500+ errors i get no errors and seems to work. So that apparently works

    thanks again Steve!

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Good news!

    Well it's seems to be the way to go before the next PBP release/upgrade.

    Good luck!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by eoasap
    using MPLAB 7.30 (MPASM 5.01)
    PICLF8722
    PICF8722.inc in picbasic folder has the config bits commented out

    when i try to use the old method to declare configuration bits (code below) i get the following:
    __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

    http://www.picbasic.co.uk/forum/showthread.php?t=543
    The above message is a warning, not an error. I get it all the time, but it doesn't affect compilation.

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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