MPLAB X using C18 Compiler in Linux

Author
controlsfreek
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2013/02/10 13:56:57
  • Location: 0
  • Status: offline
2013/02/10 19:29:04 (permalink)
0

MPLAB X using C18 Compiler in Linux

Hi All,
 
I'm relatively new to PIC, but I thought I'd share a minor success. I was trying to get the applib USB demos to compile so I could write some applications to talk to the PIC via USB on my Ubuntu Linux host, and eventually an Android host. The USB stack and examples seem to be all written for the C18 compiler rather than the XC8 compiler.
 
I'd done some googling but had very little luck. One suggestion recommended running MPLAB (not X) in WINE on a Linux host. After running into some challenges there, I decided to run MPLABX natively in Linux, but configure the toolchain to call mcc18.exe via Wine. After some tinkering, it works GREAT. I was able to compile the demos and download to my p18f4550 via PickIt3.
 
Hope this helps someone else in the same boat!
 
#1

2 Replies Related Threads

    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    Re:MPLAB X using C18 Compiler in Linux 2013/02/10 22:55:41 (permalink)
    0
    Somewhere on the uChip site, in the archives, there is a c18 version for Linux (3.40 if I remember right). I've used it to compile the CDC emulator under openSuse.

    Regards,
    Liviu
    #2
    controlsfreek
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2013/02/10 13:56:57
    • Location: 0
    • Status: offline
    Re:MPLAB X using C18 Compiler in Linux 2013/02/11 08:33:14 (permalink)
    +2 (2)
    Hey this is the first I've heard of C18 being available for Linux! Anytime I search for Microchip and C18, I get the MPLAB X page at microchip.com and presenting the XC series compilers for download.... with NO indication that C18 is available for linux. Very frustrating!
     
    The only link I found was just now after reading your post, where someone on the internet had blogged that you could download C18 for linux at:
    http://www.microchip.com/mplabc18-linux-installer I'll have to install and give it a try! Meanwhile, WINE is working with the windows version.
    #3
    Jump to:
    © 2017 APG vNext Commercial Version 4.5