|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Using MCC18 in a custom program
I am would like to create a hybrid between EasyC and MPLab. I would like to make it be able to import and export to MPLab. Is it possible to write a program in VB.net or C#.net that can use Microchips C18 complier? i know there are a number of .Exes in the mcc18/bin/ folder. I think i would somehow need to run the compiler, linker, and mabe other programs, but i don't know how to run or get a response from the .EXEs.
Any help would be appreciated |
|
#2
|
|||||
|
|||||
|
Re: Using MCC18 in a custom program
I had considered this before as I was getting some very erratic behavior out of MPLAB. My guess would be to either consult the MCC18 manual for what EXE needs what parameters (the long way), or watch what gets passed to which EXE in the compiler output in MPLAB and hard-code it (the short way). During off-season, us programmers need to unite and create FIRST-IDE, still using the MCC18 compiler, but blowing away MPLAB's little ability to keep code good-looking, along with nicer features. Since I have to contend with that hideous IDE for another 2 years, it would definitely be worth coding something up to replace it.
Notice: This is not meant in any way to cut on Microchip. Thank you for all that you do, and all the time and money you have put into FIRST. Things would be very hard without the compiler and IDE you donated. Thanks again. Yeah, eventually I think I'll start a sourceforge for this once I get some off time to start. I'll create a new thread once I get something working. JBotAlan PS - keep me posted on what you come up with. I have been very interested in replacing this IDE, and what you want to do sounds cool. |
|
#3
|
||||
|
||||
|
Re: Using MCC18 in a custom program
Quote:
When you want to compile and link you just need to run make with your desired parameters such as "clean all -f FILENAME" (where FILENAME is the filename of your makefile). For more information on makefiles, take a look at this. Last edited by JJG13 : 25-03-2006 at 08:20. |
|
#4
|
|||||
|
|||||
|
Re: Using MCC18 in a custom program
Quote:
* I've yet to actually try to integrate MCC18 with any other program, but I know it has been done with Eclipse. |
|
#5
|
|||
|
|||
|
Re: Using MCC18 in a custom program
MPlab just needs to be tamed, that is all. I have actually so far preferred it to all other IDE's that are available on Windows. None of them shake a stick at Xcode yet, and for a standalone editor, SubEthaEdit is still the best all around, with all the features it offers, especially when it comes to making code look nice, and the ease of use to how people want their "tabing" done.
|
|
#6
|
||||
|
||||
|
Re: Using MCC18 in a custom program
I want an IDE that allows you to collapse regions.. like Microsoft Visual Studio... anyone know of any?
|
|
#7
|
|||||
|
|||||
|
Re: Using MCC18 in a custom program
Quote:
http://www.pnotepad.org/ |
|
#8
|
||||
|
||||
|
Re: Using MCC18 in a custom program
I still haven't been able to find how to get the errors from the EXEs. If anyone can point me in the right direction i wound appreciate it.
Last edited by EHaskins : 26-03-2006 at 19:51. |
|
#9
|
||||
|
||||
|
Re: Using MCC18 in a custom program
Quote:
|
|
#10
|
||||
|
||||
|
Re: Using MCC18 in a custom program
I am not familiar with Delphi and can't find any vb or c# code to handle the text capturing. If anyone knows where i can find a sample in vb or C#?
|
|
#11
|
|||
|
|||
|
Re: Using MCC18 in a custom program
If anyone wants to try and use MCC18 with Code::Blocks Studio, here's the registry keys and project templates to use MCC18 with Code::Blocks.
It should work if MCC18 is installed at C:\mcc18, if not you'll have to edit the registry keys. Move all but the registry key to wherever you installed codeblocks\share\CodeBlocks\templates If anyone needs any information on the way to call mcc18 from the command line it's For all .C Files mcc18.exe FILENAME.C -fo=FILENAME.O /i "C:\mcc18\h" -p=18F8722 -D_FRC_BOARD Then Once mplink.exe /l "C:\mcc18\lib" ALL_.O_FILES "PATH_WHERE_ITS_LOCATED\18f8722.lkr" "PATH_WHERE_ITS_LOCATED\FRC_library_8722.lib" /m "PATH_WHERE_ITS_LOCATED\FrcCode.map" /o "PATH\FrcCode.cof" P.S. The Error's are not displayed in the Build Messages but they are in the Build Log Last edited by JonathanLKS : 26-03-2006 at 22:17. |
|
#12
|
||||
|
||||
|
Re: Using MCC18 in a custom program
I have submitted a project to Source Forge and i will put a link here if it is acepted.
|
|
#13
|
|||||
|
|||||
|
Re: Using MCC18 in a custom program
Quote:
|
|
#14
|
||||||
|
||||||
|
Re: Using MCC18 in a custom program
Quote:
|
|
#15
|
|||||
|
|||||
|
Re: Using MCC18 in a custom program
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to add steps in the provided encoder program for the edu | Zaramel2002 | Programming | 3 | 11-02-2004 08:35 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| Ahh! Program trick confusing! | archiver | 2001 | 9 | 24-06-2002 02:26 |
| So what's in YOUR Custom Circuit this year? | kmcclary | Technical Discussion | 7 | 10-04-2002 12:20 |