Hi Tech compiller error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Hi Tech compiller error

Postby Ondra » Thu Jan 27, 2011 1:23 pm

Good day all I need some help setting up and using the Hi-Tech compiler. When I tried to compile code using the Hi-tech compiler, code that compiles fine using the default "source boost", I get the following errors. can someone help me with this?


Pebble_Pic_IP_Acc_Brd.c: FCM_TimeClock()
2881: FCM_LCD_Idx_Data_Out("System Startup");
^ (359) illegal conversion between pointer types (warning)
2947: FCM_Send_To_Modem("AT+iDOWN");
^ (359) illegal conversion between pointer types (warning)
3589: FCM_LCD_Idx_Data_Out("Modem hanged");
^ (359) illegal conversion between pointer types (warning)
3675: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
3733: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
3791: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
3849: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
3907: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
3965: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
4023: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
4081: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
4158: }
^ (350) unused label "FCC_TimeClock_B" (from line 4094) (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_Send_To_Modem()
4165: FCI_CONCATENATE(PFCL_SEND,200,"",0,FCL_SEND,200);
^ (359) illegal conversion between pointer types (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_LCD_Idx_Data_Out()
4336: FCI_CONCATENATE(PFCL_IN,229,"",0,FCL_IN,229);
^ (359) illegal conversion between pointer types (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_Handling_Rx_Data()
4386: FCI_CONCATENATE(PFCL_IN,80,"",0,FCL_IN,80);
^ (359) illegal conversion between pointer types (warning)
4399: FCV_MATCH = FCI_COMPARE(FCV_CHK_RESPON,13,"I/ERROR",7,1);
(359) illegal conversion between pointer types ^ (warning)
4435: FCM_LCD_Idx_Data_Out(" Connection Error!");
^ (359) illegal conversion between pointer types (warning)
4445: FCM_LCD_Idx_Data_Out("Will continue to try!");
^ (359) illegal conversion between pointer types (warning)
4514: FCV_MATCH = FCI_COMPARE(FCV_DATANEW,255,"I/OK",4,1);
^ (359) illegal conversion between pointer types (warning)
4548: FCV_MATCH = FCI_COMPARE(FCV_IS_ACTIVE,20,"Active",6,1);
(359) illegal conversion between pointer types ^ (warning)
4657: FCV_MATCH = FCI_COMPARE(FCV_DATANEW,255,"I/OK",4,1);
^ (359) illegal conversion between pointer types (warning)
4790: FCV_MATCH = FCI_COMPARE(FCV_DATANEW,255,"I/ONLINE",8,1);
(359) illegal conversion between pointer types ^ (warning)
4845: FCV_MATCH = FCI_COMPARE(FCV_DATANEW,255,"I/DONE",6,1);
(359) illegal conversion between pointer types ^ (warning)
4903: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
Pebble_Pic_IP_Acc_Brd.c: FCM_which_Modem_Cmd()
4977: FCI_CONCATENATE("ISP Update?= ",13,(char*)&FCV_ISPDIALUPDATE,1,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5068: FCI_CONCATENATE("Main Phone=",11,FCV_ISP1,16,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5097: FCI_CONCATENATE("AT+iISP1=",9,FCV_ISP1,16,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5198: FCI_CONCATENATE("ResPhone=",9,FCV_ISP2,16,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5289: FCI_CONCATENATE("UserName1=",10,FCV_STR_USR_NM1,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5318: FCI_CONCATENATE("AT+iUSRN=",9,FCV_STR_USR_NM1,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5409: FCI_CONCATENATE("UserName2=",10,FCV_STR_USR_NM2,11,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5500: FCI_CONCATENATE("ISP Pwd=",8,FCV_ISP_PWD,30,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5529: FCI_CONCATENATE("AT+iPWD=",8,FCV_ISP_PWD,30,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5620: FCI_CONCATENATE("DNS1=",5,FCV_STR_DNS1,20,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5649: FCI_CONCATENATE("AT+iDNS=",8,FCV_STR_DNS1,20,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5740: FCI_CONCATENATE("DNS2=",5,FCV_STR_DNS2,20,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5847: FCI_CONCATENATE(" UID=",6,FCV_UID,20,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
5881: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
5945: t0con = (t0con & 0xF0) | 0x07;
^ (192) undefined identifier "t0con"
5993: FCM_LCD_Idx_Data_Out("Sensor 1 updating");
^ (359) illegal conversion between pointer types (warning)
(359) illegal conversion between pointer types ^ (warning)
6703: FCI_CONCATENATE(FCV_COMMAND,255,"&UID=",5,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
6705: FCI_CONCATENATE(FCV_COMMAND,255,"&em=1",5,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
6706: FCI_CONCATENATE(FCV_COMMAND,255,"&TnkTopO=",9,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
6708: FCI_CONCATENATE(FCV_COMMAND,255,"&TnkTopC=",9,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_Reset_Macro()
6846: FCM_LCD_Idx_Data_Out("Modem reset");
^ (359) illegal conversion between pointer types (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_BB2_Idx_Data_Out()
7079: FCI_CONCATENATE(PFCL_IN,20,"",0,FCL_IN,20);
^ (359) illegal conversion between pointer types (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_Sen_Updates()
7138: FCI_CONCATENATE(PFCL_IN,30,"",0,FCL_IN,30);
^ (359) illegal conversion between pointer types (warning)
7150: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"MRD1",4,1);
^ (359) illegal conversion between pointer types (warning)
7183: FCV_MATCH = FCI_COMPARE(FCV_STR_IS_ZERO,7,"0",1,1);
^ (359) illegal conversion between pointer types (warning)
7203: FCI_CONCATENATE("0",1,"",0,FCV_ST_MRD1,15);
^ (359) illegal conversion between pointer types (warning)
^ (359) illegal conversion between pointer types (warning)
7242: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s1aw",4,1);
^ (359) illegal conversion between pointer types (warning)
7287: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s1uw",4,1);
^ (359) illegal conversion between pointer types (warning)
7332: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"MDR2",4,1);
^ (359) illegal conversion between pointer types (warning)
7365: FCV_MATCH = FCI_COMPARE(FCV_STR_IS_ZERO,7,"0",1,1);
^ (359) illegal conversion between pointer types (warning)
7385: FCI_CONCATENATE("0",1,"",0,FCV_ST_RRD1,15);
^ (359) illegal conversion between pointer types (warning)
^ (359) illegal conversion between pointer types (warning)
7424: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s2aw",4,1);
^ (359) illegal conversion between pointer types (warning)
7469: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s2uw",4,1);
^ (359) illegal conversion between pointer types (warning)
7527: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U1V",3,1);
^ (359) illegal conversion between pointer types (warning)
7560: FCI_CONCATENATE("Un 1 = ",7,FCV_ST_U1V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7574: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U2V",3,1);
^ (359) illegal conversion between pointer types (warning)
7607: FCI_CONCATENATE("Un 2 = ",7,FCV_ST_U2V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7621: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U3V",3,1);
^ (359) illegal conversion between pointer types (warning)
7654: FCI_CONCATENATE("Un 3 = ",7,FCV_ST_U3V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7668: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U4V",3,1);
^ (359) illegal conversion between pointer types (warning)
7701: FCI_CONCATENATE("Un 4 = ",7,FCV_ST_U4V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7715: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U5V",3,1);
^ (359) illegal conversion between pointer types (warning)
7748: FCI_CONCATENATE("Un 5 = ",7,FCV_ST_U5V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7762: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U6V",3,1);
Last edited by Ondra on Thu Jan 27, 2011 7:29 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 14374
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4448 times
Been thanked: 4151 times
Contact:

Re: Hi Tech compiller error

Postby Benj » Thu Jan 27, 2011 3:37 pm

Hello Ondra,

The only errors there in that huge list is that the compiler is not recognising the t0con register.

If you go into the supplementary code window and enter the following into the defines section then the code should compile correctly.

#define t0con T0CON

If this doesnt work then you may need to look up the timer 0 configuration register in the datasheet for the chip you are using and get the exact name for the register.

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: Hi Tech compiller error

Postby Ondra » Thu Jan 27, 2011 4:10 pm

Thanks Benj.
I now get the following errors:

^ (162) #warning: "This interrupt has previously been enabled, so the macro <Inter_Counter> may never get called." (warning)
Pebble_Pic_IP_Acc_Brd.c: FCM_TimeClock()
2884: FCM_LCD_Idx_Data_Out("System Startup");
^ (359) illegal conversion between pointer types (warning)
2950: FCM_Send_To_Modem("AT+iDOWN");
^ (359) illegal conversion between pointer types (warning)
3592: FCM_LCD_Idx_Data_Out("Modem hanged");
^ (359) illegal conversion between pointer types (warning)
3678: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
3736: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
3794: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
3852: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
3910: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
3968: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
4026: T0CON; = (T0CON; & 0xF0) | 0x07;
^ (195) expression syntax
^ (201) taking the address of this object is illegal
(312) ";" expected ^
Pebble_Pic_IP_Acc_Brd.c: 4026: too many errors (21)
HI-TECH C PRO for the PIC18 MCU Family candidate build 7178 V9.65
Copyright (C) 1984-2010 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Sat, 12 Mar 2011
Employing 18F2680 errata work-arounds:
* Corrupted fast interrupt shadow registers
(908) exit status = 1

Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED

User avatar
Benj
Matrix Staff
Posts: 14374
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4448 times
Been thanked: 4151 times
Contact:

Re: Hi Tech compiller error

Postby Benj » Thu Jan 27, 2011 4:23 pm

Hello Ondra,

You must not use a semicolon on the define line. I think this is causing the problem.

3678: T0CON; = (T0CON; & 0xF0) | 0x07;


Your definition line should look like this with no semi colon.

#define t0con T0CON

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: Hi Tech compiller error

Postby Ondra » Thu Jan 27, 2011 4:25 pm

Without the semi colon the error list looks like this:

Pebble_Pic_IP_Acc_Brd.c:
^ (359) illegal conversion between pointer types (warning)
^ (359) illegal conversion between pointer types (warning)
7245: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s1aw",4,1);
^ (359) illegal conversion between pointer types (warning)
7290: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s1uw",4,1);
^ (359) illegal conversion between pointer types (warning)
7335: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"MDR2",4,1);
^ (359) illegal conversion between pointer types (warning)
7368: FCV_MATCH = FCI_COMPARE(FCV_STR_IS_ZERO,7,"0",1,1);
^ (359) illegal conversion between pointer types (warning)
7388: FCI_CONCATENATE("0",1,"",0,FCV_ST_RRD1,15);
^ (359) illegal conversion between pointer types (warning)
^ (359) illegal conversion between pointer types (warning)
7427: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s2aw",4,1);
^ (359) illegal conversion between pointer types (warning)
7472: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"s2uw",4,1);
^ (359) illegal conversion between pointer types (warning)
7530: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U1V",3,1);
^ (359) illegal conversion between pointer types (warning)
7563: FCI_CONCATENATE("Un 1 = ",7,FCV_ST_U1V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7577: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U2V",3,1);
^ (359) illegal conversion between pointer types (warning)
7610: FCI_CONCATENATE("Un 2 = ",7,FCV_ST_U2V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7624: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U3V",3,1);
^ (359) illegal conversion between pointer types (warning)
7657: FCI_CONCATENATE("Un 3 = ",7,FCV_ST_U3V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7671: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U4V",3,1);
^ (359) illegal conversion between pointer types (warning)
7704: FCI_CONCATENATE("Un 4 = ",7,FCV_ST_U4V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7718: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U5V",3,1);
^ (359) illegal conversion between pointer types (warning)
7751: FCI_CONCATENATE("Un 5 = ",7,FCV_ST_U5V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7765: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U6V",3,1);
^ (359) illegal conversion between pointer types (warning)
7798: FCI_CONCATENATE("Un 6 = ",7,FCV_ST_U6V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7812: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U7V",3,1);
^ (359) illegal conversion between pointer types (warning)
7845: FCI_CONCATENATE("Un 7 = ",7,FCV_ST_U7V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7859: FCV_MATCH = FCI_COMPARE(FCL_RET_VAL,5,"U8V",3,1);
^ (359) illegal conversion between pointer types (warning)
7892: FCI_CONCATENATE("Un 8 = ",7,FCV_ST_U8V,10,FCV_COMMAND,255);
^ (359) illegal conversion between pointer types (warning)
7906: FCV_MATCH = FCI_COMPARE(FCL_IN,30,"Sensor OK",9,1);
Last edited by Ondra on Thu Jan 27, 2011 7:27 pm, edited 2 times in total.

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: Hi Tech compiller error

Postby Ondra » Thu Jan 27, 2011 4:30 pm

I see these are warning not errors.
But that is the end of the list. I don't get a "compiled ok" at the end of the list.

Ondra

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8442
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2412 times
Been thanked: 3453 times
Contact:

Re: Hi Tech compiller error

Postby medelec35 » Thu Jan 27, 2011 8:02 pm

I can't guarantee I can help you, but with information you have given I don't think anyone can.
Is is possible for you to post 3 files.
1) your FCF file
2)The text document which has .msg in the file name.
3).C file.

The more information given, the greater chance that problem can be solved.
You can edit files to remove your registered name if you wish.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: Hi Tech compiller error

Postby Ondra » Fri Jan 28, 2011 1:42 pm

Any thoughts on this Benj?

Ondra

User avatar
Steve
Matrix Staff
Posts: 3073
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 387 times
Contact:

Re: Hi Tech compiller error

Postby Steve » Tue Feb 01, 2011 8:32 am

I'll echo medelec35's comments that debugging this kind of problem is much easier if we have access to the original FCF file plus the generated C and MSG.TXT files.

If you think these files are of a commercially sensitive nature, please PM them to me and I will try to help.