|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
MPLAB IDE Problem
I get an error that basically means it isn't finding the default header files(math.h, pwm.h, etc.). How do I change where it is searching during the build process?
Last edited by amateurrobotguy : 25-02-2005 at 22:15. |
|
#2
|
|||||
|
|||||
|
Re: MPLAB IDE Problem
Can you display the exact error? We would be able to assist you better that way.
|
|
#3
|
||||
|
||||
|
Re: MPLAB IDE Problem
D:\Robot\MyFiles\user_SerialDrv.c:27: unable to locate 'string.h'
D:\Robot\MyFiles\user_SerialDrv.c:28: unable to locate 'usart.h' D:\Robot\MyFiles\user_SerialDrv.c:29: unable to locate 'string.h' error 1 spawning D:\Robot\mcc18\bin\cpp18 Last edited by amateurrobotguy : 25-02-2005 at 22:21. |
|
#4
|
||||
|
||||
|
Re: MPLAB IDE Problem
Also, do I need to specify the output directory and stuff under Build Option(Green)
|
|
#5
|
|||||
|
|||||
|
Re: MPLAB IDE Problem
You don't need to specify the output directory. It will default to your project folder.
You need to assign: Library Path to c:\mcc18\h Include Path to c:\mcc18\lib both under Project -> Build Options... -> Project |
|
#6
|
||||
|
||||
|
Re: MPLAB IDE Problem
I did that, and set the linker to the lnk or whatever. It still isn't finding the headers
![]() |
|
#7
|
||||
|
||||
|
Re: MPLAB IDE Problem
It is Include=h
Library=lib linker=lkr |
|
#8
|
||||
|
||||
|
Re: MPLAB IDE Problem
Does the .BIN ever need to get remade for my .c code changes? In other words, is it a contant?
|
|
#9
|
|||||
|
|||||
|
Re: MPLAB IDE Problem
.BIN only needs to be loaded once. Think of it as a patch to your operating system. It doesn't need to be done everytime you start your computer.
Does your MPLAB options window look exactly like this? http://www.chiefdelphi.com/forums/at...achmentid=2610 Those includes are located by the correct Include Path. You can double-check you have the correct path by cutting it from the Options window and pasting it into Run from your Start menu. You could try hitting "Suite Defaults" and enter the paths again. Last edited by Mark McLeod : 25-02-2005 at 23:35. |
|
#10
|
||||
|
||||
|
Re: MPLAB IDE Problem
A build generates .cof.
I think those are files meant for debug purposes. I assume I only need to dl .hex files to the bot, which I can do with File-->Export-->xxxx.INHEX32 *Update* Just looked at posted pic, now it genrates new .coff and .hex and .lst Really, I guess, the only useful is .hex just to get the bot running. Last edited by amateurrobotguy : 26-02-2005 at 00:02. |
|
#11
|
|||||
|
|||||
|
Re: MPLAB IDE Problem
The .hex is the only file you're after.
Some of the other files are useful for debugging problems or checking on the amount of memory you are using up on the controller. You can only download the .hex file to the robot using the separate IFI_Loader program available at http://www.ifirobotics.com/docs/ifi-loader-v1-0-10.zip |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MPLAB IDE HELP | Idaman323 | Programming | 2 | 16-02-2005 18:01 |
| MPLAB IDE 6.60 Error | mchan1111 | Programming | 8 | 08-11-2004 20:17 |
| MPLAB IDE Project Specs | Raven_Writer | Programming | 18 | 19-01-2004 15:53 |
| using the MPLAB IDE MPLAB SIM simulator | WizardOfAz | Programming | 1 | 03-11-2003 01:24 |