LockedHot!Which library to use for legacy project?

Author
luker
Senior Member
  • Total Posts : 157
  • Reward points : 0
  • Joined: 2015/04/17 06:24:04
  • Location: 0
  • Status: offline
2017/12/07 02:24:52 (permalink)
0

Which library to use for legacy project?

Hi forum,
 
a legacy project, in desperate need to be maintained, crept up on me to have one of its features expanded. I tried to load it in MPLab8 but the mcw file was missing. So I had to dig it up from the original developer's machine, which we keep around for exactly those situations. Project did compile on the original dev machine, but not on mine.
Since I'll have to do something about this anyway, I'm going to port the project over to MPLabX.
 
It doesn't compile. Some header files are missing. They belong to Peripheral Libraries or Microchip Libraries for Applications, I can't distinguish one from the other. I have an older installation of XC32v1.33 which has four copies of the header files that are mentiones in code:
xc32/v1.33/pic32-libs/include/peripheral/*.h
xc32/v1.33/pic32-libs/include/lega-c/peripheral/*.h
xc32/v1.33/pic32mx/include/peripheral/*.h
xc32/v1.33/pic32mx/include/lega-c/peripheral/*.h
 
The header files seem to export functions from a precompiled library file. From the name of this project's processor, only two seem possible:
xc32/v1.33/pic32mx/lib/libmchp_peripheral_32MX795F512L.a
or
xc32/v1.33/pic32mx/lib/libmchp_peripheral_32MX795F512H.a
 
How do I know which combination of header file and library does work here?
Can I get that information from the MPLab8 project somehow?
#1

5 Replies Related Threads

    qɥb
    Monolothic Member
    • Total Posts : 3277
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: online
    Re: Which library to use for legacy project? 2017/12/07 02:58:42 (permalink)
    0
    luker
    ...
    I tried to load it in MPLab8 but the mcw file was missing.

    The MCW file just contains the desktop layout. You don't need it to do a build.
    The project structure is in the MCP file.
     

    Project did compile on the original dev machine, but not on mine.

    If this is a one off, why not just do it on the original machine?
    It shouldn't be that hard to get it runing on your PC, by making sure you have the same verison of the compiler and IDE installed. They are all available on the Microchiup archive.
     
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #2
    luker
    Senior Member
    • Total Posts : 157
    • Reward points : 0
    • Joined: 2015/04/17 06:24:04
    • Location: 0
    • Status: offline
    Re: Which library to use for legacy project? 2017/12/07 03:25:42 (permalink)
    0
    It may be a one-off for this project this time. But the original machine is remarkably slow to work on. And things like that will most likely happen again. At least they did in the past. Therefore I would rather learn how to build those old projects on any machine instead of having to chase my colleague off its workplace to use the rusty old computer connected to his monitor and keyboard yet another time.
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 16123
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Which library to use for legacy project? 2017/12/07 08:15:25 (permalink)
    0
    Start with the same compiler version the old machine has. The peripherial libraries are a seperate installation if they are not included in your compiler. You would need to download them seperatly.
    #4
    luker
    Senior Member
    • Total Posts : 157
    • Reward points : 0
    • Joined: 2015/04/17 06:24:04
    • Location: 0
    • Status: offline
    Re: Which library to use for legacy project? 2017/12/07 08:18:30 (permalink)
    0
    And since they are in a subdirectory of that older compiler, they will be found at compile time without me adding any path anywhere?
     
    #5
    qɥb
    Monolothic Member
    • Total Posts : 3277
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: online
    Re: Which library to use for legacy project? 2017/12/07 15:03:43 (permalink)
    0
    Yes.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #6
    Jump to:
    © 2018 APG vNext Commercial Version 4.5