Jump to content
Badejavu

Help Boost C Uart Driver Not Working!

Recommended Posts

Hi, I am new to boost C.I am trying to implement the uart driver that comes with the compiler on a PIC18F26K80.I have followed the uart driver manual to the last word i hope.Can anyone pls help with this.I have included the "uart_driver.h" to my project and the header yet it gives an error :

 

Clean: Deleting intermediary and output files.

Clean: Done.

Executing: "C:\Program Files (x86)\SourceBoost\boostc_pic18.exe" uart.c -O1 -W1 -t 18F26K80

BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)

http://www.sourceboost.com

Copyright© 2004-2011 Pavel Baranov

Copyright© 2004-2011 David Hobday

 

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

Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited

 

 

uart.c

uart.c(53): error: general error

uart.c(53): error: failure

 

failure

BUILD FAILED: Fri Aug 24 18:39:23 2012

uart.c

Share this post


Link to post
Share on other sites

There are couple of issues in your code. The source of the errors you see is in the backslashes you left in the macros:

 

#define uart1Init \ rs232Init<PIE1,TX1IE,PIE1,RC1IE,RCSTA,CREN,RCSTA,SPEN>

_________________^^^________ what is this one for?

 

Another problem that won't let you compile after you fix the backslashes is that the system include is not the first include in your code. This will cause all kind of problems as the code from uart_driver.h that you include before system.h uses all kind of information from this system header.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Thanks ,I copied the macros from the uart driver manual.I am new to boost C.However,I have removed the ''\'' and re orderd the include files and it compiled successfully.I will be move on to check it with a terminal application.Thank you very much :)

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