<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to C18</title><link>https://sourceforge.net/p/mergcbus/wiki/C18/</link><description>Recent changes to C18</description><atom:link href="https://sourceforge.net/p/mergcbus/wiki/C18/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 22 May 2014 09:52:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mergcbus/wiki/C18/feed" rel="self" type="application/rss+xml"/><item><title>C18 modified by Mike Johnson</title><link>https://sourceforge.net/p/mergcbus/wiki/C18/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="compiling-c18-code"&gt;Compiling C18 code&lt;/h1&gt;
&lt;p&gt;To compile the c code you'll need the mcc18 compiler from Microchip. The evaluation or academic &lt;span&gt;[&lt;a class="" href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;amp;nodeId=1406&amp;amp;dDocName=en010014|mcc18" rel="nofollow"&gt;&lt;/a&gt;&lt;a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE" rel="nofollow"&gt;http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&lt;/a&gt;&amp;amp;nodeId=1406&amp;amp;dDocName=en010014|mcc18]&lt;/span&gt; should work fine. &lt;/p&gt;
&lt;p&gt;After installation, ensure that the mcc "bin" folder is in your path. 'echo %path%' should show something like "...;C:\MCC18\bin;..." &lt;/p&gt;
&lt;p&gt;To 'make' use of the 'makefile's set up in each folder, you'll need some form of Make utility installed. For development on Windows, either &lt;span&gt;[&lt;a href="http://sourceforge.net/projects/unxutils/|Unxutils"&gt;http://sourceforge.net/projects/unxutils/|Unxutils&lt;/a&gt;]&lt;/span&gt; or &lt;span&gt;[&lt;a class="" href="http://www.steve.org.uk/Software/make/|GNU" rel="nofollow"&gt;Make&lt;/a&gt;]&lt;/span&gt; will work. A single 'make' command in the mergcbus\trunk folder, will build all the individual projects listed in the folder's makefile. When building a subset of the projects, make sure you build CANLIB and CANLDR at least once, if you need to link those libraries. &lt;/p&gt;
&lt;p&gt;If you are not using the default PIC18F2480 devices or a standard S1pin location, these are all set up in the makefiles throughout the projects, and you'll need to manually edit them. Be careful not to submit the makefiles back into sourceforge (unless warrented), since it will become the default! &lt;/p&gt;
&lt;p&gt;(If you are using MPLAB, you'll need to define or specify S1pin as a compiler directive) &lt;/p&gt;
&lt;p&gt;(Also be carefull when using MPLAB, it has a function to generate a "Makefile", which will overwrite the current makefile with a completely different one) &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Johnson</dc:creator><pubDate>Thu, 22 May 2014 09:52:36 -0000</pubDate><guid>https://sourceforge.net4e5f5040b362e6205115dfc6b2226c6b6b2abee9</guid></item></channel></rss>