Jump to content
Sign in to follow this  
Steven

Mplab Ide Error

Recommended Posts

I am new to sourceBoost and I installed Boost C and chose to integrate it with MPLAB IDE 8.10 I believe I have all the libraries and compiler hooked up correctly but I get this error Failed to load C:\test.COF and then it finishes...

 

failure

BUILD SUCCEEDED: Thu Jan 15 20:25:33 2009

 

 

 

Any Ideas?

Share this post


Link to post
Share on other sites
I am new to sourceBoost and I installed Boost C and chose to integrate it with MPLAB IDE 8.10 I believe I have all the libraries and compiler hooked up correctly but I get this error Failed to load C:\test.COF and then it finishes...

 

failure

BUILD SUCCEEDED: Thu Jan 15 20:25:33 2009

MPLAB V8.10 works fine for me.

What other output do you get in the build window?

 

Regards

Dave

Share this post


Link to post
Share on other sites

I will copy the output tonight when I get home. It seems as though the build is successful Its only one file with like 5 lines of code pretty much a blink test code document. I was wondering if I had something linked up incorrectly?

Share this post


Link to post
Share on other sites

Executing: "C:\Program Files\SourceBoost\boostlink.pic.exe" -O1 -p "test1" -t 16F88 -ld "C:\Program Files\SourceBoost\Lib"

BoostLink Optimizing Linker Version 6.91

http://www.sourceboost.com

Copyright© 2004-2008 Pavel Baranov

Copyright© 2004-2008 David Hobday

 

 

Optimisation level:1

Internal Error: Data Type not found id:0xF0000001:

 

 

failure

BUILD SUCCEEDED: Fri Jan 16 11:07:02 2009

 

I did a clean install of MPLAB and Source BOOST

 

Here is my code:

 

#include <system.h>

 

 

void main( void ) {

 

 

while( 1 ) {

 

set_bit( portb, 0 ); // connect the led to port B, // bit 0 this is RB0 or pin33 // the led will turn on delay_ms( 250 ); // just wait for ¼ of a second

 

clear_bit( portb, 0 ); // the led will turn off

 

delay_ms( 250 ); // just wait for ¼ of a second

 

 

}

 

}

 

Also here are my Project Paths

 

Include Search Path

C:\Program Files\SourceBoost\include

 

Library Search Path

C:\Program Files\SourceBoost\Lib

 

The other Paths are BLANK.

 

Thanks for the help.

Share this post


Link to post
Share on other sites

It turns out I didn't include an important Library and now my error has changed to the followning(after including the libray)

 

Clean: Deleting intermediary and output files.

Clean: Deleted file "C:\TestBoost\test1.HEX".

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostlink.pic.exe" "C:\Program Files\SourceBoost\Lib\libc.pic16.lib" -O1 -p "test1" -t 16F88 -ld "C:\Program Files\SourceBoost\Lib"

BoostLink Optimizing Linker Version 6.91

http://www.sourceboost.com

Copyright© 2004-2008 Pavel Baranov

Copyright© 2004-2008 David Hobday

 

 

Optimisation level:1

Couldn't find function/label by name:main

 

 

 

failure

BUILD SUCCEEDED: Fri Jan 16 11:57:09 2009

 

 

NEW CODE:

 

#include <system.h>

 

void main(){

#include <icd2.h>

 

while( 1 ) {

set_bit( portb, 0 ); // connect the led to port B, // bit 0 this is RB0 or pin33 // the led will turn on delay_ms( 250 );

clear_bit( portb, 0 ); // the led will turn off

 

delay_ms( 250 ); // just wait for ¼ of a second

 

 

}

 

}

Share this post


Link to post
Share on other sites
It turns out I didn't include an important Library and now my error has changed to the followning(after including the libray)

 

#include <system.h>

 

void main(){

#include <icd2.h>

Change where you are adding the icd2.h file - see below:

#include <system.h> 
#include <icd2.h>

void main(){

 

Regards

Dave

Share this post


Link to post
Share on other sites

Steven,

 

The problems you report don't see to make sense with what I am seeing.

Here is a complete MPLABs project using your code that compiles.

 

Regards

Dave

Mplabtest.zip

Share this post


Link to post
Share on other sites

Im still recieving the same error with the code you provided. Sorry about the #include in the wrong place I got in a hurry and posted before I caught the error. However the problem remains only the error I get with your code doesnt have the

Couldn't find function/label by name:main. This is after a fresh install of MPLAB and source Boost. I attached the compiler output to this post. Also Im able to locate the test.cof file in the directory but its size is 0 KB.

post-4917-1232138623_thumb.jpg

Share this post


Link to post
Share on other sites

It seems the error I got from your code came from a breech in the limitations so I commented out the #include <icd2.h> and the build was successful. The two projects look identical any Ideas on what could be different? Also I noticed your project doesn't include the libc.pic16.lib file is this necessary as stated in the documentation?

Share this post


Link to post
Share on other sites
The two projects look identical any Ideas on what could be different?
You have the projects, so you need to tell me ;)

 

Also I noticed your project doesn't include the libc.pic16.lib file is this necessary as stated in the documentation?
The lib file is needed for library functions. Real simple code doesn't use any library functions and so does not need the .lib file.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...