![]() |
I want a version of the mplab compiler for Linux.
'nuff said
|
Re: I want a version of the mplab compiler for Linux.
I'm the current maintainer of Linux stuff around here.... You need:
1. WINE 2. MCC18 from Microchip -- it runs under WINE 3. IFI Makefile -- see http://adambots-live.sourceforge.net/ 4. Picloader: http://sf.net/projects/ifi-picloader |
Re: I want a version of the mplab compiler for Linux.
Quote:
I use WINE quite a bit and the software that was sent with the default kit wouldnt run. What is the differance between that and what you indicate? [edit] Where do i get it? [/edit] |
Re: I want a version of the mplab compiler for Linux.
Install MCC18 using WINE, or copy from an existing Windows installation, over to /opt/mcc18. This is the path hardcoded into the makefile. Go to the appropriate Sourceforge project linked above, and download the latest ifi-makefile. You may have to browse CVS, as the latest version is awesome but not tested stable.
|
Re: I want a version of the mplab compiler for Linux.
(Oldish thread warning)
What version(s) of WINE work with the MCC18 compiler? I have 20050725 and get Quote:
The version on the SF Adambots-live site is 2004something, and I'd really rather not go that far back... (Getting IE6 working under the current version was a pain; I can't imagine trying it with something older.) --EDIT-- Oh, yeah, and what purpose do the "Z:"s before some of the paths in the Adambots-live Makefile server? I'm changing it so everything will be under my home directory. Sorry, don't know a bunch about shell scriptiing/makefiles. |
Re: I want a version of the mplab compiler for Linux.
Ok, Three things:
(1) you should link mcc18-traditional to mcc18-traditional.exe using the command [b]ln -sf /opt/mcc18/bin/mcc18-traditional.exe /opt/mcc18/bin/mcc18-traditional. This procedure must be repeated for cpp18 and _mplink. (2) Check out http://adambots.gotdns.com/adambots-...k/configure.py -- Run "python configure.py" to auto-generate a Makefile within a project folder. Re-run after adding or removing files... (3) Get the MCC wrapper scripts: http://adambots.gotdns.com/adambots-...s/mcc-wrapper/ An RPM is available for RPM users; else just copy the three scripts to /usr/local/bin, making sure that they are chmodded +x |
Re: I want a version of the mplab compiler for Linux.
Thanks! It works now.
Just as an FYI for others (although you'll figure it out I'm sure): user_routines.c has an include for user_Serialdrv.h, but it's actually named user_SerialDrv.h. Either rename the file or change the include statement. (I renamed, so it may have been in other places as well.) |
Re: I want a version of the mplab compiler for Linux.
Thank you guys sooo much! This really helped me out. Our school is a bunch of nazis that wont let us do anything on their computer and all I and the other programmers have are Linux machines. I just wish this was in gcc or microchip released a native linux version.
|
Re: I want a version of the mplab compiler for Linux.
1 Attachment(s)
I believe I have the new compiler working... (I have yet to test the generated hex file, but I have no reason to believe it to be in error. However, you've been warned. ;))
This fix/hack makes compiling for multiple processors difficult (have to change /opt/mcc18/h/p18cxxx.h), but hey... if you're working on FIRST, you're using a certain processor anyways. |
Re: I want a version of the mplab compiler for Linux.
Ryan, unfortunately I seem to be getting an error with the linker when I use your configure script. This is the output I get when I do "make" on the default code:
Code:
Linking...I also wonder whether or not my WINE install might be the problem. I'm running Ubuntu with wine 20050725 (the binary I got using apt-get). Which distro and wine version are you running? |
Re: I want a version of the mplab compiler for Linux.
First of all you do not need to change anything in the code to get the 2006 code to compile for the 2006 controller, all you have to do is change a couple of things in the make file.
In the Makefile change the PIC to 18F8722 and the ARGS to ARGS=-D_FRC_BOARD -O+ -nw=2066. You do not need to install to /opt/mcc you can install anywere you want. For example I installed into ~/.wine/drive_c/mcc18 if you want to do that change the LIB CODE and INCLUDE paths to where ever you installed. I dont remember if I had to add or take out anything in ALL_TARGETS and INCLUDE_FILES but if you get an error from the linker about a file not being there add it. The reason why the code will fail sometimes is because he has gcc check deps to fix this add -D__$(PIC) to the line starting with cpp. Anyway I probably confused the hell out of everyone so ill post mine below. Code:
#This is automatically generated by the configure.py script |
Re: I want a version of the mplab compiler for Linux.
Sorry about the delay guys. I'm at Siemens (our build site) with the beloved John Dong right now, we've updated the configure.py script for the '06 stuff.
Put http://adambots.gotdns.com/adambots-...o/configure.py in your project folder, then run it with "python configure.py" to generate Makefiles. Re-run it every time you add/remove c/h files from the project. |
Re: I want a version of the mplab compiler for Linux.
I figured out my problem. The configure.py script depends on gawk, and I didn't have it installed. Once I installed gawk, everything works great. Thanks to everyone for your help and your code!
|
Re: I want a version of the mplab compiler for Linux.
Quote:
|
Re: I want a version of the mplab compiler for Linux.
wow, i have never made a thread that lasted this long. I'd be doing devel work off my MacLux computer if i could convince myself to for over for a USB-Serial converter.
Rock on *nux nerds!! |
| All times are GMT -5. The time now is 15:01. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi