Page 1 of 1

adc problem PIC24FJ128GA204

Posted: Mon Nov 06, 2023 8:04 am
by asmatec
Hello, we continue with the problem of the adc inputs on the pic24fj128ga204 chip, this is the message when compiling to hex!


C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:823:29: error: 'ANSELA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:823:29: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1226:14: error: 'AD1CON2BITS' has no member named 'VCFG1'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1227:14: error: 'AD1CON2BITS' has no member named 'VCFG2'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1230:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1232:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1244:14: error: 'AD1CON1BITS' has no member named 'AD12B'
CRG_PIC24_V1.1.c: In function 'main':
CRG_PIC24_V1.1.c:5778:3: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:542:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5779:3: warning: passing argument 1 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5779:3: warning: passing argument 4 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5785:3: warning: passing argument 1 of 'FCD_0be11_LCDI2C1__PrintString' discards qualifiers from pointer target type
CRG_PIC24_V1.1.c:4994:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5797:2: warning: 'return' with a value, in function returning void

regards.

Miguel.

Re: adc problem PIC24FJ128GA204

Posted: Fri Nov 10, 2023 6:52 pm
by medelec35
Hello.
Sorry, this has slipped under our radar.
This will be looked into ASAP

Re: adc problem PIC24FJ128GA204

Posted: Fri Nov 10, 2023 7:18 pm
by mnfisher
See also viewtopic.php?f=5&t=2190

Martin

Re: adc problem PIC24FJ128GA204

Posted: Tue Nov 21, 2023 1:13 pm
by medelec35
Hello.
Sorry for the delay, I have been on holiday.
Would you like to test your project with the attached file?
Browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16
Replace the existing file with the attached file.
If Flowcode is already open, then you will need to reload your project.
If you run any component updates, then the fcdx you added will be overwritten.