|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Creating new MPLab Project
So today I tried opening up the '06 code on my MPLAB 6.3. It wouldn't open, so I figured "OK, I can just make a new project." I did that, got the correct chip to program for, etc. Now it gave me an error on
Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16); Quote:
Code:
#ifdef _FRC_BOARD /* located in ifi_library.lib */ void Generate_Pwms(unsigned char pwm_13,unsigned char pwm_14, unsigned char pwm_15,unsigned char pwm_16); #else /* located in ifi_library.lib */ void Generate_Pwms(unsigned char pwm_1,unsigned char pwm_2, unsigned char pwm_3,unsigned char pwm_4, unsigned char pwm_5,unsigned char pwm_6, unsigned char pwm_7,unsigned char pwm_8); #endif Thanks |
|
#2
|
|||||
|
|||||
|
Re: Creating new MPLab Project
I don't have a copy of MPLAB handy to check, but I'm pretty sure you'll find a "Compiler Options" choice under the Project menu.
|
|
#3
|
|||||
|
|||||
|
Re: Creating new MPLab Project
With your project open in MPLAB:
Project > Build Options > Project There, select the MPLAB C18 tab and, under Macro Definitions, add _FRC_BOARD. You can also enable code optimizations by editing the "-Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-" strings. These two posts discuss it in more detail. |
|
#4
|
|||||
|
|||||
|
Re: Creating new MPLab Project
Ok, so I did that. I also had to have a custom error suppressantt added to my build options, so I now use the "User alternate settings" function. So to add a macro, I found out that I needed to append -D_MACRO_NAME to my build options. My total build options are now
Code:
-D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066 Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Creating new MPLab Project
Quote:
First try cleaning the project and rebuilding (in case of file corruption). Then try changing some compilation options. (eg, optimization) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Vex w/ MPLab | dababyjebus | FIRST Tech Challenge | 27 | 25-04-2008 09:11 |
| openFIRST Project Announces Pending Deadline for End of Support for Old Versions | Timothy D. Ginn | FIRST-related Organizations | 0 | 11-07-2005 22:40 |
| Printing of a project in MPLAB | DanDon | Programming | 0 | 10-01-2005 21:10 |