View Full Version : MPLAB IDE Problem
amateurrobotguy
25-02-2005, 22:09
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?
probizzle
25-02-2005, 22:14
Can you display the exact error? We would be able to assist you better that way.
amateurrobotguy
25-02-2005, 22:18
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
amateurrobotguy
25-02-2005, 22:24
Also, do I need to specify the output directory and stuff under Build Option(Green)
Mark McLeod
25-02-2005, 22:32
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
amateurrobotguy
25-02-2005, 22:42
I did that, and set the linker to the lnk or whatever. It still isn't finding the headers :(
amateurrobotguy
25-02-2005, 22:46
It is Include=h
Library=lib
linker=lkr
amateurrobotguy
25-02-2005, 22:47
Does the .BIN ever need to get remade for my .c code changes? In other words, is it a contant?
Mark McLeod
25-02-2005, 23:28
.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/attachment.php?attachmentid=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.
amateurrobotguy
25-02-2005, 23:58
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.
Mark McLeod
26-02-2005, 09:29
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
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.