CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

set_uart_speed and compiler

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jmc8197
Guest







set_uart_speed and compiler
PostPosted: Tue Jul 06, 2004 10:18 am     Reply with quote

When I compile the following with ver 3.184 compiler:-


#include "16F87.h"

#use delay(clock=2000000, restart_wdt)
#use rs232(BAUD=9600, XMIT=PIN_A1, RCV=PIN_A0, BITS=8, PARITY=N)

/*------------------------------------------------------------------*/
void main(void)
/*------------------------------------------------------------------*/
{
set_uart_speed(9600); //setup RS232 hardware
}


I get:-

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\App\prog\pic\PICC\Ccsc.exe" 925941sw.c
Error[12] C:\#p\925\925941sw.c 11 : Undefined identifier set_uart_speed
Halting build on first failed translation as user preferences indicate.
BUILD FAILED: Tue Jul 06 17:21:38 2004


Anyone knows what's going on?
Also, where are the user preferences for Mplab?
Guest








PostPosted: Tue Jul 06, 2004 10:25 am     Reply with quote

Set_uart_spped() is undefined unless you init the hw serial port by a #use rs232. Your #use statement is for a sw uart (hw uart pins are on port_b).
Guest








PostPosted: Wed Jul 07, 2004 7:08 am     Reply with quote

Yes, the pins were wrong, and it now compiles without error, however it says build failed!!!! How can I get around this?


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\App\prog\pic\PICC\Ccsc.exe" 925941sw.c +FM
No Errors
Halting build on first failed translation as user preferences indicate.
BUILD FAILED: Wed Jul 07 14:06:05 2004
Guest








PostPosted: Wed Jul 07, 2004 8:15 am     Reply with quote

Not sure but try to delete all intermediate files (maybe a file was generated at the last compiler failure; then -because the last was successful, no error report generated to overwrite the last error file with a zero-content file).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group