Compiler Issue with PIC24F Series
Posted: Fri May 05, 2017 6:41 am
I am using Latest FlowCode 7.2.1.4, with PIC24FJ64GA306, I am getting below following Errors
Target folder: E:\BHARAD~3\ANNUNC~1
Source name: E:\Bharadwaj\ANNUNCIATOR\test.fcfx
Title:
Description:
Device: PIC16.24F.24FJ64GA306
Generated by: Flowcode v7.2.1.4
Date: Thursday, May 04, 2017 16:48:22
Users: 1
Registered to: Inqore-Systems
Licence key: ZEGC73
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "test" "E:\BHARAD~3\ANNUNC~1\" "24FJ64GA306"
Launching compiler...
E:\BHARAD~3\ANNUNC~1>xc16-gcc -c -mcpu="24FJ64GA306" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "test".c -o "test".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\Program Files\Flowcode 7\CAL\includes.c:69:0,
from test.c:780:
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Enable':
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:70:3: error: 'AD1PCFG' undeclared (first use in this function)
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:70:3: note: each undeclared identifier is reported only once for each function it appears in
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:74:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:76:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Disable':
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:116:3: error: 'AD1PCFG' undeclared (first use in this function)
test.c: In function 'main':
test.c2: warning: large integer implicitly truncated to unsigned type
test.c2: warning: large integer implicitly truncated to unsigned type
test.c2: warning: large integer implicitly truncated to unsigned type
Error returned from [xc16-gcc.exe]
Completed compilation, return = 1
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED
Target folder: E:\BHARAD~3\ANNUNC~1
Source name: E:\Bharadwaj\ANNUNCIATOR\test.fcfx
Title:
Description:
Device: PIC16.24F.24FJ64GA306
Generated by: Flowcode v7.2.1.4
Date: Thursday, May 04, 2017 16:48:22
Users: 1
Registered to: Inqore-Systems
Licence key: ZEGC73
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "test" "E:\BHARAD~3\ANNUNC~1\" "24FJ64GA306"
Launching compiler...
E:\BHARAD~3\ANNUNC~1>xc16-gcc -c -mcpu="24FJ64GA306" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "test".c -o "test".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\Program Files\Flowcode 7\CAL\includes.c:69:0,
from test.c:780:
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Enable':
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:70:3: error: 'AD1PCFG' undeclared (first use in this function)
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:70:3: note: each undeclared identifier is reported only once for each function it appears in
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:74:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:76:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Disable':
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:116:3: error: 'AD1PCFG' undeclared (first use in this function)
test.c: In function 'main':
test.c2: warning: large integer implicitly truncated to unsigned type
test.c2: warning: large integer implicitly truncated to unsigned type
test.c2: warning: large integer implicitly truncated to unsigned type
Error returned from [xc16-gcc.exe]
Completed compilation, return = 1
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED