![]() ![]() Check the box that says “This is a custom Makefile” and make sure the makefile name matches the name of the makefile (“Makefile”) Now, leaving that dialog open, click the “Project” tab.You can do this by clicking Project->Properties on the menu bar and clicking the “Targets” tab. In your project, add the 2 build targets PIC18F8722 and PIC18F8520.Create a new Code::Blocks project, add all of your *.c and *.h files to it, and save the project in the same place as your code.Also, rename the libraries for the 8722 PIC to FRC_Library_8722.lib, and the library for the 8520 to FRC_Library_8520.lib. After you’ve put the makefile in there, create two new folders: “obj.8722” and “obj.8520”. Download the makefile on my website and save it in the same directory as your code.The instructions for using this interface are as follows: I’ve only tested this with the 1.0rc2 on the main website. ![]() Also, Code::Blocks must be installed, of course. To use this setup, the MPLAB C18 compiler must be installed with the PATH environment variable pointing to the compiler’s directory. Probably handy for when you need to run something on both models. It will also keep the HEX output files named according to processor. You can, in fact, compile it for one and then the other, without running a clean or anything. It automatically switches out all libraries and build options. ![]() However, I have customized it for use with Code::Blocks to take advantage of a really cool feature: Using the drop-down box in the IDE, you can change code between the 18F8722 and 18F8520 processor. I’m not sure of the author, but I cannot take full credit for it. My setup uses a custom makefile based on one I’ve had from long ago, originally written for Eclipse. It’s available for any operating system wxWidgets supports, although you’re still tied to windows for the MPLAB C18 Compiler. After many searches and problems, I’ve managed to create a very nice interface for programming it.Ĭode::Blocks is a lightweight, opensource editor written in C++ with the wxWidgets toolkit. After having a lot of problems with the interface in MPLAB, I decided to find a way to use my choice IDE of Code::Blocks to program the RC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |