Jump to content

Recommended Posts

Hi

 

 

Im getting the "build failed" message but It doesn´t show why.

 

 

main.c

success

Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" "C:\Users\16f688\main.obj" "C:\Program Files\SourceBoost\Lib\libc.pic16.lib" -O1 -p "display" -t 16F688

BoostLink Optimizing Linker Version 6.97

http://www.sourceboost.com

Copyright© 2004-2010 Pavel Baranov

Copyright© 2004-2010 David Hobday

Optimisation level:1

Building CASM file

Memory Usage Report

===================

RAM available:256 bytes, used:11 bytes (4.3%), free:245 bytes (95.7%),

Heap size:245 bytes, Heap max single alloc:94 bytes

ROM available:4096 words, used:79 words (2.0%), free:4017 words (98.0%)

success

Loaded C:\Users\16f688\display.COF.

BUILD FAILED

 

 

I´m using mplab 8.76.

 

This is the code:

 

void main() {

 

set_bit( porta, 0 );

set_bit( porta, 1 );

set_bit( portc, 0 );

 

while(1);

}

 

 

Apparently, if I comment the "set_bit" lines, I don´t get the "build failed" error.

 

I´m having strange problems related boostc and mplab as you can see in another post (pwm).

Maybe the integration is not ok?

 

Thanks

Share this post


Link to post
Share on other sites
Hi

 

 

Im getting the "build failed" message but It doesn´t show why.

 

 

main.c

success

Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" "C:\Users\16f688\main.obj" "C:\Program Files\SourceBoost\Lib\libc.pic16.lib" -O1 -p "display" -t 16F688

BoostLink Optimizing Linker Version 6.97

http://www.sourceboost.com

Copyright© 2004-2010 Pavel Baranov

Copyright© 2004-2010 David Hobday

Optimisation level:1

Building CASM file

Memory Usage Report

===================

RAM available:256 bytes, used:11 bytes (4.3%), free:245 bytes (95.7%),

Heap size:245 bytes, Heap max single alloc:94 bytes

ROM available:4096 words, used:79 words (2.0%), free:4017 words (98.0%)

success

Loaded C:\Users\16f688\display.COF.

BUILD FAILED

 

 

I´m using mplab 8.76.

 

This is the code:

 

void main() {

 

set_bit( porta, 0 );

set_bit( porta, 1 );

set_bit( portc, 0 );

 

while(1);

}

 

 

Apparently, if I comment the "set_bit" lines, I don´t get the "build failed" error.

 

I´m having strange problems related boostc and mplab as you can see in another post (pwm).

Maybe the integration is not ok?

 

Thanks

Remember to add #include <system.h> to your source code for the set_bit macro to work.

Even if this is missing I would still expect to get an error generated, so maybe something else is wrong.

 

Regards

Dave

Share this post


Link to post
Share on other sites

I have <system.h> included.

 

I don´t know why I get the "success" message followed by the "build failed" message.

 

Anyway, the code generated is correct. The uC functions as expected.

Share this post


Link to post
Share on other sites

Boostfede,

 

I have <system.h> included.

 

I don´t know why I get the "success" message followed by the "build failed" message.

 

Anyway, the code generated is correct. The uC functions as expected.

I have just tried your code with BoostC V7.04 and MPLAB V8.76, all works OK.

I have just tried your code with BoostC V6.97 and MPLAB V8.76, all works OK.

 

So I'm not sure why its not working for you, and more perplexing is that fact that it is dependent on the set_bit macro.

 

Regards

Dave

Share this post


Link to post
Share on other sites

I have a similar problem. The code compiles successfully and I can program the uC and it works except when I try to use the UART DRIVER. I disabled the uart driver and removed its corresponding referenced code but the problem sticks. Here is my output:

 

 

 

Clean: Deleting intermediary and output files.

Clean: Deleted file "RC500.OBJ".

Clean: Deleted file "C:\Documents and Settings\Users\Desktop\RCdemo\Code\Ver 2.0\Impossibro.HEX".

Clean: Deleted file "C:\Documents and Settings\Users\Desktop\RCdemo\Code\Ver 2.0\Impossibro.mcs".

Clean: Done.

Executing: "C:\Program Files\SourceBoost\boostc_pic16.exe" RC500.c -O1 -W1 -t 16F1823

BoostC Optimizing C Compiler Version 7.05 (for PIC16 architecture)

http://www.sourceboost.com

Copyright© 2004-2011 Pavel Baranov

Copyright© 2004-2011 David Hobday

 

Licensed to Charles Miller under Single user Pro License for 1 node(s)

Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited

 

 

RC500.c

 

success

Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" "C:\Documents and Settings\Users\Desktop\RCdemo\Code\Ver 2.0\RC500.obj" "C:\Documents and Settings\Users\Desktop\RCdemo\Code\Ver 2.0\libc.pic16.lib" -O1 -p "Impossibro" -t 16F1823

BoostLink Optimizing Linker Version 7.05

http://www.sourceboost.com

Copyright© 2004-2011 Pavel Baranov

Copyright© 2004-2011 David Hobday

 

 

Optimisation level:1

Building CASM file

Memory Usage Report

===================

RAM available:128 bytes, used:10 bytes (7.9%), free:118 bytes (92.1%),

Heap size:118 bytes, Heap max single alloc:85 bytes

ROM available:2048 words, used:194 words (9.5%), free:1854 words (90.5%)

 

 

 

success

Loaded C:\Documents and Settings\Users\Desktop\RCdemo\Code\Ver 2.0\Impossibro.COF.

BUILD FAILED: Wed Jun 20 20:18:05 2012

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...

×
×
  • Create New...