Go to Post I can follow directions, but if it's not in the directions, I'm lost. - rclothier [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2005, 18:55
Venkatesh Venkatesh is offline
Registered User
FRC #0030
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 260
Venkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to behold
Makefile and stripped down compiler

Hello everybody,

I have been looking at the new code and it doesn't seem all that different from last year's code. Maybe there will be a release of something new later?

Anyway, I have always loathed the MPLAB IDE, preferring to use other tools (namely vi) to write C files. Normally, I would install MPLAB and the MCC18 compilers, and then proceed to use them via the command line, at their path (something like C:\Program Files\MPLAB IDE\bin\mcc18.exe, or whatever it turned out to be). About two months ago, however, I came up with a different way to get the compilers without an IDE.

You need to construct the following file structure. I put the compiler in d:\usr\mcc18, but to use this for any other location, just change the paths:

Quote:
[Lightwave-III D:\usr\mcc18] tree /f /a
Folder PATH listing for volume Lightwave-III
Volume serial number is DC26-3E52
D:.
+---bin
| cpp18.exe
| mcc18.exe
| mp2cod.exe
| mp2hex.exe
| mplink.exe
| _mplink.exe
|
+---h
| adc.h
| capture.h
| pwm.h
| spi.h
| stddef.h
| string.h
| timers.h
| usart.h
|
\---lib
clib.lib
p18f8520.lib
With just those files, measuring only 7168KB, I have a development environment set up. It will compile all the FIRST code I have ever thrown at it.

To use this environment, I changed one of the makefiles posted here in the past. I use Microsoft NMAKE, so that I don't need to install the full cygwin toolkit. This makefile allows me to just execute "nmake all" in the \home\venkatesh\frccode directory, getting me a .hex file for use with IFI Loader. If any of you find useful, great. I have not tried it with the new compiler or MPLAB 7, but I assume the process would be similar.

The "make me a sandwich" idea is copied from another earlier makefile on these forums. Almost forgot to give credit. =)
Attached Files
File Type: txt makefile.txt (2.1 KB, 122 views)
__________________
-- vs, me@acm.jhu.edu
Mentor, Team 1719, 2007
Team 30, 2002-2005

Last edited by Venkatesh : 09-01-2005 at 18:58.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi