Page 1 of 1

Compiler Issue with PIC24F Series

Posted: Fri May 05, 2017 6:41 am
by Inqore-Systems
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.c:3620:2: warning: large integer implicitly truncated to unsigned type
test.c:3628:2: warning: large integer implicitly truncated to unsigned type
test.c:3632:2: 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

Re: Compiler Issue with PIC24F Series

Posted: Fri May 05, 2017 9:54 am
by Benj
Hello,

Thanks for letting us know. I have now found and fixed the problem.

I have added the files to the update available here.
viewtopic.php?f=63&t=18760&p=80726#p80726

Let me know how you get on.

Re: Compiler Issue with PIC24F Series

Posted: Thu Jun 14, 2018 4:49 pm
by patrick schoon
He Guys,

Same problem here. Latest FC7

Using PIC24FJ128GA204

Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "BaseOne" "D:\PROJEC~1\COMMAI~1\Projects\BaseOne\Flowcode\" "24FJ128GA204"
Launching compiler...

D:\PROJEC~1\COMMAI~1\Projects\BaseOne\Flowcode>xc16-gcc -c -mcpu="24FJ128GA204" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~2\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~2\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "BaseOne".c -o "BaseOne".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
BaseOne.c:32:22: fatal error: p24Exxxx.h: No such file or directory
compilation terminated.

Error returned from [xc16-gcc.exe]
Completed compilation, return = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1



FINISHED