View previous topic :: View next topic |
Author |
Message |
jmc8197 Guest
|
set_uart_speed and compiler |
Posted: Tue Jul 06, 2004 10:18 am |
|
|
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
|
|
Posted: Tue Jul 06, 2004 10:25 am |
|
|
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
|
|
Posted: Wed Jul 07, 2004 7:08 am |
|
|
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
|
|
Posted: Wed Jul 07, 2004 8:15 am |
|
|
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). |
|
|
|