Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   MPLAB IDE Problem (http://www.chiefdelphi.com/forums/showthread.php?t=35502)

amateurrobotguy 25-02-2005 22:09

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?

probizzle 25-02-2005 22:14

Re: MPLAB IDE Problem
 
Can you display the exact error? We would be able to assist you better that way.

amateurrobotguy 25-02-2005 22:18

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

amateurrobotguy 25-02-2005 22:24

Re: MPLAB IDE Problem
 
Also, do I need to specify the output directory and stuff under Build Option(Green)

Mark McLeod 25-02-2005 22:32

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

amateurrobotguy 25-02-2005 22:42

Re: MPLAB IDE Problem
 
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

Re: MPLAB IDE Problem
 
It is Include=h
Library=lib
linker=lkr

amateurrobotguy 25-02-2005 22:47

Re: MPLAB IDE Problem
 
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

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.

amateurrobotguy 25-02-2005 23:58

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.

Mark McLeod 26-02-2005 09:29

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


All times are GMT -5. The time now is 04:37.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi