Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Uart Problem in Hi-tech compiler

Status
Not open for further replies.
my compiler know RA0 it work find. it cant send but send blank data example Time : Date: no data

- - - Updated - - -

it is show like this Untitled.png
 

I don't have mikroC code for GSM. I have never done a GSM based project.

I changed your config to

Code:
__CONFIG(1, FCMDIS & IESODIS & XT);
__CONFIG(2, BORDIS & BORV45 & PWRTEN & WDTDIS & WDTPS1);
__CONFIG(3, CCP2RB3 & LPT1DIS & MCLRDIS & 0xFDFF);
__CONFIG(4, DEBUGDIS & XINSTDIS & LVPDIS & STVRDIS);
__PROG_CONFIG(5, 0xFFFF);
__PROG_CONFIG(6, 0xFFFF);
__PROG_CONFIG(7, 0xFFFF);

but still getting errors. How to fix it?

PHP:
Clean: Deleting intermediary and output files.
Clean Warning: File "D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.p1" doesn't exist.
Clean: Done.
Build D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550 for device 18F2550
Using driver F:\Program Files\HI-TECH Software\PICC-18\9.80\bin\picc18.exe

Executing: "F:\Program Files\HI-TECH Software\PICC-18\9.80\bin\picc18.exe" --pass1 "D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c" -q --chip=18F2550 -P --runtime=default --opt=default -D__DEBUG=1 --rom=default --ram=default -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" 
Error   [0] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 5.31 Cannot use literal values (0xFDFF) with __CONFIG(), use __PROG_CONFIG() instead
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 7.45 configuration setting/register of "CONFIG5L" with 0xFF will be truncated by 0xF
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 7.45 configuration setting/register of "CONFIG5H" with 0xFF will be truncated by 0xC0
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 8.45 configuration setting/register of "CONFIG6L" with 0xFF will be truncated by 0xF
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 8.45 configuration setting/register of "CONFIG6H" with 0xFF will be truncated by 0xE0
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 9.45 configuration setting/register of "CONFIG7L" with 0xFF will be truncated by 0xF
Warning [1388] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 9.45 configuration setting/register of "CONFIG7H" with 0xFF will be truncated by 0x40
Error   [255] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 97.17 not a member of the struct/union ""
Error   [207] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 97.21 simple type required for "=="
Error   [255] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 110.20 not a member of the struct/union ""
Error   [207] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 110.24 simple type required for "=="
Error   [255] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 120.21 not a member of the struct/union ""
Error   [207] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 120.25 simple type required for "=="
Error   [255] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 127.15 not a member of the struct/union ""
Error   [182] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 127.18 illegal conversion between types
int -> volatile union S245
Error   [255] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 133.15 not a member of the struct/union ""
Error   [182] D:\Users\System Administrator\Desktop\PIC18F2550\pic18f2550_excavator.c; 133.18 illegal conversion between types
int -> volatile union S245

********** Build failed! **********
 

i send command AT+CMGR in order to read sms and GSM module will reply SMS and i got it but uart read cannot got data reply back it is mean that GSM module can got PIC command but Pic cannot go reply

- - - Updated - - -

what IDE you usd?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top