• AVR Freaks

Hot!Creating XC8 new library in MPLAB X IDE v5.35

Author
sak414575@gmail.com
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2020/08/19 06:55:32
  • Location: 0
  • Status: offline
2020/09/05 06:44:11 (permalink)
0

Creating XC8 new library in MPLAB X IDE v5.35

Hello everyone. Its my first post on this forum, hope goes well.
I want to know how can I create my own library of functions in MPLAB X IDE v5.35 using xc8 compiler??
I tried the methods given on Microchip Website but they seem to be using older version of MPLab IDE. Command Line method given in XC8 datasheet seems tedious and I cant't work that out. Please some one help me if you know the solution.

Attached Image(s)

#1

6 Replies Related Threads

    upand_at_them
    Super Member
    • Total Posts : 765
    • Reward points : 0
    • Joined: 2005/05/16 07:02:38
    • Location: Pennsylvania
    • Status: offline
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/08 16:47:12 (permalink)
    +1 (1)
    Late approval bump.
    #2
    sak414575@gmail.com
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2020/08/19 06:55:32
    • Location: 0
    • Status: offline
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/12 21:33:14 (permalink)
    0
    what does that mean??
    anyone got the solution?? please share
    #3
    ric
    Super Member
    • Total Posts : 29516
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/12 21:52:02 (permalink)
    +2 (2)
    Your post took several days to get approval from the moderator, so upand_at_em added a post to bump your topic up to the top of the list.
    After many years of using XC8, I've never felt the need to try to make my own library file.
    It's far easier to just include common source code files into each project as needed.
    I would imagine it's fairly hard to make a good general purpose library function that will work on all 8 bit parts.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 12032
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/12 23:16:58 (permalink)
    +3 (3)
    I agree with ric; it's pretty much pointless to do a library for PIC development.  This is especially true with XC8 since it doesn't compile source files into object files, so there's no real compilation speed improvement with a library.
    #5
    sak414575@gmail.com
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2020/08/19 06:55:32
    • Location: 0
    • Status: offline
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/16 05:42:59 (permalink)
    +1 (1)
    Thank you all for your positive feedback.
    Can someone explain how to recompile C18 XLCD library. By default, this library uses PORTB for communication to LCD. If one wants to change port, say PORTD, he needs to recompile the XLCD library, as given in instructions of C18 guide. However all previous post regarding recompiling libraries are not working.
    I am using pic18f4520.
    thanks if anyone can help me out.
    found an old post regarding the issue but can't find the makeplib.bat file:
    https://www.microchip.com/forums/m90111.aspx
    #6
    ric
    Super Member
    • Total Posts : 29516
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Creating XC8 new library in MPLAB X IDE v5.35 2020/09/16 05:50:42 (permalink)
    +2 (2)
    You won't find makeplib.bat as the PLIB libaries have not been included with XC8 for several years now, and were only compatible with XC8 v1.x, not 2.x.
     
    If you have the old code, it's just C source. You can edit the code to use any port you want.
    There's several examples of people driving character LCDs from XC8 here:
    http://picforum.ric323.com/viewforum.php?f=40
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #7
    Jump to:
    © 2021 APG vNext Commercial Version 4.5