View previous topic :: View next topic |
Author |
Message |
nicotec
Joined: 07 Nov 2008 Posts: 60
|
get_string not working |
Posted: Tue Feb 10, 2009 2:30 pm |
|
|
Hi, as in subject get_string function available in driver ccs folder not working since an error during compiling time occured on getc putc with comment unidentifier..
There is a new version of driver library?
Thanks in advance
Regards |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Feb 10, 2009 2:33 pm |
|
|
You must have a #use rs232() statement. Get_string() calls functions
in that library code. |
|
|
nicotec
Joined: 07 Nov 2008 Posts: 60
|
|
Posted: Wed Feb 11, 2009 7:38 am |
|
|
Yes, I have
Code: | #use rs232(UART1,baud=2400,parity=N,bits=8,stop=1) |
but I do know why I have error from compiler for getc |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Feb 11, 2009 11:04 am |
|
|
Post a very short test program that has an #include, #fuses, #use delay,
#use rs232, a main(). Use this code for your main:
Code: |
void main()
{
char c;
c = getc();
while(1);
}
|
Compile it. See if you get the error message. If so, post the program.
Also post your compiler version. |
|
|
|