Here's the compiler output:
With v9.63:
Code: Select all
File name: C:\MPLAB Projects\FLOWCODE\TestFile.c
Title:
Description:
Generated by: Flowcode v5.1.0.0
Date: Wednesday, July 11, 2012 13:39:47
Licence: Free version
***FREE/DEMO VERSION***
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe --CHIP= 18F2220 -N48 TestFile.c
HI-TECH C PRO for the PIC18 MCU Family V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(multiple warnings removed)
Memory Summary:
Program space used 275Eh ( 10078) of 10000h bytes ( 15.4%)
Data space used 94h ( 148) of F80h bytes ( 3.7%)
EEPROM space used 0h ( 0) of 400h bytes ( 0.0%)
ID Location space used 0h ( 0) of 8h nibbles ( 0.0%)
Configuration bits used 0h ( 0) of 7h words ( 0.0%)
Return code = 0
Launching the linker/assembler...
C:\Program Files\Flowcode\v5\Tools\DoNothing\DoNothing.exe
Return code = 0
FINISHED
With v9.80:
Code: Select all
File name: C:\MPLAB Projects\FLOWCODE\TestFile.c
Title:
Description:
Generated by: Flowcode v5.1.0.0
Date: Wednesday, July 11, 2012 13:39:47
Licence: Free version
***FREE/DEMO VERSION***
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\HI-TECH Software\PICC-18\9.80\bin\picc18.exe --CHIP= 18F2220 -N48 TestFile.c
TestFile.c:
TestFile.c: FCD_LCDDisplay0_RawSend()
618: portc &= ~(1 << 0);
^ (192) undefined identifier "portc"
622: porta &= ~(1 << 2);
^ (192) undefined identifier "porta"
TestFile.c: FCD_LCDDisplay0_Start()
668: {trisc &= ~(1 << 0); portc &= ~(1 << 0);};
^ (192) undefined identifier "trisc"
^ (192) undefined identifier "portc"
669: {trisc &= ~(1 << 1); portc &= ~(1 << 1);};
^ (192) undefined identifier "trisc"
^ (192) undefined identifier "portc"
670: {trisc &= ~(1 << 2); portc &= ~(1 << 2);};
^ (192) undefined identifier "trisc"
^ (192) undefined identifier "portc"
671: {trisc &= ~(1 << 3); portc &= ~(1 << 3);};
^ (192) undefined identifier "trisc"
^ (192) undefined identifier "portc"
672: {trisa &= ~(1 << 2); porta &= ~(1 << 2);};
^ (192) undefined identifier "trisa"
^ (192) undefined identifier "porta"
673: {trisa &= ~(1 << 5); porta &= ~(1 << 5);};
^ (192) undefined identifier "trisa"
^ (192) undefined identifier "porta"
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_Enable_ADC()
1474: adcon2 = Conv_Speed & 0x07;
^ (192) undefined identifier "adcon2"
1481: tris_reg = &trisa;
^ (192) undefined identifier "trisa"
^ (359) illegal conversion between pointer types (warning)
pointer to int -> pointer to unsigned char
1482: adcon1 = 0x0E;
^ (192) undefined identifier "adcon1"
1572: adcon0 = (0x01 | (Channel << 2));
^ (192) undefined identifier "adcon0"
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_Sample_ADC()
1584: adcon0 = adcon0 | 0x02;
^ (192) undefined identifier "adcon0"
1592: iRetVal = (adresh << 2);
^ (192) undefined identifier "adresh"
1593: iRetVal = iRetVal | (adresl >> 6);
^ (192) undefined identifier "adresl"
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_ADC.c: 1593: too many errors (21)
HI-TECH C Compiler for PIC18 MCUs (PRO Mode) V9.80
I've tried examining the various include files called by the assembler but I'm not experienced enough to fully understand what's happening. Anybody have any ideas why this will compile in 9.63 but not in 9.80?
Thanks... James